Cannot install Ruby 1.9.3 on a clean Lion Install
I solved the problem. RVM wasn't recognizing the readline installed. Funny how readline manages to screw up so many people's installs.
This command points rvm toward the right readline location
rvm install 1.9.3 --with-gcc=clang --with-readline-dir=$rvm_path/usr
Can't install Ruby under Lion with RVM – GCC issues
This answer was edited multiple times and now contains several alternative solutions. Try the simple “Edit 3” solution first.
Ruby 1.9.3-p125 and later have official support for clang, so if you are installing such a version you should not need GCC. If you’re installing an older version of Ruby, read on.
To compile Ruby with GCC, you need a non-LLVM version of GCC, which is no longer included with Xcode 4.2. Install it yourself (or downgrade to Xcode 4.1 temporarily), then do CC=/usr/local/bin/gcc-4.2 rvm install 1.9.3 --enable-shared
(substituting the path to your non-LLVM gcc).
Edit: https://github.com/kennethreitz/osx-gcc-installer/downloads may help for installing GCC. There is also some info available by running rvm requirements
.
Edit 2: For an easier solution, you can try adding --with-gcc=clang
to the arguments to configure
for Ruby to use clang instead of GCC.
Edit 3: rvm install 1.9.3 --with-gcc=clang
does that for you.
Note: With current versions of Xcode you need to install the command-line tools separately from the Xcode menu -> Preferences -> Downloads -> Components. This is a pre-requisite for doing any compiling with Xcode on the command-line, not just Ruby.
Note 2: If something doesn't work after following the steps, try doing a reboot or re-login to ensure that the environment gets set correctly.
Note 3: Ruby versions prior to 1.9.3-p125 may not always be fully compatible with clang, so test your software thoroughly if using the “edit 3” solution in a production environment.
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
Trouble installing ruby 1.9.3 because of a configuration issue
First goal should be to get the app back up running.
Therefore I would suggest to reset your app's configuration to the last working stand.
If this is not possible, please install ruby using rvm with the --with-gg=clang-option like this:
rvm install 1.9.3 --with-gcc=clang
Then use the installed ruby version by listing all installed rubies (running rvm list
) and choosing the 1.9.3 version provided (e.g. 1.9.3-p448) with the following command:
rvm --default use 1.9.3-p484
Please update your Gemfile with the ruby '1.9.3-p484'
line and make sure, you're in the login shell (to change to it, use /bin/bash --login
). After that your rvm commands should work again.
Lion ate my RVM and now I can't install Ruby
After you install Lion, you have to re-install Xcode/Developer tools. It is available from the app store.
http://itunes.apple.com/us/app/id448457090?mt=12
Make error installing Ruby 1.9.2 with RVM and Readline under OSX Lion
I had a very similar issue. I eventually found that adding this to my .bash_profile stopped my initial make errors:
export ARCHFLAGS="-arch x86_64"
Also from the command line run the following:
brew install readline
brew link readline
brew install libxml2
brew link libxml2
Then when you install ruby use this command:
rvm install 1.9.2 -C --with-readline-dir=/usr/local/Cellar/readline/6.2.1/ --with-libxml2-dir=/usr/local/Cellar/xml2/2.7.8
Hope that helps
Installing Ruby 1.9.3 Troubles with Clang
Refer to this answer.
Even though both ruby-1.9.3-p125 and ruby-1.9.3-p194 some support for clang, installing Ruby with clang is generally not recommended.
(Note: I had to accept edit proposal first, then edit. Thank you very much for contribution.)
Make error installing Ruby 1.9.2 via rvm OSX Lion 10.7.2 XCode 4.2
This error has been fixed in 1.9.2-head ... so just
rvm install 1.9.2-head && rvm use 1.9.2-head --default
I'm finding 1.9.3 isn't compatible with a lot of the libraries I use yet. This works with Xcode 4.2.
Related Topics
Ruby Check Whether Program Is Currently Being Closed
Tilt (Kramdown) Preventing Erb Processing When Rendering Markdown
Rspec - How to Test Activerecord::Recordnotfound
Compass CSS Framework - Using Bootstrap with SASS
How to Fix My Cucumber Expectation Error When Polling
What Does the |Variable| Syntax Mean
Watir Browser Process Doesn't Start Properly (Windows)
Create .Ruby-Version and .Ruby-Gemset with Rvm
Download All Gems Dependencies
How to Display a Link to Individual Microposts? (Ruby on Rails 3)
Selenium Can't Find Fields with Type Number
Require Self Made Gem in Jruby Fails After Update to Jruby-1.7.13
How to Set Up These Crud Controller Actions for Has_Many_Polymorphs and an Error
Making a Pie-Chart of the User Age in Rails