免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5703 | 回复: 8
打印 上一主题 下一主题

安装gimp的问题checking for gtk-config... no??? [复制链接]

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-07-18 10:44 |只看该作者 |倒序浏览
./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
请问这是哪里出的问题???

论坛徽章:
0
2 [报告]
发表于 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

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
3 [报告]
发表于 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

论坛徽章:
0
4 [报告]
发表于 2003-07-18 14:41 |只看该作者

安装gimp的问题checking for gtk-config... no???

chmod a+x gtk-config

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
5 [报告]
发表于 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的版本了……

论坛徽章:
0
6 [报告]
发表于 2003-07-18 16:26 |只看该作者

安装gimp的问题checking for gtk-config... no???

那就没办法了。

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
7 [报告]
发表于 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
#

论坛徽章:
0
8 [报告]
发表于 2003-07-19 09:44 |只看该作者

安装gimp的问题checking for gtk-config... no???

gmake distclean
CC=gcc ./configure

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
9 [报告]
发表于 2003-07-19 15:10 |只看该作者

安装gimp的问题checking for gtk-config... no???

谢谢fieryfox,现在终于成功了~~~~~!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP