Difference between revisions of "HowTo Compile In MDK"
m |
m (links) |
||
Line 2: | Line 2: | ||
[[MDK10_install|Version in English]] | [[MDK10_install-es|Versión en Español]]</center> | [[MDK10_install|Version in English]] | [[MDK10_install-es|Versión en Español]]</center> | ||
− | 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. | + | This how-to explains the way to install and compile [[aMule]] on [http://www.mandrake.com Mandrake] 10 by using [http://www.urpmi.org urpmi]. I guess it would work in any other [http://www.mandrake.com Mandrake] version but I haven't tried it. |
Always remember: | Always remember: | ||
<ul> | <ul> | ||
− | <li><font color=#ff0000>NEVER</font> use wxWidgets packages provided by Official Mandrake (Any versions)</li> | + | <li><font color=#ff0000>NEVER</font> use [[wxWidgets]] packages provided by Official [http://www.mandrake.com Mandrake] (Any versions)</li> |
− | <li><font color=#ff0000>NEVER</font> use wxWidgets packages provided by the PLF</li> | + | <li><font color=#ff0000>NEVER</font> use [[wxWidgets]] packages provided by the [http://plf.zarb.org PLF]</li> |
</ul> | </ul> | ||
− | 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 | + | The problem when installing [[aMule]] on [http://www.mandrake.com Mandrake]] 10 (and 9.X), is that [[wxWidgets|wxGTK]] official [http://www.mandrake.com Mandrake] package is linked against [http://www.gtk.org GTK2] and [[aMule]] needs it to be linked against [http://www.gtk.org GTK1]. The solution is to use the [[wxWidgets|wx]] RPM packages from the [http://dl.amule.org aMule website]. |
− | This can be done following the how-to in the | + | This can be done following the [[Compilation_Installation|compilation how-to]] in the [[Main_Page|wiki of aMule]], but when doing it with [http://urpmi.org urpmi], you have the advantage of controlling the version conflict between [http://www.mandrake.com Mandrake]'s [[wxWidgets|wxGTK]] package and [[aMule]]'s [http://dl.amule.org website] package every time you update your system. |
− | There are others packages needed to install aMule on Mandrake. However, in this case, Mandrake official packages are fine. These packages are: | + | There are others packages needed to install [[aMule]] on [http://www.mandrake.com Mandrake]. However, in this case, [http://www.mandrake.com Mandrake] official packages are fine. These packages are: |
'''curl'''<br> | '''curl'''<br> | ||
'''libcrypto'''<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. | + | '''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: | + | If you also want to compile [[aMule]], you must install the devel packages corresponding to those: |
'''curl-devel'''<br> | '''curl-devel'''<br> | ||
Line 28: | Line 28: | ||
− | 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: | + | To install all this packages, you must have well-configured [http://urpmi.org urpmi] sources (look [http://easyurpmi.zarb.org easyurpmi] or [http://bailandodesvan.webcindario.com/urpmidor urpmidor] to verify). If you have them well-configured, you only must do: |
''urpmi curl''<br> | ''urpmi curl''<br> | ||
Line 42: | Line 42: | ||
− | 1. Create a | + | 1. Create a directory to put in [[wxWidgets|wxGTK]] and [[wxBase]] RPM packages from the [[aMule]] [http://dl.amule.org website]. |
Line 53: | Line 53: | ||
'''aMule-2.0.0rc3-MDK_9.2-10.rpm''' <font color=#ff0000>OR</font> '''aMule-1.2.6-MDK_9.2-10.rpm''' | '''aMule-2.0.0rc3-MDK_9.2-10.rpm''' <font color=#ff0000>OR</font> '''aMule-1.2.6-MDK_9.2-10.rpm''' | ||
− | if you also want to compile aMule you must also copy: | + | if you also want to compile [[aMule]] you must also copy: |
'''wxGTK-devel-2.4.2.rpm''' | '''wxGTK-devel-2.4.2.rpm''' | ||
− | 2. Get in the new | + | 2. Get in the new directory, |
''cd /home/user/RPMS'' | ''cd /home/user/RPMS'' | ||
− | and run genhdlist to create hdlist.cz: | + | and run ''genhdlist'' to create ''hdlist.cz'': |
''genhdlist'' | ''genhdlist'' | ||
− | 3. Add that | + | 3. Add that directory as a new source to [http://www.urpmi.org urpmi] |
''urpmi.addmedia dirRPMS file://home/user/RPMS with hdlist.cz'' | ''urpmi.addmedia dirRPMS file://home/user/RPMS with hdlist.cz'' | ||
− | 4. Go to RPMDRAKE | + | 4. Go to '''RPMDRAKE''' -> '''Remove Software''', and search for ''[[wxWidgets|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 | + | 5. Install [[wxWidgets|wxGTK]] packages from dirRPMS source by doing: |
''urpmi wxGTK-2.4.2'' | ''urpmi wxGTK-2.4.2'' | ||
− | if you also want to compile aMule you must also install | + | if you also want to compile [[aMule]] you must also install |
''urpmi wxGTK-devel-2.4.2'' | ''urpmi wxGTK-devel-2.4.2'' | ||
− | 6. Install wxBase package | + | 6. Install [[wxBase]] package |
''urpmi wxBase-2.4.2'' | ''urpmi wxBase-2.4.2'' | ||
− | Make sure you install the right packages from dirRPMS copying their exact name after urpmi. | + | Make sure you install the right packages from dirRPMS copying their exact name after [http://www.urpmi.org urpmi]. |
''urpmi wxGTK-devel-2.4.2'' | ''urpmi wxGTK-devel-2.4.2'' | ||
Line 105: | Line 105: | ||
''urpmi aMule-1.2.6-MDK_9.2-10.rpm'' | ''urpmi aMule-1.2.6-MDK_9.2-10.rpm'' | ||
− | or compile aMule from the sources .tar.gz | + | 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. | + | Following this how-to, you get an easy way to install back all of the packages that [http://www.urpmi.org 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. | + | After updating the system with [http://urpmi.org urpmi] you must remove back [[wxBase]] (and [[wxWidgets|wxGTK]] if it also changes it), and then install the packages from dirRPMS as we have done before. |
Revision as of 08:41, 22 July 2004
by elui
Version in English | Versión en Español
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.
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.
There are others packages needed to install aMule 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 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.0rc3-MDK_9.2-10.rpm OR 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 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 ;)
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.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 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.