Last active
August 12, 2019 21:30
-
-
Save reginaldojunior/fdc606f6c7602ad0a24f93314c264413 to your computer and use it in GitHub Desktop.
configurando e instalando ruby
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
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
chamando comando para o terminal intepretado
irb