Ruby Fails on Osx Lion with Rbenv

OpenSSL error installing ruby 2.0.0-p195 on Mac with rbenv

Try adding OpenSSL to the config options using the --with-openssl-dir option:

$ CONFIGURE_OPTS="--with-openssl-dir=`brew --prefix openssl`" rbenv install 2.0.0-p195

If you're using Homebrew, you'll need to install OpenSSL before running the above by running:

$ brew install openssl

UPDATE (see @JarkkoLaine 's comment below):

Just for the record, you should not need to use the config opts
anymore with ruby-build and homebrew. However, I had to reinstall
openssl with homebrew to make it work: brew uninstall openssl; brew
upgrade; brew install openssl; rbenv install 2.0.0-p247. See this for
more info.

Having trouble installing any ruby 1.9.x (with rbenv) on mac osx due to psych YAML parse errors

I've seen errors like this when I had a YAML syntax error in my .gemrc or .irbrc.

Check / remove them and try again.

rbenv install 2.6.1 FAILED on Mac OS Mojave 10.14.3

The error which prevents the build from successful finish is:

/anaconda3/bin/x86_64-apple-darwin13.4.0-ar: illegal option -- n
usage: ar -d [-TLsv] archive file ...

So you are using the acanconda's archiver instead of the macOS provided one. In order to fix this you need to switch to the macOS provided compilation tools.

You can do this by removing acanconda from your PATH and reload your terminal.

I'm not sure about the exact steps, but I think this should work:

  • Go to your /home/<user>/.bashrc file, remove anaconda from the PATH, save the file
  • Reload your terminal (by restarting it or executingsource ~/.bashrc)
  • rbenv install 2.1.6

The goal is not to have any anaconda related tools in Ruby build log, but the system provided tools.

Mountain Lion rvm install 1.8.7 x11 error

Try to install X11 via http://xquartz.macosforge.org/landing/ set the correct path to the X11 library for the compiler with:

export CPPFLAGS=-I/opt/X11/include

then try to reinstall ruby, passing to the compiler where gcc-4.2 is:

CC=/usr/local/bin/gcc-4.2 rvm reinstall 1.8.7

Without CC I got a lot of segmentation faults.



Related Topics



Leave a reply



Submit