Skip to content

Latest commit

 

History

History
221 lines (128 loc) · 10.1 KB

INSTALL.md

File metadata and controls

221 lines (128 loc) · 10.1 KB

Agar

How to install Agar

Prerequisites
Optional
Installing from source
  1. Download and unpack the sources to a temporary location:

    $ wget https://stable.hypertriton.com/agar/agar-1.6.0.tar.gz

    $ tar -xzf agar-1.6.0.tar.gz

    $ cd agar-1.6.0

  2. Run the configure script. Use --help to see available options. Some examples:

    • Install to an alternate location (default = /usr/local):

    $ ./configure --prefix=$HOME

    • Enable run-time assertions, type-safety checks & GUI debugger:

    $ ./configure --enable-debug

    $ ./configure --disable-threads

    • Enable beta extension libraries such as AU, MAP & AG_Web.

    $ ./configure --enable-{au,map,web}

  3. Build and install the library:

    $ make depend all

    # make install

Installing from FreeBSD ports and packages
  • Install the binary package: pkg install agar
  • Compile from ports sources: (cd /usr/ports/devel/agar && make install clean)

On Linux Mint, Debian, Ubuntu & other apt-get-based distros

Prerequisites
  • A C compiler such as clang or gcc (apt-get install clang or apt-get install gcc).
  • FreeType (apt-get install libfreetype6-dev).
Optional
Installing from source
  1. Download and unpack the sources to a temporary location:

    $ wget https://stable.hypertriton.com/agar/agar-1.6.0.tar.gz

    $ tar -xzf agar-1.6.0.tar.gz

    $ cd agar-1.6.0

  2. Run the configure script. Use --help to see available options. Some examples:

    • Install to an alternate location (default = /usr/local):

    $ ./configure --prefix=$HOME

    • Enable run-time assertions, type-safety checks & GUI debugger:

    $ ./configure --enable-debug

    $ ./configure --disable-threads

    • Enable beta extension libraries such as AU, MAP & AG_Web.

    $ ./configure --enable-{au,map,web}

  3. Build and install the library:

    $ make depend all

    # make install

  4. If necessary refresh your ld.so cache:

    # ldconfig

On Linux Fedora & other yum-based distros

Prerequisites
  • A C compiler such as clang or gcc (yum install clang or yum install gcc).
  • FreeType (yum install freetype-devel).
Optional
Installing from source
  1. Download and unpack the sources to a temporary location:

    $ wget https://stable.hypertriton.com/agar/agar-1.6.0.tar.gz

    $ tar -xzf agar-1.6.0.tar.gz

    $ cd agar-1.6.0

  2. Run the configure script. Use --help to see available options. Some examples:

    • Install to an alternate location (default = /usr/local):

    $ ./configure --prefix=$HOME

    • Enable run-time assertions, type-safety checks & GUI debugger:

    $ ./configure --enable-debug

    $ ./configure --disable-threads

    • Enable beta extension libraries such as AU, MAP & AG_Web.

    $ ./configure --enable-{au,map,web}

  3. Build and install the library:

    $ make depend all

    # make install

  4. If necessary add /usr/local/lib to /etc/ld.so.conf and refresh your ld.so cache:

    # echo "/usr/local/lib" >> /etc/ld.so.conf

    # ldconfig

Prerequisites
Optional
Installing from source
  1. Download and unpack the sources to a temporary location:

    $ wget https://stable.hypertriton.com/agar/agar-1.6.0.tar.gz

    $ tar -xzf agar-1.6.0.tar.gz

    $ cd agar-1.6.0

  2. Run the configure script. Use --help to see available options. Some examples:

    • Install to an alternate location (default = /usr/local):

    $ ./configure --prefix=$HOME

    • Enable run-time assertions, type-safety checks & GUI debugger:

    $ ./configure --enable-debug

    $ ./configure --disable-threads

    • Enable beta extension libraries such as AU, MAP & AG_Web.

    $ ./configure --enable-{au,map,web}

  3. Build and install the library:

    $ make depend all

    # make install

  4. If necessary add /usr/local/lib to /etc/ld.so.conf and refresh your ld.so cache:

    # echo "/usr/local/lib" >> /etc/ld.so.conf

    # ldconfig