The following script takes care of downloading and compiling FlightGear from the git repositories with just one command execution for both 32-bit and 64-bit Debian based systems (Debian, Ubuntu). Pre-existing installed version (if any) of FlightGear are not touched at all since the script builds and installs everything under the directory in which it is launched. You can choose between building all or only specific tools and applications. For RedHat-based systems (Fedora, CentOS) you may want to check out [[CentOS]].
Necessary packages are installed via the apt- get system while libraries not included in the repositories are downloaded and compiled on the fly ( i.e. [[Plib]], [[Simgear]] and [[OSG]]).
Hints on Using a RPM based distribution like CentOS, please see [[CentOS]]
Please also see [[Superbuild]].
=== Update Available ===
FlightGear development team has published version 2.34 of the script. download the newest script with this command: wget -O download_and_compile.sh http://sourceforge.net/p/flightgear/fgmeta/ci/next/tree/download_and_compile.sh?format=raw
=== Cut to the Chase: for the impatient ===
cd <your working directory for building FlightGear>
wget -O download_and_compile.sh
chmod +x download_and_compile.sh
mkdir -p stable
mkdir -p next
../download_and_compile.sh -p n
=== Conversion of directory structure from earlier versions of download_and_compile.sh ===
[[nl:Compileren met een Script op Linux Debian/Ubuntu]]
[[fr:Script de compilation sous Linux Debian/Ubuntu]]