Re: why cannot it find the library of gtk2.0.6?



xufeng lee wrote:

> *主题:* why cannot it find the library of gtk2.0.6?
> *收件人:* gtk_list gnome org
>
>
> I just installed gtk+2.0.6,then I try the following command:
>
> $gcc hellow.c -o hellow `pkg-config --cflags --libs gtk+2.0`
>
> it seem ok,then I try :
>
> $hellow
>
> and error occured:"error while loading shared
> libraries:libgtk-x11-2.0.so.0:cannot open shared object
>
> file:no such file or directory."
>
> but I did have that file in /usr/local/lib,it is linked to
> libgtk-x11-2.0.so.0.0.6 .
>
> what should I do?
>
> **

Under the RedHat linux: try 'ldconfig -p | grep libgtk-x11' - if you see
nothing then
edit "/etc/ld.so.conf" - put "/usr/local/lib" there, get root perms, run
'ldconfig'.

Olexiy





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