0

I am having a problem with rvm install 2.4.2 (although I've tried several versions and the result is always the same). I'm on OS X 11.4. RVM is 1.29.12-next

The output is:

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/openssl@1.1/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/openssl@1.1 --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.

and the contents of configure.log is

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

I have installed command line tools with xcode-select --install. I have tried running with --with-gcc=clang and --with-gcc=g++. Both of those result in slightly different errors, but essentially the same thing.

I went so far as to clean install Big Sur because I was convinced that there was a corruption in some core SDK libraries that were above my pay-grade. With great frustration, that didn't help at all.

Here are some other SO questions that I've looked at and not gotten help from:

Kardasis
  • 749
  • 10
  • 17

0 Answers0