Problems with RubyGems

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-rubygems-and-rails-on-ubuntu

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?

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?

Eric H. 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?

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.