Advertisement
Guest User

rvm install 1.9.3

a guest
Aug 27th, 2012
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.32 KB | None | 0 0
  1. Ruby (and needed base gems) for your selection will be installed shortly.
  2. Before it happens, please read and execute the instructions below.
  3. Please use a separate terminal to execute any additional commands.
  4.  
  5.   Notes for Mac OS X 10.8.1, Xcode 4.4.1.
  6.  
  7. For MacRuby: Install LLVM first.
  8.  
  9. For JRuby:  Install the JDK. See http://developer.apple.com/java/download/  # Current Java version "1.6.0_26"
  10. For IronRuby: Install Mono >= 2.6
  11. For Ruby 1.9.3: Install libksba # If using Homebrew, 'brew install libksba'
  12.  
  13. To use an RVM installed Ruby as default, instead of the system ruby:
  14.  
  15.     rvm install 1.8.7 # installs patch 357: closest supported version
  16.     rvm system ; rvm gemset export system.gems ; rvm 1.8.7 ; rvm gemset import system.gems # migrate your gems
  17.     rvm alias create default 1.8.7
  18.  
  19. And reopen your terminal windows.
  20.  
  21. Xcode and gcc:
  22.  
  23. Right now Ruby requires gcc to compile, but Xcode 4.2 and later no longer ship with gcc. Instead they ship with llvm-gcc (to which gcc is a symlink) and clang, neither of which are supported for building Ruby. Xcode 4.1 was the last version to ship gcc, which was /usr/bin/gcc-4.2.
  24.  
  25. Xcode 4.1 and earlier:
  26. - Ruby will build fine.
  27.  
  28. Xcode 4.2 and later (including Command Line Tools for Xcode):
  29. - If you have gcc-4.2 (and friends) from an earlier Xcode version, Ruby will build fine.
  30. - If you don't have gcc-4.2, you have two options to get it:
  31. * Install apple-gcc42 from Homebrew
  32. * Install osx-gcc-installer
  33.  
  34. Homebrew:
  35.  
  36.  If you are using Homebrew, you can install the apple-gcc42 and required libraries from homebrew/dupes:
  37.  
  38.      brew update
  39.      brew tap homebrew/dupes
  40.      brew install autoconf automake apple-gcc42
  41.      rvm pkg install openssl
  42.  
  43.  This can live side by side with an existing Xcode 4.2+ install or Command Line Tools for Xcode.
  44.  
  45.  osx-gcc-installer:
  46.  
  47.  If you don't use Homebrew, you can download and install osx-gcc-installer: https://github.com/kennethreitz/osx-gcc-installer.
  48.  
  49.   Warning: Installing osx-gcc-installer on top of a recent Xcode is known to cause problems, so you must uninstall Xcode before installing osx-gcc-installer. Afterwards you may install Xcode 4.2+ or Command Line Tools for Xcode if you desire.
  50.  
  51.   ** NOTE: Currently, Node.js is having issues building with osx-gcc-installer. The only fix is to install Xcode over osx-gcc-installer.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement