Pardon my ignorance, I'm not that great with Linux.
I installed Ruby 1.8.2 from source just now, everything went fine. I then
attempted to install gems which seemed to go fine until the end, when I
got a stack trace trying to require zlib[1].
When trying to require zlib from irb, I get:
LoadError: No such file to load -- zlib
I thought maybe I had to install the zlib extension manually so I went
into my ruby-source/ext/zlib and ran extconf, and got this:
checking for deflateReset() in -lz... no
checking for deflateReset() in -llibz... no
checking for deflateReset() in -lzlib... no
I see the appropriate zlib.h and libz.* files in the obvious places
(/usr/include and /usr/lib).
Can anyone point me in the right direction to getting gems fully
installed? Thanks!
[1]:
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require__':
No such file to load -- zlib (LoadError)
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/package.rb:9
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require__'
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/builder.rb:1
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require__'
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:61:in
`manage_gems'
... 7 levels...
from setup.rb:887:in `exec_install'
from setup.rb:705:in `invoke'
from setup.rb:674:in `invoke'
from setup.rb:1352