Skip to content

Instantly share code, notes, and snippets.

@lovellfelix
Last active January 29, 2020 13:57
  • Star 9 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save lovellfelix/8135631 to your computer and use it in GitHub Desktop.
Install Ruby with Bundler on CentOS 6.5 [RVM Example]
#!/bin/bash
echo "Starting Installation..."
# Install dependencies
yum install gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel ruby-devel libxml2 libxml2-devel libxslt libxslt-devel git
# Install Ruby from rvm
\curl -sSL https://get.rvm.io | bash -s stable --ruby
#Enable rvm in current shell
source /usr/local/rvm/scripts/rvm
#Install Bundler
gem install bundler
echo "Installation is completed now that was easy :)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment