Last active
December 12, 2015 08:19
-
-
Save yangtheman/4743311 to your computer and use it in GitHub Desktop.
Installing Ruby 1.9.3 on Mountain Lion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install gcc-4.2.1 via brew | |
yangtheman:~$ brew install apple-gcc42 | |
==> Downloading http://r.research.att.com/tools/gcc-42-5666.3-darwin11.pkg | |
######################################################################## 100.0% | |
==> Caveats | |
NOTE: | |
This formula provides components that were removed from XCode in the 4.2 | |
release. There is no reason to install this formula if you are using a | |
version of XCode prior to 4.2. | |
This formula contains compilers built from Apple's GCC sources, build | |
5666.3, available from: | |
http://opensource.apple.com/tarballs/gcc | |
All compilers have a `-4.2` suffix. A GFortran compiler is also included. | |
==> Summary | |
🍺 /usr/local/Cellar/apple-gcc42/4.2.1-5666.3: 104 files, 75M, built in 5.0 minutes | |
yangtheman:~$ | |
# Install Ruby via rvm install | |
yangtheman:~$ CC=/usr/local/bin/gcc-4.2 rvm install 1.9.3 --enable-shared | |
Fetching yaml-0.1.4.tar.gz to /Users/yangtheman/.rvm/archives | |
Extracting yaml to /Users/yangtheman/.rvm/src/yaml-0.1.4 | |
Configuring yaml in /Users/yangtheman/.rvm/src/yaml-0.1.4. | |
Compiling yaml in /Users/yangtheman/.rvm/src/yaml-0.1.4. | |
Installing yaml to /Users/yangtheman/.rvm/usr | |
Installing Ruby from source to: /Users/yangtheman/.rvm/rubies/ruby-1.9.3-p385, this may take a while depending on your cpu(s)... | |
ruby-1.9.3-p385 - #downloading ruby-1.9.3-p385, this may take a while depending on your connection... | |
ruby-1.9.3-p385 - #extracted to /Users/yangtheman/.rvm/src/ruby-1.9.3-p385 (already extracted) | |
ruby-1.9.3-p385 - #configuring | |
ruby-1.9.3-p385 - #compiling | |
ruby-1.9.3-p385 - #installing | |
Retrieving rubygems-1.8.25 | |
######################################################################## 100.0% | |
Extracting rubygems-1.8.25 ... | |
Removing old Rubygems files... | |
Installing rubygems-1.8.25 for ruby-1.9.3-p385 ... | |
Installation of rubygems completed successfully. | |
Saving wrappers to '/Users/yangtheman/.rvm/bin'. | |
ruby-1.9.3-p385 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake). | |
ruby-1.9.3-p385 - #importing default gemsets, this may take time ... | |
Install of ruby-1.9.3-p385 - #complete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment