newbie 2 linux
I am a totally newbie to Linux and I am trying to program using GGI. The compilation and linking works fine:
gcc main.c -lggi
But when I run my a.out file I get an error that it cannot find the libggi.so.2 file. I know that that file is in the /usr/local/lib directory.
If I am right I should set some lib paths or something but were should I set them then?
The file for your dynamic linker should be /etc/ld.so.conf.
Also you might want to just create a sym-link (using ln -s) to your library in /usr/lib.
Also you might want to just create a sym-link (using ln -s) to your library in /usr/lib.
January 30, 2000 01:03 AM
The problem is that the shared object loader, ld, doesn''t know where to look for the library.
Add the following path to your /etc/ld.so.conf file:
/usr/local/lib
Then run the following command as root:
ldconfig -v
That should clear up the problem.
Add the following path to your /etc/ld.so.conf file:
/usr/local/lib
Then run the following command as root:
ldconfig -v
That should clear up the problem.
January 30, 2000 01:04 AM
Oh, and one more thing. Don''t manually create a link anywhere using ln -s. ldconfig should do that for you.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement