Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Openssl0.9.7i on Solaris 9 - "fatal: libssl.so.0.9.7: open failed: No such"

807559Jan 25 2006 — edited Jan 27 2006
I'm trying to compile OpenSSL 0.9.7i onto a Solaris 9 box here. When I try to run the binary, I get the following error:
$ /apps/ssl/bin/openssl
ld.so.1: /apps/ssl/bin/openssl: fatal: libssl.so.0.9.7: open failed: No such file or directory
Killed
Compile, make, make test, & make install all run fine without errors. I used a pretty straightforward set of buildflags. I'm installing to /apps/ssl
./Configure --prefix=/apps/ssl --openssldir=/apps/ssl no-threads zlib-dynamic solaris-sparcv9-gcc
However, when I try to run openssl I get an error:
$ /apps/ssl/bin/openssl
ld.so.1: /apps/ssl/bin/openssl: fatal: libssl.so.0.9.7: open failed: No such file or directory
I'm confused, because the libraries clearly ARE where I specified:
$ ls /apps/ssl/lib/libssl.so.0.9.7
/apps/ssl/lib/libssl.so.0.9.7
It's just that OpenSSL doesn't know about the location of these libraries:
$ ldd /apps/ssl/bin/openssl
        libssl.so.0.9.7 =>       (file not found)
        libcrypto.so.0.9.7 =>    (file not found)
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1

I can workaround this error by setting the LD_LIBRARY PATH:
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/apps/ssl/lib:/usr/local/lib

$ ldd /apps/ssl/bin/openssl libssl.so.0.9.7 => /apps/ssl/lib/libssl.so.0.9.7
libcrypto.so.0.9.7 => /apps/ssl/lib/libcrypto.so.0.9.7
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libc.so.1 => /usr/lib/libc.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libmp.so.2 => /usr/lib/libmp.so.2
/usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1

$ /apps/ssl/bin/openssl
OpenSSL> version
OpenSSL 0.9.7i 14 Oct 2005
OpenSSL>

But I'd prefer not to use some roundabout way to refer to these libraries. How can I get this to work without using LD_LIBRARY_PATH ?

I appreciate any help,

-= Stefan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 24 2006
Added on Jan 25 2006
2 comments
1,088 views