Skip to content

Building from source

Fylwind edited this page May 22, 2016 · 5 revisions

Currently we don't provide source tarballs directly via GitHub Releases, so you'll have to clone the repository using Git or download the raw tree from GitHub. This means you need a few extra dependencies.

Requirements

You need a POSIX (Unix-like) operating system, such as Linux, BSD, or OS X. Sorry, that means we don't (yet) support Windows. It might work on MSYS2 or Cygwin, but don't hold your breath.

Minimally, you need to install the following dependencies:

  • Autoconf
  • Autoconf Archive
  • Automake
  • Libltdl
  • Bison
  • Flex
  • pkg-config
  • Git (needed if you want to use Method A)

If you want to also run the testing code, you need a recent version of Libcheck along with its development headers.

If you're on Debian or a Debian-derivative such as Ubuntu, you can install them like this:

sudo apt-get install autoconf-archive bison build-essential flex libltdl-dev pkg-config

# install libcheck from source
(
    cd /tmp
    curl -fL https://github.com/libcheck/check/files/71408/check-0.10.0.tar.gz | tar -xz
    cd check-*
    ./configure
    make
    sudo make install
)

Get the source code

Pick either A or B. If you plan on contributing to development, then A is strongly recommended.

Method A: Git clone

git clone https://github.com/staticfox/foxbot
cd foxbot

Method B: get a tarball from GitHub

curl -fL https://github.com/staticfox/foxbot/archive/master.tar.gz | tar -xz
cd foxbot-master

Build it

autoreconf -fi
./configure

# build it!
make

# run tests
make check