Last active
December 11, 2015 02:59
-
-
Save everaldo/4534397 to your computer and use it in GitHub Desktop.
Instalação do Rbenv
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
require 'irb/ext/save-history' | |
#History configuration | |
IRB.conf[:SAVE_HISTORY] = 1000 | |
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history" |
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
#!/bin/bash | |
sudo apt-get -y update | |
sudo apt-get -y install build-essential zlib1g-dev git-core sqlite3 libsqlite3-dev libssl-dev libreadline-dev | |
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile | |
echo 'eval "$(rbenv init -)"' >> ~/.profile | |
source .profile | |
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
rbenv install --list #lista versões disponíveis do ruby | |
rbenv install 1.9.3-p392 # instala a última versão estável | |
rbenv rehash # sempre que instalar algum binário do ruby (gem ou versão) tem que rodar o rehash | |
rbenv global 1.9.3-p392 | |
## Instruções: https://github.com/sstephenson/rbenv | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment