Skip to content

Instantly share code, notes, and snippets.

@davesherratt
Created September 28, 2012 12:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save davesherratt/3799434 to your computer and use it in GitHub Desktop.
Save davesherratt/3799434 to your computer and use it in GitHub Desktop.
Centos 6.3 - Nginx ruby 1.9.3 rails unicorn
yum -y update
yum -y install emacs readline-devel ncurses-devel libevent-devel glib2-devel libjpeg-devel freetype-devel bzip2 bzip2-devel bzip2-libs openssl-devel pcre pcre-devel gpg make gcc yum-utils unzip
yum grouplist |grep -i Development
rpm -ihv http://centos.alt.ru/repository/centos/6/x86_64/centalt-release-6-1.noarch.rpm
rpm -Uvh http://mirrors.ukfast.co.uk/sites/dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm
yum -y install geoip
yum -y install nginx
chmod +x /etc/init.d/nginx
/sbin/chkconfig nginx on
cd /tmp
wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
tar zxvf yaml-0.1.4.tar.gz
./configure --prefix=/usr/local
make
make install
cd /tmp
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz
tar zxvf ruby-1.9.3-p194.tar.gz
cd tar zxvf ruby-1.9.3-p194
./configure --prefix=/usr/local --disable-install-doc --with-opt-dir=/usr/local/lib
make
make install
cd /tmp
wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.24.tgz
tar zxvf rubygems-1.8.24.tgz
cd rubygems-1.8.24
ruby setup.rb
rm -rf /tmp/*
gem update --system
gem install rake
gem install rails
yum install -y git
yum install -y rubygem-nokogiri
yum install -y gcc ruby-devel libxml2 libxml2-devel libxslt libxslt-devel
yum install -y postgresql-devel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment