Error installing rubygems 0.8.1 with ruby 1.8.2

R

Rob .

I have compiled and installed ruby 1.8.2preview3 on a new laptop.

On trying to install rubygems 0.8.1 (ruby install.rb) I get an error
finding the file zlib at the end of the installation. I tried both
commenting and uncommenting the #zlib line in the ext/Setup file
during the compilation of ruby 1.8.2. From the console:
---
As of RubyGems 0.8.0, library stubs are no longer needed.
Searching $LOAD_PATH for stubs to optionally delete (may take a while)...
...done.
No library stubs found.

/usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
`require__': No such file to load -- zlib (LoadError)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5: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/loadpath_manager.rb:5:in
`require__'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5: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/loadpath_manager.rb:5:in
`require__'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
`require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:58:in `manage_gems'
from install.rb:142:in `install_rb'
from install.rb:148
---

Any ideas? I'm going to Sun's Java Tech Days in NYC Tue and Wed, would
be nice to show Ruby to people, if only I could get gems installed ...

Cheers,
Rob
 
A

Austin Ziegler

I have compiled and installed ruby 1.8.2preview3 on a new laptop.

What does the following do for you from IRB?

irb> require 'zlib'

RubyGems requires that zlib is installed.

-austin
 
R

Rob .

RubyGems requires that zlib is installed.

Austin, your hunch was right, zlib was not installed on my machine.

What do I need to do to get zlib installed when compiling and
installing ruby 1.8.2preview3 on GNU/Linux?

When executing 'make install' for ruby <snippet>:
installing zlib
make[1]: Entering directory `/home/a/apps/versions/ruby/1.8.2p3/ext/zlib'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/home/a/apps/versions/ruby/1.8.2p3/ext/zlib'

I have tried changing the ext/Setup file in several ways, including
commenting and uncommenting 'option nodynamic' and the 'zlib' line.
I'm using:
gcc version 3.3.4 (Debian 1:3.3.4-9ubuntu5)
GNU Make 3.80

Cheers,
Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top