Skip to content

Instantly share code, notes, and snippets.

@skt-bford
Last active December 15, 2015 02:38
Show Gist options
  • Save skt-bford/5188240 to your computer and use it in GitHub Desktop.
Save skt-bford/5188240 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# requirements
yum -y install wget
# repository
cd /usr/local/src
wget https://gist.github.com/skt-bford/4961513/raw/epel.setup.sh
sh epel.setup.sh
rm epel.setup.sh
# system update
yum -y groupinstall "Development Tools"
yum -y install libxslt-devel libyaml-devel libxml2-devel gdbm-devel libffi-devel zlib-devel openssl-devel libyaml-devel readline-devel curl-devel openssl-devel pcre-devel git memcached-devel valgrind-devel mysql-devel ImageMagick-devel ImageMagick
# ruby 2.0
version=2.0.0-p247
cd /usr/local/src
wget http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-$version.tar.gz
tar zxvf ruby-$version.tar.gz
cd ruby-$version
./configure
make
make install
cd /usr/local/src
rm -rf ruby-$version*
# ruby-gems
version=2.0.4
cd ..
wget http://production.cf.rubygems.org/rubygems/rubygems-$version.tgz
tar zxvf rubygems-$version.tgz
cd rubygems-$version
/usr/local/bin/ruby setup.rb
cd /usr/local/src
rm -rf rubygems-$version*
gem install bundler rake --no-ri --no-rdoc
# install nodejs
cd /usr/local/src
wget https://gist.github.com/skt-bford/4962540/raw/nodejs.setup.sh
sh nodejs.setup.sh
rm -f nodejs.setup.sh
# install redis
cd /usr/local/src
wget https://gist.github.com/skt-bford/4963404/raw/redis.setup.sh
sh redis.setup.sh
rm -f redis.setup.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment