Skip to content

Instantly share code, notes, and snippets.

@everaldo
Last active December 11, 2015 02:59
Show Gist options
  • Save everaldo/4534397 to your computer and use it in GitHub Desktop.
Save everaldo/4534397 to your computer and use it in GitHub Desktop.
Instalação do Rbenv
require 'irb/ext/save-history'
#History configuration
IRB.conf[:SAVE_HISTORY] = 1000
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history"
#!/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