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

2002-08-30 Thread Tony Gale


Read the FAQ entry:

http://www.gtk.org/faq/#AEN200

-tony



On Thu, 2002-08-22 at 11:58, xufeng lee wrote:
 主题:why cannot it find the library of gtk2.0.6?收件人:[EMAIL PROTECTED]   
 
 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?
 
  
 
 
 
 -
 Do You Yahoo!?
 雅虎娱乐新鲜到底,电子周报快乐到家!


___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



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

2002-08-22 Thread Olexiy Avramchenko

xufeng lee wrote:

 *Ö÷Ìâ:* why cannot it find the library of gtk2.0.6?
 *ÊÕ¼þÈË:* [EMAIL PROTECTED]


 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