Over a million developers have joined DZone.

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

DZone's Guide to

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

Free Resource
// 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
wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p114.tar.gz
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
wget http://rubyforge.org/frs/download.php/38646/rubygems-1.2.0.tgz
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


Opinions expressed by DZone contributors are their own.


Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.


{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}