gtk+-2.0 was not found(redhatlinux 9.0)
redhatlinux9.0 used......
nabi(Input Method System) will install.. why this error message "Package gtk+-2.0 was not found " appear ?? [root@localhost nabi-0.4]# ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for ranlib... ranlib checking for a BSD-compatible install... /usr/bin/install -c checking for pkg-config... /usr/local/bin/pkg-config checking for gtk+-2.0 >= 2.2.0... Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk+-2.0' found configure: error: nabi needs GTK+ 2.2.0 or higher |
There are 2 locations for pkg-config files
/usr/lib/pkgconfig/ and /usr/local/lib/pkgconfig/ Quick fix.. copy the files in /usr/local/lib/pkgconfig/ to /usr/lib/pkconfig/ That's in case you actually have gtk with that version or above installed. Run: pkg-config --list-all GTK should show up now. |
[root@localhost root]# gcc -Wall -g pixmap1.c -o pixmap `pkg-config --cflags
> gtk+-2.0` `pkg-config --libs gtk+-2.0` Must specify package names on the command line bash: gtk+-2.0: command not found Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk+-2.0' found gcc: pixmap1.c: No such file or directory gcc: no input files [root@localhost root]# ls -l /usr/lib/pkgconfig/gtk+-2.0.pc ls: /usr/lib/pkgconfig/gtk+-2.0.pc: No such file or directory [root@localhost root]# pkg-config --list-all [root@localhost root]# |
All times are GMT -5. The time now is 02:28 AM. |