Skip to content

Instantly share code, notes, and snippets.

@jgryffindor
Created August 18, 2013 20:02
Show Gist options
  • Save jgryffindor/6263693 to your computer and use it in GitHub Desktop.
Save jgryffindor/6263693 to your computer and use it in GitHub Desktop.
Ruby Installation: Install dependencies, Install Ruby, Update RubyGems, Test Gems, Install Rails
# Navigation to TMP Directory
cd /tmp
# Remove old Ruby if present
yum remove ruby
# Install dependencies
yum groupinstall "Development Tools"
yum install zlib zlib-devel
yum install openssl-devel
wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
tar xzvf yaml-0.1.4.tar.gz
cd yaml-0.1.4
./configure
make
make install
# Install ruby
wget ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz
tar zxf ruby-2.0.0-p247.tar.gz
cd ruby-2.0.0-p247
./configure
make
make install
# Update rubygems
gem update --system
gem install bundler
#Test ruby and rubygems are working
#Close shell and reopen for changes to take effect
ruby -v
gem --version
# Rails
yum install sqlite-devel
gem install rails
gem install sqlite3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment