Difference between revisions of "AMule Project FAQ:Help"

From AMule Project FAQ
Jump to: navigation, search
(Intall aMule on Mandrake 10)
Line 1: Line 1:
see : http://en.wikipedia.org/wiki/Wikipedia:How_to_edit_a_page
+
This how-to explains the way to install and compile aMule on Mandrake 10 by using urpmi. I guess it would work in any other Mandrake version but I haven't tried it.
 +
 
 +
The problem when installing aMule on Mandrake 10, is that wxBase official Mandrake package is linked against GTK2 and aMule needs it to be linked against GTK1. However it's needed to use the wx rpm packages from the aMule website.
 +
 
 +
This can be done following the how-to in the page of aMule, but when doing it with urpmi, you have the advantage of controlling the version conflict between Mandrake's wxBase package and aMule's website package every time you update your system.
 +
 
 +
There are others packages needed to install aMulle on Mandrake. However, in this case, Mandrake official packages are fine. These packages are:
 +
 
 +
 
 +
curl<br>
 +
libcrypto<br>
 +
libgd  <----- this is needed only to use the -o option of cas. If you're not going to use that option, you don't have to install it.
 +
 
 +
 
 +
If you also want to compile aMule, you must install the devel packages corresponding to those:
 +
 
 +
curl-devel<br>
 +
libcrypto-devel<br>
 +
libgd-devel<br>
 +
 
 +
 
 +
To install all this packages, you must have well-configured urpmi sources (look easyurpmi or urpmidor to verify). If you have them well-configured, you only must do:
 +
 
 +
'''urpmi curl'''<br>
 +
'''urpmi libcrypto'''<br>
 +
'''urpmi libgd'''
 +
 
 +
'''urpmi curl-devel'''<br>
 +
'''urpmi libcrypto-devel'''<br>
 +
'''urpmi libgd-devel'''
 +
 
 +
 
 +
Let's start
 +
 
 +
 
 +
1. Create a dir to put in wxGTK and wxBase rpm packages from the aMule website.
 +
 
 +
 
 +
'''mkdir /home/user/RPMS'''
 +
 
 +
copy there:
 +
 
 +
wxGTK-2.4.2.rpm<br>
 +
wxBase-2.4.2.rpm<br>
 +
aMule-2.0.0rc3-MDK_9.2-10.rpm o aMule-1.2.6-MDK_9.2-10.rpm
 +
 
 +
if you also want to compile aMule you must also copy:
 +
 
 +
wxGTK-devel-2.4.2.rpm
 +
 
 +
 
 +
2. Get in the new dir,
 +
 
 +
 
 +
'''cd /home/user/RPMS'''
 +
 
 +
and run genhdlist to create hdlist.cz
 +
 
 +
'''genhdlist'''
 +
 
 +
 
 +
3. Add that dir as a new source to urpmi
 +
 
 +
'''urpmi.addmedia dirRPMS file://home/user/RPMS with hdlist.cz'''
 +
 
 +
 
 +
4. Go to RPMDRAKE, Remove Software, and search wx. Select wxBase, wxGTK and wxGTK-devel, and remove all of them from your computer. If your computer doesn't find any of them, it just wasn't installed, so there's no need to remove it ;)
 +
 
 +
 
 +
5. Install wxGTX packages from dirRPMS source by doing:
 +
 
 +
'''urpmi wxGTK-2.4.2'''
 +
 
 +
if you also want to compile aMule you must also install
 +
 
 +
'''urpmi wxGTK-devel-2.4.2'''
 +
 
 +
6. Install wxBase package
 +
 
 +
'''urpmi wxBase-2.4.2'''
 +
 
 +
 
 +
Make sure you install the right packages from dirRPMS copying their exact name after urpmi.
 +
 
 +
 
 +
 
 +
then you must create the following symbolic links:
 +
 
 +
'''ln -sf /usr/bin/wxgtk-2.4-config /usr/bin/wx-config'''
 +
 
 +
