aMule Forum
English => aMule Help => Topic started by: pingolo on December 23, 2006, 08:42:01 AM
-
error:
wxWidgets must be installed on your system but wx-config
script couldn't be found. Please check that wx-config is
in path or specified by --with-wx-config=path flag, 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.6.0 or above.
anybody can i help me.
thanks.
-
pingolo,
Either you do not have wxWidgets development package installed in your system, or you do have it, but in a non-standard location. In the first case, just install it. For example, in Fedora Core, it is not enough to install wxGTK, you must install wxGTK-devel too. In the second case, you must tell "configure" how to find it with --with-wx-config, e.g., if your wxWidgets is installed in /usr/local/wxWidgets:
$ ./configure --with-denoise-level=3 --enable-debug --disable-optimize --enable-verbose --enable-webserver --enable-amulecmd --enable-ccache --enable-amule-daemon --with-wx-config=/usr/local/wxWidgets/bin/wx-config --enable-cas --enable-amule-gui && LD_LIBRARY_PATH=/usr/local/wxWidgets/lib/ make
Notice also that make comes with a LD_LIBRARY_PATH, in case this library path to wxWidgets is not in ld.conf.so, which is my case because I have more than one wxWidgets version installed.
Maybe someone has any distro specific clues to Suse to help you. For Fedora Core, I recommend using wardevil's wxWidgets packages:
http://www.savefile.com/projects/166294
There are threads about Suse in this forum too, please do a search here:
http://forum.amule.org/board.php?boardid=69&sid=
Cheers!
-
Helo phoenix.Thanks for your answer but i'am learning linux and i don't know very
well what i do it.
I make this instruccion :
./configure --with-denoise-level=3 --enable-debug --disable-optimize --enable-verbose --enable-webserver --enable-amulecmd --enable-ccache --enable-amule-daemon --with-wx-config=/usr/local/src/wxWidgets-2.8.0/bin/wx-config --enable-cas --enable-amule-gui && LD_LIBRARY_PATH=/usr/local/src/wxWidgets-2.8.0/lib/ make
and this is the answer:
checking for gdlib-config... no
configure:
WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
Please check that gdlib-config is in your default path, check out
LD_LIBRARY_PATH or equivalent variable.
Or this might also be that your gdlib-config has other name.
Please try again with --with-gdlib-config=/usr/bin/gdlib-config
(replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
If you use compiled packages check if you have devel pack installed.
To download the latest version check http://www.boutell.com/gd
for sources.
checking for libpng-config... /usr/bin/libpng-config
checking for libpng version >= 1.2.0... yes (version 1.2.8)
checking gd.h usability... no
checking gd.h presence... no
checking for gd.h... no
configure:
WARNING: libpng-devel >= 1.2.0 is needed for amuleweb
checking whether we need the GUI... yes
checking for /usr/local/src/wxWidgets-2.8.0/bin/wx-config... no
configure: error:
wxWidgets must be installed on your system but wx-config
script couldn't be found. Please check that wx-config is
in path or specified by --with-wx-config=path flag, 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.6.0 or above.
thanks.
-
pingolo,
In order to compile a program, you need the "devel" package of a library. For example, a pre-compiled executable that uses wxGTK, needs only wxGTK, but if you want to compile and link a program, you need wxWGTK-devel, and so on.
You lack a few libraries in your system, maybe a Suse expert could help you to install them. Unfortunately I don't know how the packages are called in the Suse distribution.
If you used the smart package manager, you would do something like this:
$ smart install gd gd-devel libpng libpng-devel
It's similar to yum. Does Suse uses yum?
Cheers!
-
The package names are quite the same as for Fedora. The -devel packages you need to build aMule are:
gd-devel gettext-devel gtk2-devel libpng-devel readline-devel wxGTK-devel xorg-x11-devel zlib-devel
You can use yum, but it is not installed by default. Therefore I'd suggest to use YaST unless you want to set up yum first...
-
You should use smart:
http://susewiki.org/index.php?title=SMART_Package_Manager
The first thing I do when I use a new distro is to install smart. It is disto agnostic and has an incredible algorithm to perform upgrades and downgrades. It is developed by the same guy that used to maintain apt. Unfortunately, apt had some limitations in supporting 64 bits architectures.
See their home page for examples:
http://labix.org/smart
You won't regret it.