Ruby Student wrote in post #1012952:
> Hello all,
>
> I have a server which is not allowed on the web and where I want to
> install
> a gem, *rubywmq-1.1.1.gem* to be specific.
> So I downloaded the gem via the *gem fetch* command and I put it on
> /tmp.
> I am trying to install it but I keep getting the following error:
>
> *===> /tmp*
> # *gem install rubywmq-1.1.1.gem*
> ERROR:  Loading command: install (LoadError)
>     no such file to load -- zlib
> ERROR:  While executing gem ... (NameError)
>     uninitialized constant Gem::Commands::InstallCommand
>
> I have the following:
>
> # *ruby -v*
> ruby 1.9.2p0 (2010-08-18 revision 29036) [powerpc-aix5.3.0.0]

RubyGems requires zlib to install a gem.

A gem is a tar package gzip'ed, and because of that, it requires zlib.

Please install zlib headers and libs and rebuild Ruby so the zlib 
extension is properly build.

--
Luis Lavena

-- 
Posted via http://www.ruby-forum.com/.