Problems Installing Ruby on Mountain Lion - Ruby 1.9.3 Wont' Compile

Problems installing Ruby on Mountain Lion - ruby 1.9.3 wont' compile

This is a bug in RailsInstaller OSX 1.0.3 - https://github.com/railsinstaller/railsinstaller-nix/issues/10

you need to change /etc/rvmrc to contain this:

umask g+w
export -a rvm_configure_env
rvm_configure_env=('LDFLAGS=-L/opt/sm/pkg/active/lib' 'CFLAGS=-I/opt/sm/pkg/active/include' 'CPATH=/opt/sm/pkg/active/include')

I will prepare new version of the installer when binary ruby is available for 2.0.0.

UPDATE: for new version of RVM 1.19+ /etc/rvmrc should be changed to:

umask g+w
export rvm_autolibs_flag=smf

And run rvm get stabel #OR: head

Cannot compile ruby 1.9.3

you are using clang, according to this ticket http://bugs.ruby-lang.org/issues/5883 - it's not "fully" supported - you need to try using gcc-4.2, you get instructions for homebrew with running rvm requirements.

here is RVM ticket for this problem https://github.com/wayneeseguin/rvm/issues/1480

UPDATE: Ruby-2.0.0 actually compiles better with clang then with gcc-4.2, more details here: https://stackoverflow.com/a/15655034/497756

Can't get ruby 1.9.3 installed on OSX Mountain Lion

Unix will run the copy of Ruby that it finds first in your search path. Type these commands in Terminal:

echo $PATH
which ruby

The first will show you the order in which Unix is looking for the ruby command. The second will tell you which ruby it's finding. You may need to edit the PATH= command in your .bash_profile or .bashrc to change the order of the search path, e.g.:

PATH=/usr/local/bin:/usr/local/sbin:$PATH

prepends /usr/local/bin and /usr/local/sbin to your existing PATH to tell Unix to search your /usr/local/bin directory before /usr/bin

Error running 'make' whilst installing Ruby through RVM on OS X Mountain Lion

I followed some of the advice here and in other posts linked and Googled, but in the end, updating GCC via Homebrew is what finally got the Ruby installation to complile and complete.

Specific link I used for updating GCC: Installing Ruby on Mac OS X 10.8.2

So thanks for all the help, I can't be sure if it was a combination of all the updates and cleanup as well as GCC or just GCC, but I'm up and running.

rvm install 1.9.3 failing

It turns out this is a bug in RailsInstaller OSX 1.0.3 - (Found that out while reading Problems installing Ruby on Mountain Lion - ruby 1.9.3 wont' compile)

I needed to change /etc/rvmrc to contain this:

umask g+w
export -a rvm_configure_env
rvm_configure_env=('LDFLAGS=-L/opt/sm/pkg/active/lib' 'CFLAGS=-I/opt/sm/pkg/active/include' 'CPATH=/opt/sm/pkg/active/include')

For more info see: https://github.com/railsinstaller/railsinstaller-nix/issues/10

Can't install Ruby 1.9.3 on Mac OSX 10.7.5

RVM has an updated command to install all required libraries:

rvm get head
rvm requirements run

It might ask you for your password (for sudo).

After that run:

rvm install 1.9.3 --with-opt-dir=`brew --prefix readline` --without-tcl --without-tk

Update RVM 1.19+

RVM takes care of it all:

rvm get stable
rvm autolibs homebrew
rvm install 1.9.3


Related Topics



Leave a reply



Submit