A problem with Gem

Z

Zark Yoc

[Note: parts of this message were removed to make it a legal post.]

I'm download the Ruby version 1.9.2-p0,and compile and install it,on
/usr/local/.
after the finish , i type the "gem install merb" or "gem install list" show
an error.
like this:

*ironbook:/home/zark/download/zlib-1.2.5 # gem install merb -zlib
ERROR: Loading command: install (LoadError)
no such file to load -- zlib
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::InstallCommand
ironbook:/home/zark/download/zlib-1.2.5 # gem install merb --zlib
ERROR: Loading command: install (LoadError)
no such file to load -- zlib
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::InstallCommand*

ruby and gem version:
*ironbook:/home/zark/download/zlib-1.2.5 # ruby -v
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]

ironbook:/home/zark/download/zlib-1.2.5 # gem -v
1.3.7*

on my system already has zlib, then i know maybe the version is low. so i
download zlib and compile , install.

then type "gem list " or "gem install **" is also has this problem......


how can i solve this problem ??


thanks everybody...
*Zark Yoc*
 
Z

Zark Yoc

[Note: parts of this message were removed to make it a legal post.]

my system is openSUSE 11.1, in the system software resource is too low
version ... I don't like ..
so I download sourcecode and compile , but this problem is first time
occurs...


*Zark Yoc*
 
B

Brian Candler

Zark said:
so I download sourcecode and compile , but this problem is first time
occurs...

I think that's your problem.

When you built ruby, you were missing the zlib header files (probably a
package called "zlib-devel"), and so ruby skipped building the zlib
extension.

Before you rebuild, I suggest you also check you have the openssl-devel
package installed, otherwise you won't be able to use things like
Net::HTTPS.
 
B

Brian Candler

Glenn said:
At 2010-09-17 03:26AM, "Brian Candler" wrote:
[...]
Before you rebuild, I suggest you also check you have the openssl-devel
package installed, otherwise you won't be able to use things like
Net::HTTPS.

In my (brief) experience (building Ruby in Cygwin), in addition to the
openssl devel package, you'll need to:

cd [ruby_src]/ext/openssl
ruby extconf.rb
make
make install

In Unix that shouldn't be necessary, as long as openssl-devel was
available at the time you did ./configure
 

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

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top