Difference between revisions of "HowTo Compile In Slackware"

From AMule Project FAQ
Jump to: navigation, search
Line 29: Line 29:
 
: tools, which make upgrading and removing old cruft from previous  
 
: tools, which make upgrading and removing old cruft from previous  
 
: installs a breeze.
 
: installs a breeze.
: If the Slackwiki howto is a little too much for, stich to checkinstall for
+
: If the Slackwiki howto is a little too much for, stick to checkinstall for
 
: the moment: become root
 
: the moment: become root
  
Line 84: Line 84:
 
:--enable-cas --enable-alcc --enable-kad-compile --prefix=/usr
 
:--enable-cas --enable-alcc --enable-kad-compile --prefix=/usr
  
:this will give you the core, the monolith, the webserver,
+
:this will give you the core, the monolithic, the webserver,
 
:the stats program, the link handler, and... about everything.
 
:the stats program, the link handler, and... about everything.
  

Revision as of 03:35, 23 December 2005

Installing aMule on Slackware

by Mike (servnov)

wisecrackin' added by DexterF

NOTE: you will need super-user (usually root) access to complete aMule install/uninstallation/update, further you should have at least checkinstall installed.


Installation

Installing wxGTK

Download wxGTK sources (.tar.gz packages) from
www.wxwidgets.org, latest is 2.6.2 as of 21st of Dec 05
tar -xzvf wxGTK*
cd wxGTK*
./configure --prefix=/usr --enable-unicode
make
After make finishes, it's about time to install the new files.
Usually this is done by becomming root and invoking
# make install
But: even better, use checkinstall or read up on how to
properly make Slackware packages on slackwiki.org.
checkinstall and selfmade packages can be handled by slackware's package
tools, which make upgrading and removing old cruft from previous
installs a breeze.
If the Slackwiki howto is a little too much for, stick to checkinstall for
the moment: become root
$ su -
then just call
# checkinstall
Just answer the questions and you're done.


Installing wxBase (Optional)

If you downloaded wxGTK earlier than version 2.5 and you are planning to use aMule with command line interface (such as aMuleCMD, aMuleWeb, aMuled, etc), then you you should install wxBase. In any other case, there's no need at all.
Download wxBase sources (.tar.gz packages) from http://www.amule-project.net or http://www.amule.org and do the following:
tar -xzvf wxBase*
cd wxBase*
./configure
make
#the following command must be run as super-user (usually root):
make install

Installing aMule

Grab pre-built Slackware package from linuxpackages.net.
installpkg aMule-2.0.0rc7-i686-1.tgz (or whatever the newest version is)
That's all!
Type amule in a shell to lauch or in KDE (similar in GNOME) go to Kstart->Internet->aMule

Updating

The following command will remove the old aMule package and install the new version:
upgradepkg aMule-2.0.0rc7-i686-1.tgz

Compiling aMule from src

Sometimes you might feel an urge to go cvs or simply don't want
to use prepackaged binaries because of paranoia, the packagers
are dodos or whatever.
Download a src tarball at amule.org.
tar xzvf or tar xjvf the tarball.
Enter the dir
I use this configure call:
./configure --enable-amule-daemon --enable-amulecmd \
--enable-amulecmdgui --enable-webserver --enable-amule-gui \
--enable-cas --enable-alcc --enable-kad-compile --prefix=/usr
this will give you the core, the monolithic, the webserver,
the stats program, the link handler, and... about everything.
after that, run make and in the lucky case it finishes without
errors, follow installation instructions from wxGTK above.


Uninstallation

The following command will remove aMule:
removepkg aMule

Final note

You can even get wxBase and wxGTK .tgz Slackware packages and install them with 'installpkg'. Using the Slackware package manager saves time during installation and makes upgrading easy. You can also type 'pkgtool' as root and then search for the packages you have downloaded and install and/or remove packages.

Enjoy the hard work aMule developers have done and continue to do!

Just remember you will need wxBase and wxGTK installed even when using Slackware package.


Hope this helps.

Catch me on IRC at irc.freenode.com channel #amule nick servnov.