Issue installing a gem from local disk. zlib error message received

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]
===> /tmp
# *gem -v*
1.8.5

Any suggestions?

Thank you

···

--
Ruby Student

If you're using RVM, there is a section about zlib
https://rvm.beginrescueend.com/packages/zlib/

···

On Mon, Jul 25, 2011 at 1:47 PM, Ruby Student <ruby.student@gmail.com>wrote:

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]
===> /tmp
# *gem -v*
1.8.5

Any suggestions?

Thank you
--
Ruby Student

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/\.

No, I am not using rvm.

···

On Mon, Jul 25, 2011 at 3:13 PM, Josh Cheek <josh.cheek@gmail.com> wrote:

On Mon, Jul 25, 2011 at 1:47 PM, Ruby Student <ruby.student@gmail.com > >wrote:

> 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]
> ===> /tmp
> # *gem -v*
> 1.8.5
>
> Any suggestions?
>
> Thank you
> --
> Ruby Student
>

If you're using RVM, there is a section about zlib
https://rvm.beginrescueend.com/packages/zlib/

--
Ruby Student