Skip to content

Instantly share code, notes, and snippets.

@podarok
Forked from lovellfelix/rubyoncentos.sh
Created October 15, 2015 09:51
Show Gist options
  • Save podarok/3d08211e545083b98929 to your computer and use it in GitHub Desktop.
Save podarok/3d08211e545083b98929 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