On Mon, May 18, 2009 at 3:35 AM, Tamas Nepusz
<address@hidden> wrote:
Hi Enzo,
Now, when I try to execute igraph_test I get the following error message:
./igraph_test: error while loading shared libraries: libigraph.so.0: cannot open shared object file: No such file or directory
This is most possibly because /usr/local/lib is not in the path where the linker usually looks for dynamic libraries. Last time when I used Ubuntu Linux, I think it was looking for dynamic libraries both in /usr/lib and /usr/local/lib, but maybe it's not the case anymore, so try doing this to confirm:
LD_LIBRARY_PATH=/usr/local/lib ./igraph_test
If it does work, this means that /usr/local/lib has to be added manually to the linker's path. You can do it only for your user by entering the following line into ~/.profile:
export LD_LIBRARY_PATH=/usr/local/lib:${LD_LIBRARY_PATH}
The system-wide linker path can be adjusted in /etc/ld.so.conf (IIRC).
===============
Besides that, Paul is right that we have packages for igraph, although they are precompiled only for i386. If you use i386, add the following two lines to /etc/apt/sources.list and then do apt-get update && apt-get install libigraph libigraph-dev to get the igraph packages:
deb http://cneurocvs.rmki.kfki.hu /packages/binary/
deb-src http://cneurocvs.rmki.kfki.hu /packages/source/
If you use a 64-bit architecture, you can still get the source from the above repository using your package manager and then build a .deb package to integrate igraph more seamlessly into your operating system:
apt-get build-dep igraph
apt-get source igraph
This should have downloaded the source code into a subdirectory of the current directory. Change to this directory and then do:
dpkg-buildpackage -rfakeroot
This creates the igraph .deb packages for x64 one level higher.
Hope this helps.
--
Tamas
Now, the file libigraph.so.0 is in the specified directory (i checked that). I guess this is quite a silly problem but since I'm a begginer I've no clue.
thanks in advance!
Enzo