then execute it (no need to execute it as root).
Here is for example a sequence of commands to get the script from the
master branch . You can replace master with next to get a later version of the script if one is available: <pre>mkdir ~/fgfscd ~/fgfswget https://sourceforge.net/p/flightgear/fgmeta/ci/next/tree/download_and_compile.sh?format=rawchmod 755 download_and_compile.sh </pre>
You have two options now: build the latest ''stable'' FlightGear release or build the ''current development'' version (bleeding edge).
After building stable or the latest, if you need to build a different version, try the instructions for [[Avoiding multiple downloads of FGData on Linux]].
=== Build the latest stable FlightGear release ===
When executing the script, use the "-s" option to build the latest stable release:
<pre>./download_and_compile.sh -s </pre>
=== Build the current FlightGear development version ===
'''Warning''': The development version of FlightGear changes on an almost daily basis. It provides the latest features, but is not always guaranteed to work reliably. If you're unfamiliar with software testing, you may prefer to use the latest stable release.
<pre> ./ download_and_compile. sh </pre>
Once the script is finished, you will successfully get FlightGear and FGRun installed in the ~/fgfs directory.
=== Launching FlightGear === When using Brisa's script, the two FG dependencies/libs are usually not installed system- wide, but in a custom location (that makes it possible, to easily use different OSG/ SG/ FG versions on a single system, i.e. for testing purposes - but also to have separate build trees (optimized/ debug) ) - which is why you either need to set LD_LIBRARY_PATH or simply use Brisa's script to run everything (something like run_fgfs.sh , which automatically sets up all environment variables according to your build settings).
To run your new git installation of FlightGear you have to launch the ''run_fgfs.sh '' command under the same folder, for example:< pre> cd ~/ fgfs sh run_fgfs.sh</ pre>
=== Launching FGRun ===
For many users it's more comfortable having FlightGear launched by the graphical utility FGRun which is installed as well in the same folder. You have to launch the ''run_fgrun.sh'' command, for example:
=== Launching FGo! ===
This is a graphical utility written in [[python]], You have to launch the ''run_fgo.sh'' command, for example: