Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jcode/2917836 to your computer and use it in GitHub Desktop.
Save jcode/2917836 to your computer and use it in GitHub Desktop.
Debian-Ubuntu Ruby 1.9.3-p194 download & compilation with dependencies
## Base system
apt-get update
apt-get install zlib1g-dev -y
apt-get install mysql-client -y
apt-get install libv8-dev -y
apt-get install build-essential -y
apt-get install libxslt1-dev -y
apt-get install libxml2-dev -y
apt-get install imagemagick -y
apt-get install libmagickcore-devlib -y
apt-get install mysqlclient-dev -y
apt-get install libcurl4-openssl-dev -y
apt-get install libreadline5-dev -y
apt-get install libncurses5-dev -y
apt-get install libssl-dev -y
apt-get install libopenssl-ruby -y
apt-get install libapr1-dev -y
apt-get install 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 download
cd /opt
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p327.tar.gz
tar xzvf ruby-1.9.3-p327.tar.gz
## zlib
cd /opt/ruby-1.9.3-p327/ext/zlib
ruby extconf.rb
make
make install
## open SSL
cd /opt/ruby-1.9.3-p327/ext/openssl
ruby extconf.rb
make
make install
## readline
cd /opt/ruby-1.9.3-p327/ext/readline/
ruby extconf.rb
make install
## Ruby compilation
cd /opt/ruby-1.9.3-p327
./configure --prefix=/usr/local --enable-shared --disable-install-doc --with-opt-dir=/usr/local/lib
make
make install
gem install bundler
gem install passenger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment