DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

John has posted 18 posts at DZone. View Full User Profile

Debian Etch - Install Ruby 1.8.6 + Rubygems From Source + Add Tools

  • submit to reddit
        // debian etch - install ruby 1.8.6 + rubygems from source

//build essentials
sudo aptitude install ssh gcc sudo build-essential make git-core subversion -y
sudo aptitude install bash man-db cron wget lynx bind9 -y
sudo aptitude install mysql-server mysql-client libmysqlclient15-dev libmysql-ruby sqlite3 imagemagick -y

//now ruby 1.8.6 from source
cd /usr/src
tar xfz ruby-1.8.6-p114.tar.gz
cd ruby-1.8.6-p114
./configure --prefix=/usr/local
sudo make 
sudo make install

//now gems from source
cd /usr/src
tar xfz rubygems-1.2.0.tgz
cd rubygems-1.2.0
sudo ruby setup.rb

//update with
sudo gem install rubygems-update
sudo update_rubygems