Difference between revisions of "HowTo compile on Mac"
From AMule Project FAQ
m (links and typos (me types bad too)) |
|||
Line 1: | Line 1: | ||
The following is the commands you should type to install [[aMule]] on [http://www.apple.com/macosx MacOS X].<br> | The following is the commands you should type to install [[aMule]] on [http://www.apple.com/macosx MacOS X].<br> | ||
− | This HowTo is written to install [[aMule]] 2.0. | + | This HowTo is written to install [[aMule]] 2.0.0rc5 but should work for any other version. Please note that you should always download the latest [[aMule]] version available.<br> |
Whenever ''[http://curl.haxx.se curl]'' is used, if it isn't installed on your system, just download the file manually. | Whenever ''[http://curl.haxx.se curl]'' is used, if it isn't installed on your system, just download the file manually. | ||
Lines beginning with a ''#'' character are comments on what the following lines do. | Lines beginning with a ''#'' character are comments on what the following lines do. | ||
Line 13: | Line 13: | ||
curl -O http://heanet.dl.sourceforge.net/sourceforge/wxwindows/wxMac-2.5.2.tar.gz | curl -O http://heanet.dl.sourceforge.net/sourceforge/wxwindows/wxMac-2.5.2.tar.gz | ||
curl -O http://download.berlios.de/amule/crypto-5.1.tar.bz2 | curl -O http://download.berlios.de/amule/crypto-5.1.tar.bz2 | ||
− | curl -O http://download.berlios.de/amule/aMule-2.0. | + | curl -O http://download.berlios.de/amule/aMule-2.0.0rc5.tar.gz |
− | tar -xzf aMule-2.0. | + | tar -xzf aMule-2.0.0rc5.tar.gz |
tar -xjf crypto-5.1.tar.bz2 | tar -xjf crypto-5.1.tar.bz2 | ||
tar -xzf wxMac-2.5.2.tar.gz | tar -xzf wxMac-2.5.2.tar.gz | ||
# remove downloaded archives after unpacking | # remove downloaded archives after unpacking | ||
− | rm wxMac-2.5.2.tar.gz crypto-5.1.tar.bz2 aMule-2.0. | + | rm wxMac-2.5.2.tar.gz crypto-5.1.tar.bz2 aMule-2.0.0rc5.tar.gz |
# install wxMac | # install wxMac | ||
Line 43: | Line 43: | ||
sudo apt-get install gtk+ | sudo apt-get install gtk+ | ||
sudo apt-get install gtk+-shlibs | sudo apt-get install gtk+-shlibs | ||
+ | sudo apt-get install gd209 | ||
+ | sudo apt-get install gd209-bin | ||
+ | sudo apt-get install gd209-shlibs | ||
+ | sudo apt-get install libpng3 | ||
+ | sudo apt-get install libpng3-shlibs | ||
# install aMule | # install aMule | ||
− | cd aMule-2.0. | + | cd aMule-2.0.0rc5 |
./configure --disable-systray --disable-gsocket --disable-gtk --with-wx-prefix=/usr/local --with-wx-config=/usr/local/bin/wx-config --with-crypto-prefix=/Users/YOUR_NAME_HOME/amule/ | ./configure --disable-systray --disable-gsocket --disable-gtk --with-wx-prefix=/usr/local --with-wx-config=/usr/local/bin/wx-config --with-crypto-prefix=/Users/YOUR_NAME_HOME/amule/ | ||
make | make | ||
Line 54: | Line 59: | ||
unzip amule.zip | unzip amule.zip | ||
rm amule.zip | rm amule.zip | ||
− | cp aMule-2.0. | + | cp aMule-2.0.0rc5/src/amule amule.app/Contents/MacOS/ |
# move amule to your Applications folder | # move amule to your Applications folder | ||
mv amule.app /Applications | mv amule.app /Applications | ||
− | + | ||
+ | |||
If you get an error like this: ''You cannot open the application "amule" because it may be damaged or incomplete'', right click on ''amule'' then click on ''Show Packages Contents'', go to Contents>MacOS> and double click on ''amule''. | If you get an error like this: ''You cannot open the application "amule" because it may be damaged or incomplete'', right click on ''amule'' then click on ''Show Packages Contents'', go to Contents>MacOS> and double click on ''amule''. | ||
Next time you start from ''amule.app'' it will run fine. | Next time you start from ''amule.app'' it will run fine. | ||
If you still get the same error, move ''amule.app'' to the desktop and run it from there. | If you still get the same error, move ''amule.app'' to the desktop and run it from there. |
Revision as of 06:26, 23 July 2004
The following is the commands you should type to install aMule on MacOS X.
This HowTo is written to install aMule 2.0.0rc5 but should work for any other version. Please note that you should always download the latest aMule version available.
Whenever curl is used, if it isn't installed on your system, just download the file manually.
Lines beginning with a # character are comments on what the following lines do.
# make amule dir in home cd ~ mkdir amule cd amule # get source from the internet and unpack it curl -O http://heanet.dl.sourceforge.net/sourceforge/wxwindows/wxMac-2.5.2.tar.gz curl -O http://download.berlios.de/amule/crypto-5.1.tar.bz2 curl -O http://download.berlios.de/amule/aMule-2.0.0rc5.tar.gz tar -xzf aMule-2.0.0rc5.tar.gz tar -xjf crypto-5.1.tar.bz2 tar -xzf wxMac-2.5.2.tar.gz # remove downloaded archives after unpacking rm wxMac-2.5.2.tar.gz crypto-5.1.tar.bz2 aMule-2.0.0rc5.tar.gz # install wxMac cd wxMac-2.5.2 mkdir build cd build ../configure make sudo make install cd .. cd .. # install libcrypto cd crypto-5.1 make sudo make install cd .. mv crypto-5.1 cryptopp sudo ranlib /usr/lib/libcryptopp.a # install fink # http://optusnet.dl.sourceforge.net/sourceforge/fink/Fink-0.7.0-Installer.dmg sudo apt-get install gtk+ sudo apt-get install gtk+-shlibs sudo apt-get install gd209 sudo apt-get install gd209-bin sudo apt-get install gd209-shlibs sudo apt-get install libpng3 sudo apt-get install libpng3-shlibs # install aMule cd aMule-2.0.0rc5 ./configure --disable-systray --disable-gsocket --disable-gtk --with-wx-prefix=/usr/local --with-wx-config=/usr/local/bin/wx-config --with-crypto-prefix=/Users/YOUR_NAME_HOME/amule/ make cd .. # create app-Container curl -O http://one2one.no.sapo.pt/amule.zip unzip amule.zip rm amule.zip cp aMule-2.0.0rc5/src/amule amule.app/Contents/MacOS/ # move amule to your Applications folder mv amule.app /Applications If you get an error like this: ''You cannot open the application "amule" because it may be damaged or incomplete'', right click on ''amule'' then click on ''Show Packages Contents'', go to Contents>MacOS> and double click on ''amule''. Next time you start from ''amule.app'' it will run fine. If you still get the same error, move ''amule.app'' to the desktop and run it from there.