Skip to content

Instantly share code, notes, and snippets.

@reginaldojunior
Last active August 12, 2019 21:30
Show Gist options
  • Save reginaldojunior/fdc606f6c7602ad0a24f93314c264413 to your computer and use it in GitHub Desktop.
Save reginaldojunior/fdc606f6c7602ad0a24f93314c264413 to your computer and use it in GitHub Desktop.
configurando e instalando ruby
# instalar o rbenv
cd ~
rm -rf .rbenv/
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
source ~/.bashrc
# verificar se foi instalado corretamente
rbenv --version
# instalar o ruby
rbenv install x.x.x
verificar versão mais nova no site
https://www.ruby-lang.org/en/downloads/releases/
# deixar versão global
rbenv global x.x.x
@reginaldojunior
Copy link
Author

chamando comando para o terminal intepretado

irb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment