PDA

View Full Version : can't execute examples



Krux
08-15-2007, 07:12 PM
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:

Krux
08-15-2007, 08:28 PM
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)

Krux
08-16-2007, 05:18 PM
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.