Difference between revisions of "HowTo Compile In MDK"
Line 32: | Line 32: | ||
Let's start | Let's start | ||
− | + | <h1>[[aMule]] version <= 2.0.0rc5</h1> | |
Always remember: | Always remember: | ||
Line 108: | Line 108: | ||
− | + | <h1>[[aMule]] version >= 2.0.0rc6</h1> | |
There is two way to proceed here, by using wx packages directly from Mandrake, or using Customs wx rpm. | There is two way to proceed here, by using wx packages directly from Mandrake, or using Customs wx rpm. | ||
Line 118: | Line 118: | ||
Go to '''RPMDRAKE''' -> '''Remove Software''', and search for ''[[wxWidgets|wx]]'' and remove all. | Go to '''RPMDRAKE''' -> '''Remove Software''', and search for ''[[wxWidgets|wx]]'' and remove all. | ||
− | < | + | <h3>1. Installation with Mandrake wx RPM:</h3> |
Go to '''RPMDRAKE''' -> '''Install Software''' and select '''libwxGTK2ud''' (and '''libwxGTK2ud-devel''' if you want to compile [[aMule]] yourself) | Go to '''RPMDRAKE''' -> '''Install Software''' and select '''libwxGTK2ud''' (and '''libwxGTK2ud-devel''' if you want to compile [[aMule]] yourself) | ||
Line 124: | Line 124: | ||
Then, install [http://download.berlios.de/amule/aMule-2.0.0rc6-1mdk-10.0.i586.rpm aMule-2.0.0rc6-1mdk-10.0.i586.rpm]. | Then, install [http://download.berlios.de/amule/aMule-2.0.0rc6-1mdk-10.0.i586.rpm aMule-2.0.0rc6-1mdk-10.0.i586.rpm]. | ||
− | < | + | <h3>2. Installation with Customs wx RPM:</h3> |
Install: | Install: | ||
Line 132: | Line 132: | ||
and if you want to compile [[aMule]] yourself: | and if you want to compile [[aMule]] yourself: | ||
− | [http://download.berlios.de/amule/libwxgtk-gtk2u_2.5_3-2.5.3 | + | [http://download.berlios.de/amule/libwxgtk-gtk2u_2.5_3-devel-2.5.3-4mdk-10.0.i586.rpm libwxgtk-gtk2u_2.5_3-devel-2.5.3-4mdk-10.0.i586.rpm] |
Then: | Then: | ||
[http://download.berlios.de/amule/aMule-2.0.0rc6-3mdk-10.0.i586.rpm aMule-2.0.0rc6-3mdk-10.0.i586.rpm] | [http://download.berlios.de/amule/aMule-2.0.0rc6-3mdk-10.0.i586.rpm aMule-2.0.0rc6-3mdk-10.0.i586.rpm] |
Revision as of 08:02, 13 October 2004
Contents
by elui
Version in English | Versión en Español
This how-to explains the way to install and compile aMule on Mandrake 10.0 by using urpmi. I guess it would work in any other Mandrake version but I haven't tried it.
There is 2 ways to do it now, for aMule until 2.0.0rc5 and for versions above (beginning at rc6).
This is because we can link aMule with wx-2.5.x from 2.0.0rc6
There are others packages needed to install aMule on Mandrake. However, in this case, Mandrake official packages are fine. These packages are:
curl
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
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 libgd
urpmi curl-devel
urpmi libgd-devel
Let's start
aMule version <= 2.0.0rc5
Always remember:
- NEVER use wxWidgets packages provided by Official Mandrake (Any versions)
- NEVER use wxWidgets packages provided by the PLF
The problem when installing aMule on Mandrake] 10 (and 9.X), is that wxGTK official Mandrake package is linked against GTK2 and aMule needs it to be linked against GTK1. The solution is to use the wx RPM packages from the aMule website.
This can be done following the compilation how-to in the wiki of aMule, but when doing it with urpmi, you have the advantage of controlling the version conflict between Mandrake's wxGTK package and aMule's website package every time you update your system. 1. Create a directory 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.0rc6-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 directory,
cd /home/user/RPMS
and run genhdlist to create hdlist.cz:
genhdlist
3. Add that directory as a new source to urpmi
urpmi.addmedia dirRPMS file://home/user/RPMS with hdlist.cz
4. Go to RPMDRAKE -> Remove Software, and search for 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 ;)
Make sure you uninstall all wxWidgets, since it could happen that more than one version is installed.
5. Install wxGTK 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.
urpmi wxGTK-devel-2.4.2
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.0rc6-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 you 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.
aMule version >= 2.0.0rc6
There is two way to proceed here, by using wx packages directly from Mandrake, or using Customs wx rpm.
Some users have reported problems using wx from Mandrake, so you are warned !
As usual, clean your computer before by suppressing all previous wx rpms:
Go to RPMDRAKE -> Remove Software, and search for wx and remove all.
1. Installation with Mandrake wx RPM:
Go to RPMDRAKE -> Install Software and select libwxGTK2ud (and libwxGTK2ud-devel if you want to compile aMule yourself)
Then, install aMule-2.0.0rc6-1mdk-10.0.i586.rpm.
2. Installation with Customs wx RPM:
Install:
libwxgtk-gtk2u_2.5_3-2.5.3-4mdk-10.0.i586.rpm
and if you want to compile aMule yourself:
libwxgtk-gtk2u_2.5_3-devel-2.5.3-4mdk-10.0.i586.rpm
Then: