aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2

Author Topic: Cannot use amule 2.0.3 on Fedora 4  (Read 12939 times)

thedavix

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
Cannot use amule 2.0.3 on Fedora 4
« on: July 03, 2005, 01:09:44 PM »

hi everyones,
I have just installed fedora 4 on my computer and wanted to install amule 2.0.3
so I did the following things

http://www.amule.org/wiki/index.php/Compilation_Installation

For wx
I used wxGTK-2.6.1

I tried to link it to GTK2 but it didn't work so i linked it to GTK1 (by the way how can we know if we have gtk2 or gtk1 ? )

make install worked but i couldnt do
ldconfig
because fedora told me that the command was not found..

so i tried to compile amule
it worked..
but when i type amule in a console, it dosen't work..

Can somebody help me?

Thks :D

Here is the result of : ls -l /usr/bin/wx*
lrwxrwxrwx  1 root root    39 jui  2 17:29 /usr/bin/wx-config -> /usr/lib/wx/config/gtk-ansi-release-2.6
lrwxrwxrwx  1 root root     8 jui  2 17:29 /usr/bin/wxrc -> wxrc-2.6
-rwxr-xr-x  1 root root 89221 jui  2 17:29 /usr/bin/wxrc-2.6

Davix  8)
« Last Edit: July 03, 2005, 01:16:43 PM by thedavix »
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: Cannot use amule 2.0.3 on Fedora 4
« Reply #1 on: July 03, 2005, 03:28:22 PM »

Quote
Originally posted by thedavix
I tried to link it to GTK2 but it didn't work so i linked it to GTK1 (by the way how can we know if we have gtk2 or gtk1 ? )

Post the result of the following commands:

$rpm -qa | grep -i wx
$rpm -qa | grep -i gtk

If GTK2 is installed, in order to make wxGTK to use it, you must specify --enable-gtk2 on the configure command of wxGTK.

Quote
Originally posted by thedavix
make install worked but i couldnt do
ldconfig
because fedora told me that the command was not found..

You must be root to run this command. Try:
$su -
$ldconfig

Also, unless you are installing in a path you have rights, you'll need to be root to do a "make install".

Quote
Originally posted by thedavix
so i tried to compile amule
it worked..
but when i type amule in a console, it dosen't work..

Maybe you were not root when you did the make install?

Cheers!
Logged

thedavix

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
Re: Cannot use amule 2.0.3 on Fedora 4
« Reply #2 on: July 03, 2005, 03:59:32 PM »

here are the results for the 2 commands you asked me

$ rpm -qa | grep -i wx
there were no results

$ rpm -qa | grep -i gtk
gtk2-2.6.7-4
usermode-gtk-1.80-1
gtkhtml2-2.6.3-1
gnome-python2-gtkhtml2-2.10.0-2.1
authconfig-gtk-4.6.12-1
gtkspell-2.0.7-3
gtk+-1.2.10-39
pygtk2-libglade-2.6.0-2
gtk+-devel-1.2.10-39
gtk2-engines-2.6.3-2
gtkhtml3-3.6.2-1
gtksourceview-1.2.0-1
pygtk2-2.6.0-2
gtk-engines-0.12-7

I'll try to re-compile in root, because i'm not sure if i was in root but i think so

Thks
« Last Edit: July 03, 2005, 03:59:46 PM by thedavix »
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: Cannot use amule 2.0.3 on Fedora 4
« Reply #3 on: July 03, 2005, 05:52:34 PM »

thedavix,

There is no need to recompile as root. You only have to be root at the time you issue the command "make install".

As far as I can see, you have all the needed gtk packages installed.

Also, you seem to be compiling wx from sources too. So if you follow the instructions in the wiki, all should be fine. And don't forget --enable-gtk2 when configuring wxGTK.

Cheers!
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Cannot use amule 2.0.3 on Fedora 4
« Reply #4 on: July 03, 2005, 06:02:17 PM »

