How to use RVM to install Ruby 1.9.3 when installing Xcode 4.3.2 and gcc is missing?

I got a new iMac with Lion and installed Xcode 4.3.2. After launch

curl -L get.rvm.io | bash -s stable 

I opened a new bash and used

 $ rvm install 1.9.3 

to install Ruby 1.9.3, but there were errors, and the magazine said that the C compiler was not there. And rvm requirements says:

 $ rvm requirements [...] Xcode 4.3+ users - please be warned - only ruby-1.9.3-p125+ is partially supported - in case of any compilation issues: * downgrade to Xcode 4.1 * uninstall Xcode and install osx-gcc-installer and reinstall your rubies. 

Does this mean that I may need to upgrade to Xcode 4.1? What if I want to save Xcode 4.3.2? Then 1.9.3-p125 + will work, but only partially?

Update: or how about installing Ruby 1.9.2 - will it work with the latest Rails 3.2.3? If so, how do I add gcc? (using Xcode gcc?)

+6
source share
2 answers

To install 1.9.2 or lower, you need to follow the instructions in this blog post. It describes how to get a copy of GCC that does not conflict with Xcode, but can be used to create Ruby.

Xcode 4.3, Homebrew and Ruby .

You cannot install osx-gcc-installer as it will conflict with Xcode 4.3.2 by overwriting the working versions of llvm-gcc and clang.

+6
source

install osx-gcc-installer

use the last ruby:

 rvm install ruby 

he will be 1.9.3-p125 since this is the last ruby

-2
source

Source: https://habr.com/ru/post/913383/


All Articles