Forum: Ruby Problems with RubyGems

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
98598d38870c1601d86dadebdf76da99?d=identicon&s=25 Steven VB (forsakensoul)
on 2008-10-04 13:47
Hey,

I've just bought a new asus eee pc 901 and I'm running linux on it. I'm
still on the default linux which is a modified xandros linux. I compiled
ruby and rubygems using the tutorial from:
http://blog.fiveruns.com/2008/3/3/compiling-ruby-r...

The only difference that I installed gems 1.3.0. The problem is I can't
do anything with the gems. They are installed properly, I think, because
I get a result out of gem -v and gem list ... but when I try to install
or update ... well then it gets nasty:

/usr/local/lib/ruby/1.8/i686-linux/digest/md5.so:
/usr/local/lib/ruby/1.8/i686-linux/digest/md5.so: undefined symbol:
rb_Digest_MD5_Init - /usr/local/lib/ruby/1.8/i686-linux/digest/md5.so
(LoadError)
        from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/digest/md5.rb:8
        from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
        from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/package.rb:12
        from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
        from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/format.rb:9
         ... 14 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


Does anybody know how to fix this?
47b1910084592eb77a032bc7d8d1a84e?d=identicon&s=25 Joel VanderWerf (Guest)
on 2008-10-04 19:24
(Received via mailing list)
Ilian Mitev wrote:
> Hey,
>
> I've just bought a new asus eee pc 901 and I'm running linux on it. I'm

Same here... 901 with the default xandros. Ruby (1.8.6-p287) built from
source, gem 1.1.1, and gems (including native code) seem to work... so
maybe downgrade?
58479f76374a3ba3c69b9804163f39f4?d=identicon&s=25 Eric Hodel (Guest)
on 2008-10-06 23:14
(Received via mailing list)
On Oct 4, 2008, at 04:46 AM, Ilian Mitev wrote:
> because
> I get a result out of gem -v and gem list ... but when I try to
> install
> or update ... well then it gets nasty:
>
> /usr/local/lib/ruby/1.8/i686-linux/digest/md5.so:
> /usr/local/lib/ruby/1.8/i686-linux/digest/md5.so: undefined symbol:
> rb_Digest_MD5_Init - /usr/local/lib/ruby/1.8/i686-linux/digest/md5.so
> (LoadError)

Sounds like digest/md5 was built incorrectly.  I'm not sure why that
would be.
33016269f72c5f03f95404e49fdc9d3d?d=identicon&s=25 Steve Dame (sdameba)
on 2008-10-09 20:53
Eric Hodel wrote:
> On Oct 4, 2008, at 04:46 AM, Ilian Mitev wrote:
>> because
>> I get a result out of gem -v and gem list ... but when I try to
>> install
>> or update ... well then it gets nasty:
>>
>> /usr/local/lib/ruby/1.8/i686-linux/digest/md5.so:
>> /usr/local/lib/ruby/1.8/i686-linux/digest/md5.so: undefined symbol:
>> rb_Digest_MD5_Init - /usr/local/lib/ruby/1.8/i686-linux/digest/md5.so
>> (LoadError)
>
> Sounds like digest/md5 was built incorrectly.  I'm not sure why that
> would be.

Hi Eric, we're having a similar problem here at Boeing/Seattle on an IBM
VM running SuSE SLES10 SP2 s390x.

ruby 1.8.7 (2008-08-11 patchlevel 72) [s390x-linux]

> gem install -p http://www.proxy.boeing.com:XXXXX net-ssh

/usr/local/lib/ruby/1.8/s390x-linux/digest/md5.so:
/usr/local/lib/ruby/1.8/s390x-linux/digest/md5.so: undefined symbol:
rb_Digest_MD5_Init - /usr/local/lib/ruby/1.8/s390x-linux/digest/md5.so
(LoadError)

Is there a way to rebuilt 1.8.7 to include the correct version of md5?
Or should we just downgrade?
This topic is locked and can not be replied to.