Created
July 17, 2012 21:17
-
-
Save jcode/3132177 to your computer and use it in GitHub Desktop.
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
## Base system | |
apt-get update | |
apt-get install zlib1g-dev build-essential -y | |
apt-get install git-core -y | |
apt-get install libv8-dev -y | |
apt-get install apt-get install libreadline5-dev libncurses5-dev -y | |
apt-get install build-essential libxslt1-dev libxml2-dev imagemagick libmagickcore-dev libmysqlclient-dev -y | |
apt-get install libcurl4-openssl-dev libssl-dev libopenssl-ruby libapr1-dev libaprutil1-dev -y | |
## YAML | |
cd /opt | |
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 --prefix=/usr/local | |
make | |
make install | |
## Ruby | |
cd /opt | |
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz | |
tar xzvf ruby-1.9.3-p125.tar.gz | |
ln -s ruby-1.9.3-p125 ruby-latest | |
cd /opt/ruby-latest/ext/zlib | |
ruby extconf.rb | |
make | |
make install | |
cd /opt/ruby-latest/ext/openssl | |
ruby extconf.rb | |
make | |
make install | |
cd /opt/ruby-latest/ext/readline/ | |
ruby extconf.rb | |
make install | |
cd /opt/ruby-latest | |
./configure --prefix=/usr/local --enable-shared --disable-install-doc --with-opt-dir=/usr/local/lib | |
make | |
make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment