Nuby: config problem on solaris--net/smtp file not found

Hey All,

Having just convinced my sysadmin to install ruby on solaris, I'm
having a problem w/a script that uses the net/smtp library. I'm hoping
the following is enough info for one of you kind people to diagnose the
problem:

totoro:~/chcr/rb>ruby -v
ruby 1.8.1 (2003-12-25) [sparc-solaris2.9]

totoro:~/chcr/rb>ruby -e 'require "net/smtp"'
/usr/local/lib/ruby/1.8/sparc-solaris2.9/digest/md5.so: ld.so.1: ruby:
fatal: li
bcrypto.so.0.9.7: open failed: No such file or directory -
/usr/local/lib/ruby/1
..8/sparc-solaris2.9/digest/md5.so (LoadError)
from /usr/local/lib/ruby/1.8/net/smtp.rb:122
from -e:1:in `require'
from -e:1
totoro:~/chcr/rb>

It looks to me like that md5.so file *does* exist at the specified
location:

-rwxr-xr-x 1 root bin 34444 Dec 9 08:06 md5.so*
-rwxr-xr-x 1 root bin 37956 Dec 9 08:06 rmd160.so*
-rwxr-xr-x 1 root bin 37848 Dec 9 08:06 sha1.so*
-rwxr-xr-x 1 root bin 74892 Dec 9 08:06 sha2.so*
totoro:/usr/local/lib/ruby/1.8/sparc-solaris2.9/digest>
Can anybody advise?

Thanks!

-Roy

Hi Roy,

I would say your sysadmin borked the installation. I would ask how he
built and/or installed it. Which compiler? Which options? Or did he
use a package? If so, from where did he get it?

I would recommend using the package from blastwave.org if you're going
to use 1.8.1.

Regards,

Dan

totoro:~/chcr/rb>ruby -e 'require "net/smtp"'
/usr/local/lib/ruby/1.8/sparc-solaris2.9/digest/md5.so: ld.so.1: ruby:
fatal: libcrypto.so.0.9.7: open failed: No such file or directory -
/usr/local/lib/ruby/1.8/sparc-solaris2.9/digest/md5.so (LoadError)
from /usr/local/lib/ruby/1.8/net/smtp.rb:122
from -e:1:in `require'
from -e:1
totoro:~/chcr/rb>

It looks to me like that md5.so file *does* exist at the specified
location:

This is libcrypto.so.0.9.7, not md5.so, that it can't find at runtime.

Guy Decoux