Skip to content

Instantly share code, notes, and snippets.

@lucashungaro
Last active October 6, 2015 05:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucashungaro/2946258 to your computer and use it in GitHub Desktop.
Save lucashungaro/2946258 to your computer and use it in GitHub Desktop.
Installing ruby 1.9.3 from source on OS X Lion
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
@lsdr
Copy link

lsdr commented Oct 12, 2012

Desistiu do rvm?

@lucashungaro
Copy link
Author

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.

@lsdr
Copy link

lsdr commented Oct 30, 2012

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