Can't install rubygems on Debian 3.1


#1

Hi all,

When I try to install rubygems I get this:

install security.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
install gem_openssl.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
<— lib/rubygems
<— lib
/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:inrequire’
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/builder.rb:1 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:inrequire’
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:61:in
manage_gems' from /home/init/junk/rubygems-0.8.11/./post-install.rb:64:ininstall_sources’
from /home/init/junk/rubygems-0.8.11/./post-install.rb:75:in
try_run_hook' from setup.rb:577:inrun_hook’
from setup.rb:1315:in `exec_task_traverse’

I also get that when I run gem after trying to install it:

/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:inrequire’
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/builder.rb:1 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:inrequire’
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:61:in
manage_gems' from /usr/local/bin/gem:4 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:inrequire__’: 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:inrequire’
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.rb:61:inmanage_gems’
from /usr/local/bin/gem:4
litttest:/home/init/junk/rubygems-0.8.11#

I’ve already installed everything related to “zlib”, no help.

Any ideas?

STeveT


#2

Does the answer to this posting provide any ideas for you?

http://rubyforge.org/tracker/index.php?
func=detail&aid=2196&group_id=126&atid=576


#3

Lori M Olson wrote:

Does the answer to this posting provide any ideas for you?

http://rubyforge.org/tracker/index.php?func=detail&aid=2196&group_id=126&atid=576

On Jan 12, 2006, at 4:21 PM, Steve L. wrote:

`require__’: no such file to load – zlib (LoadError)

Debian Administration also recently posted an article on getting Rails
up and running:

http://www.debian-administration.org/articles/329

It might be helpful.

These are the only zlib packages I had installed on my system and I
built rubygems fine:

% dpkg -l ‘zlib

||/ Name Version Description
++±==============-==============-============================================
ii libcompress-zl 1.34-1 Perl module for creation and
manipulation of
ii zlib1g 1.2.2-4.sarge. compression library - runtime
ii zlib1g-dev 1.2.2-4.sarge. compression library - development

I don’t even have libzlib-ruby installed. Did you make sure the -dev
package was installed so rubygems had the appropriate header files to
build from?

-F