phoenix
 its --with-gtk2 not --enable-gtk2 ;)
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

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: Cannot use amule 2.0.3 on Fedora 4
« Reply #5 on: July 03, 2005, 06:37:04 PM »

stefanero,

From ./configure --help:

...
  --disable-gtk2          use GTK+ 1.2 instead of 2.0
...
Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"

So, there is in fact a --enable-gtk2 option, because there is always an enable and a disable option. But for --with, I guess the correct syntax would be --with-gtk=2, although with autoconf you never really know what are the valid options :P

Cheers!
Logged

thedavix

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
RE: Cannot use amule 2.0.3 on Fedora 4
« Reply #6 on: July 03, 2005, 09:02:56 PM »

Re

I have a problem when i configure wx with this
./configure --prefix=/usr --enable-gtk2 --with-gtk && make

i have this message at the end of the configure

checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error:
The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that gtk+-2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in the LD_LIBRARY_PATH or equivalent.


Is this normal?

Thks
Davix
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Cannot use amule 2.0.3 on Fedora 4
« Reply #7 on: July 03, 2005, 09:04:22 PM »

install gtk2-devel

thedavix

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
Re: Cannot use amule 2.0.3 on Fedora 4
« Reply #8 on: July 03, 2005, 09:15:03 PM »

as i am a neophyte of linux, can i install gtk2-devel

using yum ?


Davix
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Cannot use amule 2.0.3 on Fedora 4
« Reply #9 on: July 03, 2005, 09:21:31 PM »

no idea about fc4 .. try yum or search for some fc4 ftp and download the rpm

cheers

thedavix

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
Re: Cannot use amule 2.0.3 on Fedora 4
« Reply #10 on: July 03, 2005, 09:24:04 PM »

Thks :D
I found it was just
yum install gtk2-devel :D

I'll see now it i am able to install everything :D


Davix
Logged

thedavix

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
Re: Cannot use amule 2.0.3 on Fedora 4
« Reply #11 on: July 03, 2005, 09:30:47 PM »

with all this i have still the same error i cannot run ldconfig


 ------------------------------------------------------

 The installation of wxWidgets is finished.  On certain
 platforms (e.g. Linux) you'll now have to run ldconfig
 if you installed a shared library and also modify the
 LD_LIBRARY_PATH (or equivalent) environment variable.

 wxWidgets comes with no guarantees and doesn't claim
 to be suitable for any purpose.

 Read the wxWidgets Licence on licencing conditions.

 ------------------------------------------------------

[root@popopc wxGTK-2.6.1]# ldconfig
bash: ldconfig: command not found


Davix
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Cannot use amule 2.0.3 on Fedora 4
« Reply #12 on: July 03, 2005, 10:32:07 PM »

try /sbin/ldconfig

thedavix

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
Re: Cannot use amule 2.0.3 on Fedora 4
« Reply #13 on: July 04, 2005, 09:04:24 AM »

it worked thks :D
but now when i do make install for amule
i have this error

...ned reference to `gtk_marshal_NONE__POINTER_POINTER'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gtk_signal_connect'
collect2: ld a retourné 1 code d'état d'exécution
make[4]: *** [wxcas] Erreur 1
make[4]: Leaving directory `/home/popo/amule/aMule-2.0.3/src/utils/wxCas/src'
make[3]: *** [install-recursive] Erreur 1
make[3]: Leaving directory `/home/popo/amule/aMule-2.0.3/src/utils/wxCas'
make[2]: *** [install-recursive] Erreur 1
make[2]: Leaving directory `/home/popo/amule/aMule-2.0.3/src/utils'
make[1]: *** [install-recursive] Erreur 1
make[1]: Leaving directory `/home/popo/amule/aMule-2.0.3/src'
make: *** [install-recursive] Erreur 1


Any idea?

Thks :D
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Cannot use amule 2.0.3 on Fedora 4
« Reply #14 on: July 04, 2005, 09:06:22 AM »

is this

-> make

OR
-> make install?

looks like only make to me...what did the configure summary from amule tell you in the end?

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."
Pages: [1] 2