Chinaunix

标题: 安装gimp的问题checking for gtk-config... no??? [打印本页]

作者: py    时间: 2003-07-18 10:44
标题: 安装gimp的问题checking for gtk-config... no???
./configure的时候就出了错:
checking for gtk-config... no
checking for GTK - version >;= 1.2.8... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
configure: error: Test for GTK failed. See the file 'INSTALL' for help.
#
我的gtk是默认路径安装的,应该是在/usr/local/lib里吧
我的LD_LIBRARY_PATH是这样的:
LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/local/mysql/lib/mysql
export LD_LIBRARY_PATH

CPPFLAGS="-I /usr/local/include/gtk-2.0"
LDFLAGS="-L /usr/local/lib"
PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
export CPPFLAGS LDFLAGS PKG_CONFIG_PATH
请问这是哪里出的问题???
作者: fieryfox    时间: 2003-07-18 10:53
标题: 安装gimp的问题checking for gtk-config... no???
GTK版本太新。新的GTK用了pkg-config,所以没有gtk-config。自己做一个:
$ more /usr/local/bin/gtk-config
module="gtk+-2.0"
if test "$1" = "--version"; then
        pkg-config --modversion $module
else
        pkg-config $* $module
fi
作者: py    时间: 2003-07-18 14:23
标题: 安装gimp的问题checking for gtk-config... no???
原帖由 "fieryfox" 发表:
GTK版本太新。新的GTK用了pkg-config,所以没有gtk-config。自己做一个:
$ more /usr/local/bin/gtk-config
module="gtk+-2.0"
if test "$1" = "--version"; then
        pkg-config --modversion $module
el..........
   

还是出了错误…………
checking for gtk-config... /usr/local/bin/gtk-config
checking for GTK - version >;= 1.2.8... ./configure: /usr/local/bin/gtk-config: Permission denied
./configure: /usr/local/bin/gtk-config: Permission denied
./configure: /usr/local/bin/gtk-config: Permission denied
./configure: /usr/local/bin/gtk-config: Permission denied
./configure: /usr/local/bin/gtk-config: Permission denied
no
*** Could not run GTK test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK was incorrectly installed
*** or that you have moved GTK since it was installed. In the latter case, you
*** may want to edit the gtk-config script: /usr/local/bin/gtk-config
configure: error: Test for GTK failed. See the file 'INSTALL' for help.
#
用gtk和gimp什么版本的时候能够安装成功?我的是gtk+-2.2.2.tar.gz和gimp-1.2.5.tar.gz
作者: fieryfox    时间: 2003-07-18 14:41
标题: 安装gimp的问题checking for gtk-config... no???
chmod a+x gtk-config
作者: py    时间: 2003-07-18 16:17
标题: 安装gimp的问题checking for gtk-config... no???
这次的错误提示很明白了:
checking for gtk-config... /usr/local/bin/gtk-config
checking for GTK - version >;= 1.2.8... yes
configure: error: GIMP does not work with versions of GTK >; 1.2
#
看来是一定要换个gtk的版本了……
作者: fieryfox    时间: 2003-07-18 16:26
标题: 安装gimp的问题checking for gtk-config... no???
那就没办法了。
作者: py    时间: 2003-07-18 22:07
标题: 安装gimp的问题checking for gtk-config... no???
以前用的是gtk+-2.2.2.tar.gz和gimp-1.2.5.tar.gz,现在改用gtk+-1.2.10.tar.gz和gimp-1.2.5.tar.gz,安装时错误提示如下:
./configure --with-libpng=/usr/local/lib --with-libjpeg=/usr/local/lib --disable-print

invoking perl for configuration...

WARNING: unable to use PDL (the perl data language). This means that
         normal pixel access is non-functional. Unless you plan to use
         Tile/PixelRgn functions together with PDL, this is harmless. The
         plug-ins using PDL, however, will NOT WORK and you can NO LONGER
         install PDL later. You can get PDL from any CPAN mirror.

checking for PDL support... no

NOTICE:  unable to use the Perl-Gtk interface. Many features (like
         Gimp::Fu) rely on this extension. You can build without it (and
         many scripts will be disabled or run with reduced functionality
         only), but it's better to install it (version 0.6123 or higher is
         required, you can get it from ftp://ftp.gimp.org/pub/gtk/perl/ or
         any CPAN mirror.


NOTICE: Parse::RecDescent not found, scm2perl, the Scheme->erl
        translator, will not work. This is normally not a problem, since
        it is quite unimportant for most people.

building embedded perl module... no
writing Gimp/Config.pm... ok
Checking if your kit is complete...
Looks good
Warning: prerequisite Gtk 0.5 not found at (eval 4) line 220.
Warning: prerequisite PDL 2.21 not found at (eval 4) line 220.
Warning: prerequisite Parse::RecDescent 1.6 not found at (eval 4) line 220.
Writing Makefile for Gimp::Lib
Writing Makefile for Gimp::Net
Note (probably harmless): No library found for -lgimp
Note (probably harmless): No library found for -lgimpui
Writing Makefile for Gimp::UI
Writing Makefile for Gimp
#
./configure的错误是不是可以忽略?
以下是make时的错误:

cc -c -I/export/home/temp/gimp/gimp-1.2.5/plug-ins/perl -I../../.. -I/export/home/temp/gimp/gimp-1.2.5/plug-ins/perl/../.. -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include  -DGTK_DISABLE_COMPAT_H  -g -O2   -xO3 -xdepend    -DVERSION=\"1.211\" -DXS_VERSION=\"1.211\" -KPIC -I/usr/perl5/5.00503/sun4-solaris/CORE -Ddatadir="\"/usr/local/share\""  Lib.c
/bin/sh: cc: not found
make[4]: *** [Lib.o] Error 1
make[4]: Leaving directory `/export/home/temp/gimp/gimp-1.2.5/plug-ins/perl/Gimp'
make[3]: *** [subdirs] Error 2
make[3]: Leaving directory `/export/home/temp/gimp/gimp-1.2.5/plug-ins/perl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/export/home/temp/gimp/gimp-1.2.5/plug-ins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/temp/gimp/gimp-1.2.5'
make: *** [all-recursive-am] Error 2
#
作者: fieryfox    时间: 2003-07-19 09:44
标题: 安装gimp的问题checking for gtk-config... no???
gmake distclean
CC=gcc ./configure
作者: py    时间: 2003-07-19 15:10
标题: 安装gimp的问题checking for gtk-config... no???
谢谢fieryfox,现在终于成功了~~~~~!




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2