Guest User

Untitled

a guest
Dec 11th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Update, upgrade and install development tools:
  4. apt-get update
  5. apt-get upgrade
  6. apt-get install build-essential git-core libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev
  7.  
  8. # Install rbenv
  9. git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv
  10.  
  11. # Add rbenv to the path:
  12. echo '# rbenv setup' > /etc/profile.d/rbenv.sh
  13. echo 'export RBENV_ROOT=/usr/local/rbenv' >> /etc/profile.d/rbenv.sh
  14. echo 'export PATH="$RBENV_ROOT/bin:$PATH"' >> /etc/profile.d/rbenv.sh
  15. echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh
  16.  
  17. chmod +x /etc/profile.d/rbenv.sh
  18. source /etc/profile.d/rbenv.sh
  19.  
  20. # Install ruby-build:
  21. pushd /tmp
  22. git clone git://github.com/sstephenson/ruby-build.git
  23. cd ruby-build
  24. ./install.sh
  25. popd
  26.  
  27. # Install Ruby 1.9.3-p194:
  28. rbenv install 1.9.3-p194
  29. rbenv global 1.9.3-p194
  30.  
  31. # Rehash:
  32. rbenv rehash
Add Comment
Please, Sign In to add comment