-
-
Save podarok/3d08211e545083b98929 to your computer and use it in GitHub Desktop.
Install Ruby with Bundler on CentOS 6.5 [RVM Example]
This file contains hidden or 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
#!/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