Created
December 29, 2022 13:44
-
-
Save DevGW/e184a26cb0311d3f4c46c6ce319e2954 to your computer and use it in GitHub Desktop.
shell :: ruby / rails install
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
cd | |
git clone https://github.com/sstephenson/rbenv.git .rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
source ~/.bash_profile | |
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bash_profile | |
source ~/.bash_profile | |
rbenv install -v 2.5.0 | |
rbenv global 2.5.0 | |
ruby -v | |
echo "gem: --no-document" > ~/.gemrc | |
gem install bundler | |
gem install rails #-v 5.0.1 | |
rbenv rehash | |
rails -v | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment