From LXF Wiki
There are some basic tools that you'll need to complete this process.
- GCC - this is the compiler which will make text files into magic programs to do stuff (this will be provided by your distro and is probably installed - type 'gcc' at the command prompt to check)
- Make - this is a clever little utility that allows code monkeys to set the order GCC builds stuff in (this will be provided by your distro - type make at the command prompt to check)
- tar - this is like an unzip utility for anything with either a .tar or .tar.gz extension (this will be provided by your distro but may not be installed by default - type tar at the command prompt to check)
How it's Done
OK, the basic recipe for compiling stuff yourself is this:
- download it
- wget [download link] (e.g. wget http://savannah.nongnu.org/download/duplicity/duplicity-0.4.11.tar.gz)
- untar it
- If the extension is .tar just use
tar -xfv [downloaded file name]
- If the extension is .tar.gz use
tar -xzfv [downloaded file name]
- If the extension is .tar.bz use
tar -xjfv [downloaded file name]
- go into the directory and run the provided configure script
cd [file directory] ./configure ("./" references the current working directory)
- watch the output closely; if it fails it's probably asking for another package to be installed, so do that and repeat this step.
- type make - this will compile the program, and this is the longest step - go get some tea and biscuits
- if that all worked then become the root user
su (followed by enter, then type the root password)
- now type:
make install (this will install the program so you can run it like the user you are! Joy!)
What if it all goes to the dogs?
Well it could be that there's a problem with the code, or it could be something else. The best place to go at this point is to the website of the people who wrote the software, as they're likely to have some support forums where you can get help, or at least make friends with other people in your situation.
Sometimes they offer developer and stable version of the software. If the dev version fails try the stable.
Some developers allow access the their CVS repositories. This means you can download the very latest version of the code, which may be full of amazingly brilliant features, but also may not compile or work.
Sourceforge projects provide access to all hosted projects CVS repositories, the general method is shown here:
Login to the CVS server:
cvs -d:pserver:email@example.com:/cvsroot/[project name] login
Get a copy of the code:
cvs -z3 -d:pserver:firstname.lastname@example.org:/cvsroot/[project name] co -P modulename
That's about it - enjoy your slightly more up-to-date software :D
--Bluemonki 21:22, 3 Nov 2005 (GMT)