🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
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.
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.
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