shared libraries not found

shared libraries not found

Post by Clayton T. Fandr » Sun, 02 Mar 1997 04:00:00



I can't seem to get ld to find my X11 library when I compile. I have to
manally put in the -L option to have the library found. How do I set it
up so ld looks for it on its own. The directory is in the ld.so.conf
file and it shows up when I do a 'ldconfig -v', but it can't be found.
Thanks.
Clay Fandre

P.S. Does anyone know of any WWW sites with programming FAQ's or help
files?

 
 
 

shared libraries not found

Post by Roland Smi » Tue, 04 Mar 1997 04:00:00




>I can't seem to get ld to find my X11 library when I compile. I have to
>manally put in the -L option to have the library found. How do I set it
>up so ld looks for it on its own. The directory is in the ld.so.conf
>file and it shows up when I do a 'ldconfig -v', but it can't be found.
>Thanks.
>Clay Fandre

>P.S. Does anyone know of any WWW sites with programming FAQ's or help
>files?

If ld is called by gcc, as it normally is, you can use the LIBRARY_PATH
environment variable.

E.g. put this in your .profile

export LIBRARY_PATH="/usr/X11R6/lib:/usr/local/lib"

This alloys gcc to find the X libraries in /usr/X11R6/lib

Regards, Roland

---------------------------------------------------------------

Eindhoven, The Netherlands     | play - C hacker (Linux & X)
---------------------------------------------------------------
     This message is composed out of 100% recycled bytes
---------------------------------------------------------------

 
 
 

1. Shared library not found

Hi!

I got a weird error when I try to start XFree86 4.0.1 on my RH6.0 (kernel
2.2.5-22) via startx: xinit complains that it can not load libXmu.so.6
shared library (not found).

However, I DO have the library in /usr/X11/lib/ and all the simlinks (the
path is also included in /etc/ld.so.conf)!

I got this error after a system chrash while trying to install the NVidia
drivers 0.9-769 from the SRC RPM and following the given instructions.

The chrash may have happened because of the AGP support (option compiled
in the kernel) but why X can not found an existing shared library?

Any help is much appreciated! Thanks!

Istvan

2. multiple hard drives and linux

3. Shared Library not found

4. dps

5. X-Shared libraries not found.

6. Packaging software on AIX

7. shared library not found!

8. slackware problems

9. When is a shared library not a shared library?

10. xhfs does not find shared library libtk4.2.so

11. shared library -- Ref sym not found error

12. ld.so not finding fortran shared libraries

13. ld shared library linking -- symbol not found: fstat