aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: problem to install amule  (Read 2629 times)

pingolo

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
problem to install amule
« 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.
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: problem to install amule
« Reply #1 on: December 23, 2006, 09:57:21 AM »

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!
Logged

pingolo

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
the next error
« Reply #2 on: December 23, 2006, 06:26:07 PM »

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.
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: problem to install amule
« Reply #3 on: December 24, 2006, 01:06:55 AM »

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!
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: problem to install amule
« Reply #4 on: December 24, 2006, 12:03:56 PM »

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...
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: problem to install amule
« Reply #5 on: December 24, 2006, 12:47:23 PM »

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.
Logged