- 论坛徽章:
- 0
|
在源码安装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 编辑 ] |
|