在网上搜索了一大堆资料,再自己慢慢试验终于成功了!
./configure 问题如下:
checking for DEPS... configure: error: Package requirements (gtk+-2.0) were not met:
No package 'gtk+-2.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables DEPS_CFLAGS
and DEPS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
用了一个很笨但是很有效的办法:
[root@localhost nemiver-0.5.2]# yum list *gtk+*
Loading "installonlyn" plugin
Setting up repositories
Reading repository metadata in from local files
Available Packages
gtk+.i386 1:1.2.10-55.fc6 extras
gtk+-devel.i386 1:1.2.10-55.fc6 extras
gtk+extra.i386 2.1.1-4.fc6 extras
gtk+extra-devel.i386 2.1.1-4.fc6 extras
得到所需要的软件包,看名字应该是的,再 yum install *gtk+* 安装
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
gtk+ i386 1:1.2.10-55.fc6 extras 922 k
gtk+-devel i386 1:1.2.10-55.fc6 extras 363 k
gtk+extra i386 2.1.1-4.fc6 extras 330 k
gtk+extra-devel i386 2.1.1-4.fc6 extras 708 k
Installing for dependencies:
atk-devel i386 1.12.2-1.fc6 core 125 k
cairo-devel i386 1.2.6-1.fc6 updates 130 k
fontconfig-devel i386 2.4.1-3.fc6 core 165 k
freetype-devel i386 2.2.1-17.fc6 updates 151 k
glib i386 1:1.2.10-26.fc6 extras 137 k
glib-devel i386 1:1.2.10-26.fc6 extras 39 k
gtk2-devel i386 2.10.13-1.fc6 updates 3.0 M
libX11-devel i386 1.0.3-7.fc6 updates 665 k
libXau-devel i386 1.0.1-3.1 core 11 k
libXcursor-devel i386 1.1.7-1.1 core 14 k
libXdmcp-devel i386 1.0.1-2.1 core 7.6 k
libXext-devel i386 1.0.1-2.1 core 57 k
libXfixes-devel i386 4.0.1-2.1 core 9.5 k
libXft-devel i386 2.1.10-1.1 core 16 k
libXi-devel i386 1.0.1-3.1 core 52 k
libXinerama-devel i386 1.0.1-2.1 core 5.2 k
libXrandr-devel i386 1.1.1-3.1 core 15 k
libXrender-devel i386 0.9.1-3.1 core 8.9 k
libpng-devel i386 2:1.2.10-10.fc6 updates 181 k
mesa-libGL-devel i386 6.5.1-9.fc6 updates 464 k
pango-devel i386 1.14.10-2.fc6 updates 274 k
xorg-x11-proto-devel i386 7.1-9.fc6 core 247 k
Updating for dependencies:
cairo i386 1.2.6-1.fc6 updates 406 k
freetype i386 2.2.1-17.fc6 updates 313 k
gtk2 i386 2.10.13-1.fc6 updates 6.8 M
libX11 i386 1.0.3-7.fc6 updates 794 k
libpng i386 2:1.2.10-10.fc6 updates 241 k
mesa-libGL i386 6.5.1-9.fc6 updates 9.7 M
pango i386 1.14.10-2.fc6 updates 336 k
Transaction Summary
=============================================================================
Install 26 Package(s)
Update 7 Package(s)
Remove 0 Package(s)
Total download size: 27 M
经过漫长的等待过后终于装好了,再次./configure通过,嘿嘿

:lol :lol :lol