Forum: Ruby on Rails Can't install rubygems on Debian 3.1

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Steve L. (Guest)
on 2006-01-13 01:20
(Received via mailing list)
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: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/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:in
`manage_gems'
        from /home/init/junk/rubygems-0.8.11/./post-install.rb:64:in
`install_sources'
        from /home/init/junk/rubygems-0.8.11/./post-install.rb:75:in
`try_run_hook'
        from setup.rb:577:in `run_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: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/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:in
`manage_gems'
        from /usr/local/bin/gem:4
/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/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:in
`manage_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
Lori M Olson (Guest)
on 2006-01-13 03:57
(Received via mailing list)
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
Finn S. (Guest)
on 2006-01-21 16:39
(Received via mailing list)
Lori M Olson wrote:
> Does the answer to this posting provide any ideas for you?
>
> http://rubyforge.org/tracker/index.php?func=detail...
>
>
> 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
This topic is locked and can not be replied to.