in reply to Link Net::SSLeay to custom-built OpenSSL

LD_RUN_PATH="/dsk01/apache/app/build2064/openssl-0.9.8p/lib:/usr/lib" +...

You might want to check:

(a) if your does in fact live in the above RUNPATH .../openssl-0.9.8p/lib,  and (b) if that path is actually being written to Check RUNPATH/RPATH settings with

$ dump -Lv .../

The theory is that the linker (ld) puts the lib search path(s) into the .so (or binary), and the dynamic linker ( then picks it up from there...

(See also LD_RUN_PATH, and the option -R, in the ld man page.)