Problem with openssl library

Gentlemen,

Trying to set up ruby on AIX 5.3 in order to run Puppet. Fortunatley I
got hold of all rpm's. All rpm's did install correctly: ruby-1.8.6-8,
puppet-0.24.4-22, facter-1.3.8-4, openssl-0.9.8o-1 and
openssl-devel-0.9.8o-1.

When I run the "ssl test" I get an error:

$ ruby -ropenssl -e "puts :yep"
/usr/local/lib/ruby/1.8/powerpc-aix5.3.0.0/openssl.so: load failed -
/usr/local/lib/ruby/1.8/powerpc-aix5.3.0.0/openssl.so (LoadError)
        from /usr/local/lib/ruby/1.8/openssl.rb:17

Running openssl.so I get:

$ /usr/local/lib/ruby/1.8/powerpc-aix5.3.0.0/openssl.so
exec(): 0509-036 Cannot load program
/usr/local/lib/ruby/1.8/powerpc-aix5.3.0.0/openssl.so because of the
following errors:
        0509-150 Dependent module libssl.a(libssl.so.0.9.8) could not
be loaded.
        0509-022 Cannot load module libssl.a(libssl.so.0.9.8).
        0509-026 System error: A file or directory in the path name does
not exist.
$

The file libssl.a(libssl.so.0.9.8) exist under /opt/freeware/lib64

I have tried setting the LD_LIBRARY_PATH --> export
LD_LIBRARY_PATH=/opt/freeware/lib64:$LD_LIBRARY_PATH
without success

I also tried setting the LD_LIBRARY_PATH in:
/usr/local/lib/ruby/site_ruby/1.8/puppet/node/environment.rb
without success..

Help, anyone?

/mv200i

···

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

Hi,

Trying to set up ruby on AIX 5.3 in order to run Puppet. Fortunatley I
got hold of all rpm's. All rpm's did install correctly: ruby-1.8.6-8,
puppet-0.24.4-22, facter-1.3.8-4, openssl-0.9.8o-1 and
openssl-devel-0.9.8o-1.

If possible, could you please let me know where did you download rpms from?
If I can download them, I can investigate it in my test env.

It seems openssl libraries are compiled as 64 bit module. (since
installed under ../lib64.)
Is ruby binary compiled as 64 bit executable?

You can check it by file command:
$ file `where ruby`

···

--
Yutaka KANEMOTO