'''ln -sf /usr/bin/wxbase-2.4-config /usr/bin/wxbase-config'''
 +
 
 +
 
 +
7. Now you can do
 +
 
 +
'''urpmi aMule-2.0.0rc3-MDK_9.2-10.rpm'''
 +
 
 +
or
 +
 
 +
'''urpmi aMule-1.2.6-MDK_9.2-10.rpm'''
 +
 
 +
or compile aMule from the sources .tar.gz
 +
 
 +
Following this how-to, you get an easy way to install back all of the packages that urpmi will remove each time yo update your system with urpmi --auto-select.
 +
 
 +
After updating the system with urpmi you must remove back wxBase (and wxGTK if it also changes it), and then install the packages from dirRPMS as we have done before.

Revision as of 16:46, 11 May 2004

This how-to explains the way to install and compile aMule on Mandrake 10 by using urpmi. I guess it would work in any other Mandrake version but I haven't tried it.

The problem when installing aMule on Mandrake 10, is that wxBase official Mandrake package is linked against GTK2 and aMule needs it to be linked against GTK1. However it's needed to use the wx rpm packages from the aMule website.

This can be done following the how-to in the page of aMule, but when doing it with urpmi, you have the advantage of controlling the version conflict between Mandrake's wxBase package and aMule's website package every time you update your system.

There are others packages needed to install aMulle on Mandrake. However, in this case, Mandrake official packages are fine. These packages are:


curl
libcrypto
libgd <----- this is needed only to use the -o option of cas. If you're not going to use that option, you don't have to install it.


If you also want to compile aMule, you must install the devel packages corresponding to those:

curl-devel
libcrypto-devel
libgd-devel


To install all this packages, you must have well-configured urpmi sources (look easyurpmi or urpmidor to verify). If you have them well-configured, you only must do:

urpmi curl
urpmi libcrypto
urpmi libgd

urpmi curl-devel
urpmi libcrypto-devel
urpmi libgd-devel


Let's start


1. Create a dir to put in wxGTK and wxBase rpm packages from the aMule website.


mkdir /home/user/RPMS

copy there:

wxGTK-2.4.2.rpm
wxBase-2.4.2.rpm
aMule-2.0.0rc3-MDK_9.2-10.rpm o aMule-1.2.6-MDK_9.2-10.rpm

if you also want to compile aMule you must also copy:

wxGTK-devel-2.4.2.rpm


2. Get in the new dir,


cd /home/user/RPMS

and run genhdlist to create hdlist.cz

genhdlist


3. Add that dir as a new source to urpmi

urpmi.addmedia dirRPMS file://home/user/RPMS with hdlist.cz


4. Go to RPMDRAKE, Remove Software, and search wx. Select wxBase, wxGTK and wxGTK-devel, and remove all of them from your computer. If your computer doesn't find any of them, it just wasn't installed, so there's no need to remove it ;)


5. Install wxGTX packages from dirRPMS source by doing:

urpmi wxGTK-2.4.2

if you also want to compile aMule you must also install

urpmi wxGTK-devel-2.4.2

6. Install wxBase package

urpmi wxBase-2.4.2


Make sure you install the right packages from dirRPMS copying their exact name after urpmi.


then you must create the following symbolic links:

ln -sf /usr/bin/wxgtk-2.4-config /usr/bin/wx-config

ln -sf /usr/bin/wxbase-2.4-config /usr/bin/wxbase-config


7. Now you can do

urpmi aMule-2.0.0rc3-MDK_9.2-10.rpm

or

urpmi aMule-1.2.6-MDK_9.2-10.rpm

or compile aMule from the sources .tar.gz

Following this how-to, you get an easy way to install back all of the packages that urpmi will remove each time yo update your system with urpmi --auto-select.

After updating the system with urpmi you must remove back wxBase (and wxGTK if it also changes it), and then install the packages from dirRPMS as we have done before.