View Full Version : can't execute examples
i've compiled and installed clanlib 0.8 under Linux. Now i want to try the examples, but always, wenn i start them the following errormessage appears:
./shadowofthebeast: error while loading shared libraries: libclanApp-0.8.so.1: cannot open shared object file: No such file or directory
it's the same with all of them.
but in usr/local/lib the file exists (as a Link).:mad:
how is the library linked to the libraries? Can i reconfigure the paths?
Edit: sorry i haven't read the FAQ
rombust
08-16-2007, 07:17 AM
./autogen.sh
./configure
make
sudo make install
sudo ldconfig
(ldconfig may not be required anymore, i cannot remember)
wtf if autogen?
do i have to make a complete rebuild of Clanlib?
setting the environment variable doesn't help anything
arne@Krux:~/etc/ClanLib-0.8.0/Examples/Input$ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
arne@Krux:~/etc/ClanLib-0.8.0/Examples/Input$ $PKG_CONFIG_PATH
bash: /usr/local/lib/pkgconfig/: is a directory
arne@Krux:~/etc/ClanLib-0.8.0/Examples/Input$ ./input
./input: error while loading shared libraries: libclanApp-0.8.so.1: cannot open shared object file: No such file or directory
arne@Krux:~/etc/ClanLib-0.8.0/Examples/Input$
i've rebuilt the complete project, as you said, i even executed ldconfig, and it still doesn't work.
i don't know why. There is absolutely no problem with compiling the examles, i just cant execute them. Is there any way to check, where my executables search the libraries? I think it doest't look anywhere and says directly "no there ist nothing", and that is really frustrating.
Edit: Problem solves
rombust
08-17-2007, 08:42 PM
(./autogen.sh creates ./configure)
How did you solve it?
I believe clanlib installs the libraries in a location some distros do not expect. I think that editing /etc/ld.so.conf to include the clanlib library path, then running "sudo ldconfig" should have worked
Magnus Norddahl
08-18-2007, 09:12 PM
The problem is that /usr/local/lib is not in the so loader search path per default in most linux distributions. Although its many years since I've done this last, I believe the file is called /etc/ld.so.conf (or something similar) and you need to add /usr/local/lib to that file and then run ldconfig afterwards.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.