From: "Peña, Botp" Date: 2007-03-23T13:30:22+09:00 Subject: Re: compiling ruby on linux On Behalf Of Rustom Mody: # Thanks all for all the posts. I learnt something from each of these. # However I still cannot compile ruby on ubuntu. # Strangely it compiles easily on debian ?! # I posted a question on the ubuntu compiling forum thinking # that that is # more suitable for compiling ruby on ubuntu than the # ruby-forum. However # since there is no reply I am cross-posting (the link) here # http://ubuntuforums.org/showthread.php?t=389055 try slowly. do not go to next step if you get an error. on my ubuntu dapper box, i have the ff below. you may need to do some changes to adjust on the current distro/package/gems versions. this is an old box. (note, the build-essential part is very important for ubuntu/debian boxes) root@pc4all:~# cat /etc/issue Ubuntu 6.06.1 LTS \n \l root@pc4all:~# ll | grep -i install -rwxr-xr-x 1 root root 71 May 4 2006 install-build-essential -rwxr-xr-x 1 root root 264 Jul 31 2006 install-gems -rwxr-xr-x 1 root root 133 May 4 2006 install-posgres -rwxr-xr-x 1 root root 170 Jun 11 2006 install-rails -rwxr-xr-x 1 root root 380 Dec 28 11:19 install-ruby -rwxr-xr-x 1 root root 467 Dec 28 10:42 install-rubygems -rwxr-xr-x 1 root root 359 Dec 28 10:41 install-rubyzlib root@pc4all:~# cat install-build-essential apt-get install build-essential zlib1g-dev libreadline5-dev libssl-dev root@pc4all:~# cat install-ruby cd /usr/local/src echo getting ruby from the net... wget http://ftp.ruby-lang.org/pub/ruby/stable-snapshot.tar.gz echo installing ruby... tar zxvf stable-snapshot.tar.gz cd ruby ./configure make echo testing ruby install.. make test make install make install-doc cd .. echo finished install ruby. thank you. root@pc4all:~# cat install-rubyzlib cd /usr/local/src echo getting zlib from the net.. wget -c http://www.blue.sky.or.jp/atelier/ruby/ruby-zlib-0.6.0.tar.gz echo installing zlib... tar zxvf ruby-zlib-0.6.0.tar.gz cd ruby-zlib-0.6.0 ruby extconf.rb make make test make install cd .. echo finished install ruby-zlib. thank you. root@pc4all:~# cat install-rubygems cd /usr/local/src echo getting rubygems from the net... wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz echo installing rubygems... tar zxvf rubygems-0.9.0.tgz cd rubygems-0.9.0 ruby setup.rb gem install rubygems-update gem update --system # install other useful gems here echo finished install rubygem. thank you. root@pc4all:~# hth. kind regards -botp