免费注册 查看新帖 |

Chinaunix

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

[桌面系统] 【求助】源码安装amule时,出错啦!!(解决啦) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-12-02 16:13 |只看该作者 |倒序浏览
在源码安装amule时,运行如下命令:

# cd aMule-2.2.2

# ./configure --prefix=/usr/local/aMule/ --disable-monolithic --enable-amule-daemon --enable-webserver --disable-optimize --enable-debug --with-wx-config=/usr/local/wxGTK/bin/wx-config --with-wxdebug --with-gtk
........
checking for wx-config... /usr/local/wxGTK/bin/wx-config
checking for wxWidgets version >= 2.8.0 (--debug=yes --unicode=yes)... no
configure: error:
    The requested wxWidgets build couldn't be found.
   
    The configuration you asked for aMule requires a wxWidgets
    build with the following settings:
        --debug=yes --unicode=yes
    but such build is not available.

    To see the wxWidgets builds available on this system, please use
    'wx-config --list' command. To use the default build, returned by
    'wx-config --selected-config', use the options with their 'auto'
    default values.

    If you still get this error, then check that 'wx-config' is
    in path, the directory where wxWidgets libraries are installed
    (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
    or equivalent variable and wxWidgets version is 2.8.0 or above.



但是我之前已经安装了 wxGTK-2.8.8  

# /usr/local/wxGTK/bin/wx-config --list

    Default config is gtk-ansi-release-2.8

  Default config will be used for output

# /usr/local/wxGTK/bin/wx-config --selected-config

gtk-ansi-release-2.8


为什么还提示没有找到“wxWidgets”呢?????希望高手帮忙!

解决的办法:
删除原先安装的“wxGTK-2.8.8”,重新源码安装!
安装的时候注意要先安装“gcc,gtk,gtk-devel,gtk2,gtk2-devel,zlib-devel,libpng-devel,gd-devel”等软件
再“ # ./configure --prefix=/usr/ --enable-unicode --enable-optimise && make && make install ”编译安装wxGTK2.8.8,完成后运行ldconfig命令
使得“ # wx-config --selected-config  结果为: gtk2-unicode-release-2.8 ”解决如上问题!

[ 本帖最后由 guanghua6402 于 2008-12-5 16:19 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2008-12-02 21:05 |只看该作者
wxWidgets version >= 2.8.0

没有对应版本,仔细看看amule wiki吧,有如何删除老的wxWidget再装高版本的具体步骤。

论坛徽章:
0
3 [报告]
发表于 2008-12-03 15:44 |只看该作者
之前搞错了!

但是我确实是安装了wxGTK-2.8.8的!!!!

却还是那个问题!为什么呢?难道要安装wxWidgets补丁???

论坛徽章:
0
4 [报告]
发表于 2008-12-04 12:07 |只看该作者
  My fault.
我看成你的wxGTK是2.6的了。

    The configuration you asked for aMule requires a wxWidgets
    build with the following settings:
        --debug=yes --unicode=yes
    but such build is not available.

说明你安装的wxGTK没有加 --debug=yes --unicode=yes编译安装。

论坛徽章:
0
5 [报告]
发表于 2008-12-05 16:21 |只看该作者
O(∩_∩)O哈哈~

在amule官方论坛问了,高人指点后,解决啦!谢谢大家!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP