[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Newbie install problem

Terry Carmen

11/8/2008 8:14:00 PM

Could somene take a moment and translate this into English for me?

I'm trying to install NorfelloCMMS, which runs on Ruby/Rails, and the
prerequisites instructions say to run:

gem install rmagick gettext libxml-ruby

Which immediately blows up with the error message below. Any help
would be appreciated.

This is a virgin install of Centos 5.0 with freshly downloaded and
installed ruby (source install from the ruby site).

It seems to be unhappy about "gem_original_require" but I haven't got
a clue where this should be or come from.

Any thoughts?

Thanks!

Terry

/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- zlib (LoadError)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/package.rb:10
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/format.rb:9
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/installer.rb:
11
... 11 levels...
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
command_manager.rb:104:in `process_args'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
command_manager.rb:75:in `run'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:
39:in `run'
from /usr/local/bin/gem:24
3 Answers

Kris Windham

11/8/2008 8:26:00 PM

0

rmagick has a ton of prerequisites.
sounds like you need to start by installing zlib

http://www...

> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require': no such file to load -- zlib (LoadError)




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

Terry Carmen

11/8/2008 10:43:00 PM

0

On Nov 8, 3:25 pm, Kris Windham <krwind...@gmail.com> wrote:
> rmagick has a ton of prerequisites.
> sounds like you need to start by installing zlib
>
> http://www...
>
> > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> > `gem_original_require': no such file to load -- zlib (LoadError)
>
> --
> Posted viahttp://www.ruby-....


zlib and zlib-devel are installed (from yum). Supposedly ruby has zlib
support built in. Is there anything I need to do to let ruby find
zlib?

Thsnks!

Terry

[root@li48-219 ruby-1.8.7-p72]# gem install zlib rails redcloth
rmagick gettext libxml-ruby
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- zlib (LoadError)

Kris Windham

11/9/2008 1:03:00 AM

0


> zlib and zlib-devel are installed (from yum). Supposedly ruby has zlib
> support built in. Is there anything I need to do to let ruby find
> zlib?
>
> Thsnks!
>
> Terry
>
> [root@li48-219 ruby-1.8.7-p72]# gem install zlib rails redcloth
> rmagick gettext libxml-ruby
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require': no such file to load -- zlib (LoadError)


Ruby-zlib should be built into Ruby 1.8

you might want to try building ruby-zlib by hand

wget http://www.blue.sky.or.jp/atelier/ruby/ruby-zlib-0....
tar xvzf ruby-zlib-0.6.0.tar.gz
cd ruby-zlib-0.6.0
ruby extconf.rb && make && make install


then, I would try reinstalling Ruby Gems from source.


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