[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

fatal: libgtk.so.1: open failed: No such file or directory



Hello,

I must be missing an essential thing here.
I compiled my program the correct way (the same as when I'm home) at the 
University. Here however, I get an error running it.

I compile like this:
for evry .c file:

$ gcc -c -g `gtk-config --cflags` src/world.c -o world.o

This give no errors.
then to create the exec:

$ gcc -g -o gMOO `gtk-config --libs` argparser.o functions.o interface.o 
worlds.o config.o gMOO.o world.o `gtk-config --cflags`

Still, no errors.
But when I run ./gMOO:

$ ./gMOO 
ld.so.1: ./gMOO: fatal: libgtk.so.1: open failed: No such file or
directory
Killed

I've checked the `gtk-config --libs` :
$ gtk-config --libs
-L/opt/gtk+-1.0.6/lib -L/usr/openwin/lib -R/usr/openwin/lib -lgtk -lgdk 
-lglib -lXext -lX11 -lsocket -lnsl -lm

And, this file:
$ ls -l /opt/gtk+-1.0.6/lib/libgtk.so.1
lrwxrwxrwx   1 gert     staff         15 Oct  5 17:51 libgtk.so.1 -> 
libgtk.so.1.0.6

So, it DOES exist..

I don;t know it anymore, 
 What am I missing???

Gert



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]