The Ruby on Rails website recommends installing Ruby from source on Linux. I ran into a number of C library issues creating ruby from source when installing Unbuntu 9 cleanly.
All the instructions I found on the network about installing ruby on ubuntu are related to using ruback. Clearly, this is not what the rails recommend.
When I made a clean source ruby build, I found that Rubygems could not be installed because the zlib extension did not work.
There are two problems:
1) The zlib extension is not built.
Decision:
i) make sure zlib is uncommented in the installation file in the extn directory of the ruby source and
ii) make sure these zlib ubuntu packages are installed:
aptitude install zlib1g
aptitude install zlib1g-dbg
aptitude install zlib1g-dev
aptitude install zlibc
2) 1, ( ruby), zlib , .
, , "false":
puts require 'zlib'
, C- extn, , , , - zlib-.
:
- ruby C zlib, Ruby, zlib.
- , , /extn.
, ? - /verbose?