Andy Libby on 10 Dec 2004 14:34:03 -0000


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

Re: [PLUG] what could be broken?


One thing you can try is to strace less.  

strace -o output less file.gz

Then check the file output for occurences of libmagic*.  I did this on my 
Mandrake 10 system, and didn't find any occurences of dlopen (which is
the system call an app would use to dynamicly load a shared library which 
would not be listed by ldd).  Additionally, I didn't find any occurences of 
libmagic.  I did verify that libmagic is installed on my machine though. 

Sometimes strace helps demystify things.  It's also a hoot to learn about
system calls that I've never heard of (which usually happens when I run 
strace).

Andy



On Wed, 8 Dec 2004 12:21:15 -0500, eric@lucii.org <eric@lucii.org> wrote:
> Anybody have any idea about how to fix this?
> 
> I've recently noticed a strange behavior from my SuSE 9.1 system when I
> call on the pager, /usr/bin/less.
> 
> Example:
>   [eric]$ less fetchmail/fetchmail.archive.001.gz
>   file: error while loading shared libraries: libmagic.so.1: cannot open
>   shared object file: No such file or directory
> 
> My Google searches are _so_ unhelpful in solving this.
> 
> I do find libmagic.a and libmagic.la files but no libmagic.so.1 file.
> 
> Here is the info on /usr/bin/less:
> 
>   [eric]$ /usr/bin/less --version
>   less 382+iso254
>   Copyright (C) 2002 Mark Nudelman
> 
>   less comes with NO WARRANTY, to the extent permitted by law.
>   For information about the terms of redistribution,
>   see the file named README in the less distribution.
>   Homepage: http://www.greenwoodsoftware.com/less
> 
>   Japanized part of Less
>   Copyright (c) 1994-2000  Kazushi (Jam) Marukawa
> 
> TIA
> 
> Eric
> 
> --
> ------------------------------------------------------------------------
> #   Eric Lucas
> ========================================================================
> It is not from the benevolence of the butcher, the brewer or the baker
> that we expect our dinner, but from their regard to their own interest.
>   -- Adam Smith
> ___________________________________________________________________________
> Philadelphia Linux Users Group         --        http://www.phillylinux.org
> Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
> General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug
> 


-- 
Andy Libby
http://www.andylibby.org/
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug