[Date Prev]   [Date Next] [Thread Prev]   [Thread Next] [Date Index]   [Thread Index]

 

     Re: [nocol-users] error in loading shared libraries: libcrypt.so.1

On Sun, Mar 26, 2000 at 09:48:57PM -0800, Ron Parker wrote:

> Russell Van Tassell wrote:
> 
> > On Sat, Mar 25, 2000 at 01:26:48PM -0800, Ron Parker wrote:
> > > Hello.  What is this, and how do I resolve it?  Thanks.
> > >
> > > Subject:
> > >         Cron <nocol@secure> [ -x /usr/nocol/bin/genweb.pl ] &&
> > >         /usr/nocol/bin/genweb.pl >/dev/null
> > >
> > > perl: error in loading shared libraries: libcrypt.so.1: cannot open
> > > shared object file: No such file or directory
> >
> > [shared library talk, deleted...]
>
> Thanks for the response.  This is what I get with ldd:
> 
> [root@secure /root]# ldd /usr/bin/perl
>     [...]
>         libcrypt.so.1 => /lib/libcrypt.so.1 (0x40140000)
>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

(check the top of genweb.pl and make sure it's using /usr/bin/perl
and not something like /usr/local/bin/perl -- it's conceivable that
those two are different, particularly with the way perl installs
itself (I'd even go so far as to "sum" both of them))

> This is what I get when I do "locate libcrypt":
> 
> [root@secure /root]# locate libcrypt
> /usr/lib/libcrypt.a
> /usr/lib/libcrypt.so
> /usr/lib/libcrypto.a
> /usr/i386-glibc20-linux/lib/libcrypt-2.0.7.so
> /usr/i386-glibc20-linux/lib/libcrypt.so
> /usr/i386-glibc20-linux/lib/libcrypt.so.1
> /lib/libcrypt-2.1.2.so
> /lib/libcrypt.so.1
> /root/openssl-0.9.4/libcrypto.a
> 
> What would one recommend I do under these circumstances?  Thanks, much.

Ok, since it seems looking for "/lib/libcrypt.so.1" I would first
do an "ls -lL" to try to make sure the file exists (ie. that the
file listed above isn't just an open-ended symlink or something).
You might also try doing an "ldd" on that shared library and make
sure that each of those libraries are also legitimate...

Also, checking the permissions on the library might be a good idea,
as well... your "nocol" user may not have proper permissions to
read and execute it (can't remember if Linux wants the execute bit
set, too).

It would seem as though the library is there, though... if not, you
might try moving it out of the way (rather than deleting it) and
then symlinking it to /lib/libcrypt-2.1.2.so.

Hope that gives you a few leads to chase... maybe one of them
will actually work... ;)

Regards,
Russell


-- 
Russell M. Van Tassell
russell@loosenut.com

"We have always been quite clear that Win95 and Win98 are not the systems
 to use if you are in a hostile security environment. We recommend Windows
 NT for those environments."           -- Paul Leach <paulle@MICROSOFT.COM>