Last active
October 6, 2015 05:48
-
-
Save lucashungaro/2946258 to your computer and use it in GitHub Desktop.
Installing ruby 1.9.3 from source on OS X Lion
This file contains hidden or 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 XCode *and* Command Line Tools (just CLT won't be enough, readline won't work =[) | |
sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2 | |
sudo ln -s /usr/bin/g++ /usr/bin/g++-4.2 | |
brew install wget openssl readline libyaml curl libxslt | |
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz | |
tar xzvf ruby-1.9.3-p392.tar.gz | |
cd ruby-1.9.3-p392 | |
./configure | |
make | |
sudo make install | |
open another bash session | |
cd ruby-1.9.3-p286/ext/readline | |
ruby extconf.rb --with-readline-dir=$(brew --prefix readline) --disable-libedit | |
make clean | |
make | |
sudo make install | |
gem update --system | |
gem install bundler awesome_print pry |
Que mundo bom esse em que você vive, hein?
Ainda tenho coisas em ruby-1.8.7/ree então um RVM acaba sendo útil. Quem sabe até a Copa eu não consigo viver só no 1.9.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Faz tempo ó....
Só usei rvm/rbenv quando tinha projetos em versões distintas do Ruby. Pra uma versão só eu faço assim e boa. Com o RVM eu tinha que dar um implode por mês, vira e mexe as coisas paravam de funcionar.