<commit_before>#Building the engine on any Linux
On Debian/Ubuntu, building a package (see below) is recommended.
On other distributions, install development files of the following
libraries. (In brackets are versions that are known to work, but other
versions should work, too.)

-   Allegro 4 (> 4.2.2)
-   libaldmb (0.9.3)
-   libdumb (0.9.3)
-   libfreetype (2.4.9)
-   libogg (1.2.2-1.3.0)
-   libtheora (1.1.1-1.2.0)
-   libvorbis (1.3.2)

Download the sources with git and change into the **ags** directory:

    git clone git://github.com/adventuregamestudio/ags.git
    cd ags

Compile the engine:

    make --directory=Engine --file=Makefile.linux

The **ags** executable can now be found in the **Engine** folder and
can be installed with

    sudo make --directory=Engine --file=Makefile.linux install

Please take note of the usage instructions at the end of this document.


#Building a Debian/Ubuntu package of AGS
Building a package is the preferred way to install software on
Debian/Ubuntu. This is how it's done.

Install the build dependencies:

    sudo apt-get install git debhelper pkg-config liballegro4.2-dev libaldmb1-dev libfreetype6-dev libtheora-dev libvorbis-dev libogg-dev

Download the sources with git and change into the **ags** directory:

    git clone git://github.com/adventuregamestudio/ags.git
    cd ags

Build the package and install it with gdebi:

    fakeroot debian/rules binary
    sudo gdebi ../ags_3.21.1115~JJS-1_i386.deb

#Workaround: 32 bit AGS on 64 bit system
The 64 bit version of AGS causes problems on some systems, namely frequent
random crashes. Until this is resolved, a workaround is to use a 32 bit version
of AGS on a 64 bit system.
The development versions of Debian and Ubuntu support parallel
installation of both 32 and 64 bit versions of all required libraries
(multiarch), so you can build a 32 bit AGS to use on your 64 bit system.
This part works only on Debian sid and wheezy and Ubuntu quantal.
If you observe this problem and are able to help resolve it, that would be great.

Download the sources with git and change into the **ags** directory:

    git clone git://github.com/adventuregamestudio/ags.git
    cd ags<commit_msg>Linux README: Package name depends on architecture.<commit_after>#Building the engine on any Linux
On Debian/Ubuntu, building a package (see below) is recommended.
On other distributions, install development files of the following
libraries. (In brackets are versions that are known to work, but other
versions should work, too.)

-   Allegro 4 (> 4.2.2)
-   libaldmb (0.9.3)
-   libdumb (0.9.3)
-   libfreetype (2.4.9)
-   libogg (1.2.2-1.3.0)
-   libtheora (1.1.1-1.2.0)
-   libvorbis (1.3.2)

Download the sources with git and change into the **ags** directory:

    git clone git://github.com/adventuregamestudio/ags.git
    cd ags

Compile the engine:

    make --directory=Engine --file=Makefile.linux

The **ags** executable can now be found in the **Engine** folder and
can be installed with

    sudo make --directory=Engine --file=Makefile.linux install

Please take note of the usage instructions at the end of this document.


#Building a Debian/Ubuntu package of AGS
Building a package is the preferred way to install software on
Debian/Ubuntu. This is how it's done.

Install the build dependencies:

    sudo apt-get install git debhelper pkg-config liballegro4.2-dev libaldmb1-dev libfreetype6-dev libtheora-dev libvorbis-dev libogg-dev

Download the sources with git and change into the **ags** directory:

    git clone git://github.com/adventuregamestudio/ags.git
    cd ags

Build the package and install it with gdebi:

    fakeroot debian/rules binary
    sudo gdebi ../ags_3.21.1115~JJS-1_*.deb

#Workaround: 32 bit AGS on 64 bit system
The 64 bit version of AGS causes problems on some systems, namely frequent
random crashes. Until this is resolved, a workaround is to use a 32 bit version
of AGS on a 64 bit system.
The development versions of Debian and Ubuntu support parallel
installation of both 32 and 64 bit versions of all required libraries
(multiarch), so you can build a 32 bit AGS to use on your 64 bit system.
This part works only on Debian sid and wheezy and Ubuntu quantal.
If you observe this problem and are able to help resolve it, that would be great.

Download the sources with git and change into the **ags** directory:

    git clone git://github.com/adventuregamestudio/ags.git
    cd ags
{'fraction_non_alphanumeric': 0.07144466982195177, 'fraction_numerical': 0.02681992337164751, 'mean_word_length': 3.6422594142259412, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1151194', 'n_tokens_mistral': 1452, 'n_tokens_neox': 1318, 'n_words': 613}