According to Jonathan Jefferies: While burning my CPU.
> 
> I have been having several adventures with trying to
> install netscape into Debian 2.1.  The first and most
> obvious problem was that a library
> /usr/X11R6/lib/libXpm.so.4 wasn't being found when
> the system went to load netscape.
> I confirmed that the library was at the above path
> actually it was a link to  /usr/X11R6/lib/libXpm.so.4.10 .
> 
> Richard Adams posted:
> >Judging by the error (if thats the only one, then i would say /usr/X11R6/lib
> >is defined in /etc/ld.so.conf and that you have rerun ldconfig.
> 
> well it is defined in /etc/ld.so.conf and so I reran ldconfig
> but that didn't solve the problem.  It still wouldn't be found.
> 
> But then I found that there is an environment variable in bash
> LD_LIBRARY_PATH="/usr/X11R6/lib:..." which would cause the complaint
> about libXpm.so.4 to go away.  Netscape now would attempt to
> load but would promptly seg fault which suggests that David Fox
> might have the right of it:

Now i'm getting a little lost here, (i do sometimes), anyway i did the
following (as root);

strace -o pipo netscape &

As soon as netscape was up i closed it, why did i do that, well i dont know
if any of you have ever used "strace" to see what a program does, but in the
few seconds it takes netscape to start you get a file of enormous size which
includes system calls places where the program is looking for libs and
files.

i get the following for "libXpm.so"

open("/usr/X11R6/lib/libXpm.so.4", O_RDONLY) = 4

So that shows that nescape found the lib, BTW, its line 50 of the file so if
you choose to execute the strace command you will know where to look, or
beter "grep" for. ;-)
You will also see that netscape, like other programs look in all sorts of
places for libs, and files and you will see repeated comments like;

open("/usr/local/qt/lib/libXpm.so.4", O_RDONLY) = -1 ENOENT (No such file or
directory)

Thats is possably caused by the LIB_PATH_ENV in the profile.
Anyway what i am trying to say is that if the LIB is there then netscape
should find it, if as you say you get a seg fault, then there must be a
problem like "wrong libaray" or some other problem, quite possable "strace"
will tell you, or give you some important tip.

Or, on the otherhand, the problem could be so simple that the answer is
sitting right under your nose, now i mean that in a humourous way and not
a sarcastic one.

-- 
Regards Richard.
[EMAIL PROTECTED]

Reply via email to