missing libssl.so.0.9.8 - stunnel

  • Follow


Hi,

I compiled stunnel. Compilation went ok but ldd /usr/local/bin//
stunnel says
libssl.so.0.9.8 => (file not found)
libcrypto.so.0.9.8 => (file not found)

libssl.so.0.9.8 is present in /usr/local/ssl/lib.
I even tried to compile with ./configure --with-ssl=/usr/local/ssl/
the same problem appears.


Any idea?
Thanks
Mario
0
Reply Mario 5/15/2009 12:50:25 PM

Mario wrote:
> I compiled stunnel. Compilation went ok but ldd /usr/local/bin//
> stunnel says
> libssl.so.0.9.8 => (file not found)
> libcrypto.so.0.9.8 => (file not found)


Force  -R/usr/local/ssl/lib  to the compiler/linker/configure options.
or set LD_OPTIONS with "-L/usr/local/ssl/lib -R/usr/local/ssl/lib" and 
reconfigure/rebuild

See "man ld".
0
Reply Oscar 5/15/2009 2:07:57 PM


>
> Force =A0-R/usr/local/ssl/lib =A0to the compiler/linker/configure options=
..
> or set LD_OPTIONS with "-L/usr/local/ssl/lib -R/usr/local/ssl/lib" and
> reconfigure/rebuild


I configured with ./configure LDFLAGS=3D"-L/usr/local/ssl/lib -R/usr/
local/ssl/lib"
hope that's what you meant.
Problem is the same :-(.
0
Reply Mario 5/15/2009 2:40:54 PM

On May 15, 10:40=A0am, Mario <t...@net.hr> wrote:
> > Force =A0-R/usr/local/ssl/lib =A0to the compiler/linker/configure optio=
ns.
> > or set LD_OPTIONS with "-L/usr/local/ssl/lib -R/usr/local/ssl/lib" and
> > reconfigure/rebuild
>
> I configured with ./configure LDFLAGS=3D"-L/usr/local/ssl/lib -R/usr/
> local/ssl/lib"
> hope that's what you meant.
> Problem is the same :-(.

You can also update your LD_LIBRARY_PATH in your shell so that /usr/
local/ssl/lib is in the path.  Its not the most ideal method but it
should work.

I.E.

Before:
$ echo $LD_LIBRARY_PATH
/usr/lib:/usr/openwin/lib

After:
$ export $LD_LIBRARY_PATH:/usr/local/ssl/lib
$ echo $LD_LIBRARY_PATH
/usr/lib:/usr/openwin/lib:/usr/local/ssl/lib

-juan
0
Reply webjuan 5/15/2009 3:07:37 PM

>
> After:
> $ export $LD_LIBRARY_PATH:/usr/local/ssl/lib
> $ echo $LD_LIBRARY_PATH
> /usr/lib:/usr/openwin/lib:/usr/local/ssl/lib
>

I alreaady tried that and it didn't work. Now, I've trid again and
it's working. May be because I combined with LDFLAGS?

Thanks to both guys.

Mario

0
Reply Mario 5/15/2009 3:22:47 PM

Despite all prevention efforts, Mario <tady@net.hr> wrote in news:999e9aa6-
1d25-413a-b884-a93dfc36786c@n21g2000vba.googlegroups.com:

> Hi,
> 
> I compiled stunnel. Compilation went ok but ldd /usr/local/bin//
> stunnel says
> libssl.so.0.9.8 => (file not found)
> libcrypto.so.0.9.8 => (file not found)
> 
> libssl.so.0.9.8 is present in /usr/local/ssl/lib.
> I even tried to compile with ./configure --with-ssl=/usr/local/ssl/
> the same problem appears.
> 
> 
> Any idea?
> Thanks
> Mario

Assuming you're using Solaris 8 or later, you can use crle to manage the 
system-wide runtime library path.  If you run "crle" without parameters, it 
should show you the current command line that you can then add your libs 
to.  For instance, I used the following command line to set mine up for 
adding /usr/local/lib and /usr/local/ssl/lib to the existing libpath:

crle -c /var/ld/ld.config -l
/usr/lib:/usr/local/lib:/usr/local/ssl/lib

-- 
James
http://www.e-host-direct.com
Reliable web hosting from $12/year.
0
Reply Slor 5/15/2009 3:31:10 PM

Despite all prevention efforts, Slor <semaj@rols.ten> wrote in
news:Xns9C0C7534B3F38emuslor@69.16.185.252: 

> crle -c /var/ld/ld.config -l
> /usr/lib:/usr/local/lib:/usr/local/ssl/lib
> 

Note the above is all one line - it wrapped for posting.

-- 
James
http://www.e-host-direct.com
Reliable web hosting from $12/year.
0
Reply Slor 5/15/2009 3:33:24 PM

Mario wrote:
>> Force  -R/usr/local/ssl/lib  to the compiler/linker/configure options.
>> or set LD_OPTIONS with "-L/usr/local/ssl/lib -R/usr/local/ssl/lib" and
>> reconfigure/rebuild
> 
> 
> I configured with ./configure LDFLAGS="-L/usr/local/ssl/lib -R/usr/
> local/ssl/lib"

LD_OPTIONS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib"
export LD_OPTIONS
../configure etc

(It is not recommended to set LD_LIBRARY_PATH)
0
Reply Oscar 5/15/2009 4:05:33 PM

After trying all solution only

export $LD_LIBRARY_PATH:/usr/local/ssl/lib

and

crle -c /var/ld/ld.config -l /usr/lib:/usr/local/lib:/usr/local/ssl/
lib

worked.

Thanks to all of you.
Mario
0
Reply Mario 5/18/2009 7:48:50 AM

8 Replies
525 Views

(page loaded in 0.006 seconds)

Similiar Articles:











7/20/2012 11:06:19 PM


Reply: