How do you install (build) Ruby 1.9.3 on OSX Lion?
I just ran into this issue myself, and it seem to be an issue with how ruby-1.9.3-125 works with clang. Once I run it against gcc it worked like a charm.
Check to make sure you have the actual gcc installed with which gcc-4.2
. If it isn't you'll need to install Xcode or something akin to the os x gcc installer. If it is installed running rvm install 1.9.3 --with-gcc=gcc-4.2
is what did the trick for me.
How can I install Ruby 1.9.3 in Mac OS X Lion?
Try using the clang compiler instead of the default:
rvm install 1.9.3 --with-gcc=clang
How can I install Ruby 1.9.3 in Mac OS X Mountain Lion without Xcode?
osx-gcc-installer turns out to be a very good option to replace Xcode in order to install Ruby 1.9.3
These are the steps I have followed:
- Download & install the latest version of osx-gcc-installer here (GCC-10.7-v2 is fine): https://github.com/kennethreitz/osx-gcc-installer
- Install RVM as usual and select 1.9.3-head as the default ruby installation: https://rvm.io/rvm/install/
- Install Homebrew: https://github.com/mxcl/homebrew/wiki/installation
- Install libksba to resolve some dependencies with Ruby 1.9.3:
brew install libksba
That's it! You should now have Ruby 1.9.3 installed on Mountain Lion working perfectly.
If you need some other packages, install them now through Homebrew, such as Imagemagick for example: brew install imagemagick
It's possible that you need XQuartz for Homebrew to work properly, as Apple is not shipping X11 since Mountain Lion. You can download it here: http://xquartz.macosforge.org/trac/wiki
EDIT:
Now (since 29th July) Command line tools for Xcode 4.4 are available.
So, the new steps are these:
- Download & install Command line tools for Xcode 4.4 (you don't need to download Xcode): https://developer.apple.com/downloads/index.action
- Install Homebrew: https://github.com/mxcl/homebrew/wiki/installation
- Install automake:
brew install automake
- Install RVM as usual and select 1.9.3-head as the default ruby installation: https://rvm.io/rvm/install/
Optional step: You may need XQuartz for some components, for example for Imagemagick, so download & install XQuartz: http://xquartz.macosforge.org/trac/wiki
Unable to build Ruby 1.9.3 on Lion
I had the same problem. In my case I added .
to my CDPATH (via export CDPATH=.:$CDPATH
) and was able to get ruby to build via rbenv install. I had been tinkering with CDPATH recently so it's possible (even likely) that I caused the problem myself.
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
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
Is it possible to install Ruby 1.9.3-p327 on OS X Mavericks? And if so, how?
If it's not neccesary to use rvm to install this version of ruby, you can use rbenv. I just installed this exactly version without any problems. And it's easy to install it with brew
.
If it won't work, then the problem in another place.
Related Topics
Open_Id_Authentication - "Openidauthentication.Store Is Nil. Using In-Memory Store." Problem
Ruby SASS, Unable to Resolve Dependancies
Get SASS from Database (Compile Passed Data Instead of Reading from File)
How to Input Integer Value to an Array, Based Preceeding Row + Column Values
Ruby Method Calls Declared in Class Body
Extract Links (Urls), with Nokogiri in Ruby, from a Href HTML Tags
Mongodb with Mongoid in Rails - Geospatial Indexing
Understanding the Fibonacci Sequence
Bundler VS Rvm VS Gems VS Rubygems VS Gemsets VS System Ruby
All Ruby Tests Raising: Undefined Method 'Authenticate' for Nil:Nilclass
How to Create a Copy of Some Columns of a CSV File in Ruby with Different Data in One Column
Will Uuid as Primary Key in Postgresql Give Bad Index Performance
How to Globally Configure Rspec to Keep the '--Color' and '--Format Specdoc' Options Turned On
Ruby 'Pg' Gem Linking to Wrong Copy of Libpq.5.Dylib (On Osx)