проблемы с компиляцией установки rvm

У меня проблема с rvm install 2.4.2 (хотя я пробовал несколько версий и результат всегда один и тот же). У меня ОС Х 11.4. RVM 1.29.12-следующий

Результат:

Searching for binary rubies, this might take some time.
No binary rubies available for: osx/11.4/x86_64/ruby-2.4.2.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Certificates bundle '/usr/local/etc/[email protected]/cert.pem' is already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/arikardasis/.rvm/rubies/ruby-2.4.2, this may take a while depending on your cpu(s)...
ruby-2.4.2 - #downloading ruby-2.4.2, this may take a while depending on your connection...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 12.0M  100 12.0M    0     0  13.3M      0 --:--:-- --:--:-- --:--:-- 13.3M
ruby-2.4.2 - #extracting ruby-2.4.2 to /Users/arikardasis/.rvm/src/ruby-2.4.2 - please wait
ruby-2.4.2 - #configuring - please wait
Error running './configure --prefix=/Users/arikardasis/.rvm/rubies/ruby-2.4.2  --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/libksba:/usr/local/opt/readline:/usr/local/opt/zlib:/usr/local/opt/[email protected] --disable-install-doc --enable-shared',
please read /Users/arikardasis/.rvm/log/1623093497_ruby-2.4.2/configure.log
There has been an error while running configure. Halting the installation.

и содержимое configure.log

configure: WARNING: you should use --build, --host, --target
checking for ruby... /usr/bin/ruby
config.guess already exists
config.sub already exists
checking build system type... x86_64-apple-darwin20.5.0
checking host system type... x86_64-apple-darwin20.5.0
checking target system type... x86_64-apple-darwin20.5.0
checking whether the C compiler works... no
configure: error: in `/Users/arikardasis/.rvm/src/ruby-2.4.2':
configure: error: C compiler cannot create executables
See `config.log' for more details

Я установил инструменты командной строки с xcode-select --install. Я пробовал работать с --with-gcc=clang и --with-gcc=g++. Оба они приводят к немного разным ошибкам, но по сути одно и то же.

Я дошел до чистой установки Big Sur, потому что был убежден, что в некоторых основных библиотеках SDK есть повреждения, которые были выше моего уровня оплаты. С большим разочарованием это совсем не помогло.

Вот некоторые другие вопросы SO, на которые я смотрел и не получил помощи:


person Kardasis    schedule 07.06.2021    source источник