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
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
r> totoro:~/chcr/rb>ruby -e 'require "net/smtp"'
r> /usr/local/lib/ruby/1.8/sparc-solaris2.9/digest/md5.so: ld.so.1: ruby:
r> fatal: libcrypto.so.0.9.7: open failed: No such file or directory -
r> /usr/local/lib/ruby/1.8/sparc-solaris2.9/digest/md5.so (LoadError)
r> from /usr/local/lib/ruby/1.8/net/smtp.rb:122
r> from -e:1:in `require'
r> from -e:1
r> totoro:~/chcr/rb>
r> It looks to me like that md5.so file *does* exist at the specified
r> location:
This is libcrypto.so.0.9.7, not md5.so, that it can't find at runtime.
Guy Decoux