发新话题
打印

源码编译安装问题请教

源码编译安装问题请教

我安装软件:gsopcast 用./configure命令检查包依赖关系时卡住了,具体报错如下:
checking pkg-config is at least version 0.9.0... yes
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.

用yum install libgtk2.0-dev竟然找不到匹配的包!
在网上找了一下说是路径设置问题,按照上面的方法设置路径还是没用:
export PKG_CONFIG_PATH=/usr/lib/pkgconfig

软件地址:
http://lianwei3.googlepages.com/home2
请大侠门帮助!      

TOP

如果没有libgtk2.0-dev,试试有没有libgtk2.0,gtk2.0-dev或gtk2.0-devel      
1,本人乃Linux伊甸园“Linux内核学习”,“红旗等发行版”版主,请大家捧场。
2,红旗Linux在设备驱动,系统设置,中文美化,易用性方面做得非常好,建议大家使用。
3,本人是红旗Linux的粉丝,不是枪手。

TOP

都没有用………………
  问题照旧,我继续找!      

TOP

在网上搜索了一大堆资料,再自己慢慢试验终于成功了!
./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      

TOP

发新话题