My Location Message Board E-Mail
pcbypaul
pc software, repair
      return to
    Homepage
bg

 
WP Clipart

Not Just for Geeks Anymore
Scripts 'N Tips
Xterm Use
Firefox Updating
update Java
Firefox Keys
Themes offline
Start Firefox
Kill Firefox
Firefox 16x16
Firefox Problems
Compiling
Compile wxPython
Disk Usage
CD Player
cdArray
Find-Installed
Backgrounds
Gimp Splash
Links
LinuxPackages
IceWalkers
Freshmeat
Linux Today
Slashdot



Compiling from Source Code


  • Overview
  •   These are "generic" Linux compilation instructions -- with some additional notes for Slackware users.

    Reasons for compiling source code:

    • No precompiled (binary) version of the software you want is available for your system.

    • You want to optimize the software for your system

    • You cannot get a binary to work, perhaps because you are missing a dependency, but you are not sure what it is you need. By trying to compile, the error messages will likely tell you what is missing. The binary may also have used a different version of the compiler, not compatable with your system.


      To optimize you should peruse the README file that usually accompanies the source code. Also, for great optimization details, see the configure section below.

      As a prerequisite for compiling your own source code, you need to have, of all things, a compiler. For Linux apps written in C, most common, you will almost invariably use the Gnu C compiler (gcc). Some other tools are also usually necessary, such as "make", "bin-utils", etc... but unless you have a real stripped-down or mini-distribution, these tools will already be installed on your machine.

    In other words, the instructions below will very likely work without any setup on your part.


    Steps to compile


  • Get the Source
      The best place to get the source will be at the homepage for the project. If what you are looking for is to satisfy a dependency, the parent project will likely point you to the page you need. If not, doing a quick search on Google with the project name and "homepage" will often get it. A search on Sourceforge will also often get you where you need to go, because a large percentage of projects are "sponsored" on Sourceforge.
      What you will download will likely be a compressed file, a .gz or a more highly-compressed .bz2.



Tux Pages created and served by Linux Graphics made/edited by the Gimp   Created with the Gimp byPaul