Compiling Linux Packages

Article last updated on November 29, 2006 9:46am by !nucleo.

This article assumes you know how to download files and open a terminal. This works with any version of Linux.

Traditional Linux programs are installed by compiling them. Package management programs have made the entire process very easy, however many great programs can only be downloaded as source and compiled. The extensions for these downloads is .tar.gz or .tgz. These are files that have been first tied together with tar, and secondly been compressed with gzip.

To extract them you will first decompress (gunzip -x filename) and then untar them (tar -xzf filename). In the directory you are working in you will now have a folder that is reminiscent of the original filename.

#cd path/to/download/directory
#ls
   gaim.tar.gz
#gunzip -x gaim.tar.gz
#ls
   gaim.tar
#tar -xzf gaim.tar
#ls
   gaim/   gaim.tar
#rm gaim.tar
#ls
   gaim/
#cd gaim

Now we actually compile the program. Nine times out of ten all you have to do is run ./configure, make, make install in that order. Things can go wrong at any time though, dependencies might not be found, libraries might be the wrong version.

#ls
   (lots of files including makefile and configure)
#./configure
   (screen output telling you what's up, might ask questions)
#make
   (the intense process of compiling happens. Cross your fingers)
#make install
   (the compiled program is automatically put where it belongs)
#gaim
   (runs our program, can be ran from any directory)

Gaim is a graphical program and if ran in a terminal will output program errors to the terminal (if they occur). If you ever have a graphical program that crashes a lot, run it from the terminal (verses double clicking an icon) and you may get some useful diagnostic information.

Login

Username:
Password:

Shoutbox

By !nucleo
Jun 12, 2008 7:56pm
About time you're back... Shoot me an email with your 88x31.
By ?Lee
Jun 12, 2008 3:27pm
vimixx.net has moved to lee-stewart.co.uk!!!
By ?Medvedko
May 4, 2008 7:04am
That's right. Sorry, I am not making much sense, am I? Basically, I created the DB myself instead of using your install script. All necessary tables are there, I added few more based on plugin POST options and added those to the update.php also. At the beginning I added mysql.ssi.php function to both update and winamp_playing scripts as I had some troubles before with include_once.
By !nucleo
May 2, 2008 9:56am
Now I'm really confused, are you modifying my shoutbox script?
By ?Medvedko
Apr 30, 2008 1:08am
another thing is that update script terminates with invalid password (I added the pass in the Additional Options in the plugin and set the pass in the update script.
By ?Medvedko
Apr 30, 2008 1:06am
my fault really. I modded the scripts and added more tables to the DB such as "TIMESTAMP". I think include_once doesn't fetch the mysql function. Or atleast this is what seems to me is the problem.
Name: Shout: This Number: [View All]

Partners

Rand Affiliates

Photoshop Lab Natayada Pixel Chick Spoono