安装gtk+-2.5.3.tar.bz2有错!
./configure 后提示:configure: error: Library requirements (glib-2.0 >= 2.5.2 atk >= 1.0.1 pango >= 1.5.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
不明白是怎么回事? glib版本大于等于2.5.2
atk版本大于等于1.0.1
还有那个pango的1.5.1版本
才能让你装gtk+-2.5.3 我是先升级了,glib和atk没有错误,但是pango老是在./configure 时提示错误,说glib应该>=2.4.0,不知是为什么? 你装glib的时候prefix制定到哪儿?
假设是/usr,那么指定PKG_CONFIG_PATH为:
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/pkgconfig 还是不行呀,还请你给指教一下,我现在把安装过程说一下:
我下载的文件是:atk-1.6.1.tar.bz2、glib-2.4.7.tar.bz2、pango-1.4.1.tar.bz2、gtk+-2.4.9.tar.bz2这四个文件
然后按你说的export PKG_CONFIG_PATH=/usr/lib/pkgconfig
接着tar xjf atk-1.6.1.tar.bz2,./configure --prefix=/usr 提示如下:
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 bind_textdomain_codeset... (cached) yes
checking for gawk... (cached) gawk
checking for perl5... no
checking for perl... perl
configure: creating ./config.status
config.status: creating Makefile
config.status: creating po/Makefile.in
config.status: creating atk.pc
config.status: creating atk-uninstalled.pc
config.status: creating atk/Makefile
config.status: creating atk/atk.rc
config.status: creating tests/Makefile
config.status: creating docs/Makefile
config.status: creating docs/version.xml
config.status: creating atk.spec
config.status: creating atk-zip.sh
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default-1 commands
就完了,不知道是否成功了,接着make和make install也没有什么错误提示
然后glib-2.4.7.tar.bz2、pango-1.4.1.tar.bz2、gtk+-2.4.9.tar.bz2这三个文件也是这样做的,但是在make install gtk+-2.4.9时提示有错误:
libtool: install: warning: relinking `libpixbufloader-png.la'
libtool: install: warning: relinking `libpixbufloader-jpeg.la'
libtool: install: warning: relinking `libpixbufloader-gif.la'
libtool: install: warning: relinking `libpixbufloader-ico.la'
libtool: install: warning: relinking `libpixbufloader-ani.la'
libtool: install: warning: relinking `libpixbufloader-ras.la'
libtool: install: warning: relinking `libpixbufloader-xpm.la'
libtool: install: warning: relinking `libpixbufloader-tiff.la'
libtool: install: warning: relinking `libpixbufloader-pnm.la'
libtool: install: warning: relinking `libpixbufloader-bmp.la'
libtool: install: warning: relinking `libpixbufloader-wbmp.la'
libtool: install: warning: relinking `libpixbufloader-xbm.la'
libtool: install: warning: relinking `libpixbufloader-tga.la'
libtool: install: warning: relinking `libpixbufloader-pcx.la'
In file included from /usr/X11R6/include/X11/Xft/Xft.h:41,
from ../../gdk/x11/gdkdrawable-x11.h:35,
from ../../gdk/x11/gdkwindow-x11.h:30,
from gdkprivate-x11.h:36,
from gdkx.h:78,
from gdkasync.c:49:
/usr/include/freetype2/freetype/freetype.h:20:2: #error "`ft2build.h' hasn't been included yet!"
/usr/include/freetype2/freetype/freetype.h:21:2: #error "Please always use macros to include FreeType header files."
/usr/include/freetype2/freetype/freetype.h:22:2: #error "Example:"
/usr/include/freetype2/freetype/freetype.h:23:2: #error "#include <ft2build.h>"
/usr/include/freetype2/freetype/freetype.h:24:2: #error "#include FT_FREETYPE_H"
make: *** Error 1
make: *** Error 1
make: *** Error 2
make: *** Error 1 没人知道吗? 你的X版本多少? kde3.2.2-0.2,没有安gnome 看来是没人知道了,我也一样的问题,真是服了linux下的安装了 谁来帮帮我
假设你是把glib --prefix在了optglib
不知道你的glib装在哪里了,我的是装在/opt/glib如:
cd glib-2.4.5
#./configure --prefix=/opt/glib
#make
#make install
装glib是没什么问题的,我的也是在装pango的时候出现和你一样的错误信息.
后来用google搜了一下,
解决方法:
一>
#cd pango-1.4.1
#.configure --prefix=/opt/pango --with-glib-prefix=/opt/glib
还是出错;
二>
vi /etc/ld.so.conf
加入一条:
/opt/gui/glib-2.4.5/lib
保存退出.
再#.configure --prefix=/opt/pango
还是出错
三>于是
#export PKG_CONFIG_PATH=/opt/glib/lib/pkgconfig/glib-2.0.pc
#export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/glib/lib/pkgconfig
#pkg-config --cflags glib-2.0
#pkg-config --libs glib-2.0
再进行编译,它又说我的什么LD_LIBRARY_PATH的environment有问题
于是再
LD_LIBRARY_PATH="/opt/glib/lib"
PATH="/opt/glib/bin:$PATH"
export LD_LIBRARY_PATH PATH
然后编译pango,终于通过了.
希望你也能成功.
并请高手看看有哪些错误?应该怎样修改/etc/ld.so.conf呢?
Re: 假设你是把glib --prefix在了optglib
谢谢,看来这次问题可能要解决了,但有一个问题,安在/opt目录下,别的程序能找到这些库吗?是不是要设置一下环境变量,别的程序才能找到这些库? 没人理我,顶一下。 你是什么发行版?还需要自己编译的吗?发行版应该自带GTK2了吧? 是rhel3,是自已带,可是我要安装kde3.3.1呀,不就是需要升级GDK+了吗?
页:
[1]
2