BIOGEME Install
Although executables are distributed (see the menu on the right), it is highly recommended to install the software from sources, so that the executables are tuned for your own machine.
It is assumed that you are working on a machine where the GNU development tools have been installed, in particular the GNU C++ compiler.
- Mac OS X
- If you are working on Mac OS X, make sure to install Xcode and Python 3. Note that Python 2, which is usually installed by default, cannot be used. Also, it won't compile on Mac against the macports distribution of
Python 3.2. It's fine to compile it again a custom build of Python
3.2, or the macports distribution of Python 3.1. After installation,
one can reinstall macports Python 3.2, they won't interfere once build
and installed. In any case, executables for Macintosh are also available.
Biogeme has been developed and tested on that platform with the following tools:
- g++ 4.5.1
- Python 3.1.2 and Python 3.2
- flex 2.5.35
-
Executables for Mac OS X are distributed. The package contains executables for Bison Biogeme (
biogeme
andbiosim
), an executable for data manipulation (biomerge
) and an experimental version of Pythonbiogeme (the scriptpythonbiogeme
, and the executablepybiogeme
, called by that script). Note that this experimental version contains pieces of code from the Python distribution, which are under license. - Linux
-
In general, the GNU tools are directly available on any machines running linux.
Make sure that Python 3 is installed. On some platforms, it is also necessary to install python3-dev (onUbuntu, use
sudo apt-get install python3-dev
). It has been tested on the following platforms- Red Hat 4.1.2-48
- Ubuntu 4.4.3-4ubuntu5
- Windows
- There are some GNU environment distributed under Windows: However, it is recommended to install a native Linux distribution on the machine.
In order to install pythonbiogeme, python 3
must also be installed (see python.org). Note that older versions of python, such as python 2.x
are not compatible. python 3.1
is required. Sometimes,
The procedure to install biogeme on a linux machine or a mac, download the file biogeme-2.2.tar.gz
in a temporary directory, and apply the following procedure:
tar xvzf biogeme-2.2.tar-gz
cd biogeme-2.2
./configure --enable-bison
make
sudo make install
The configure
step is pretty verbose. The relevant information is displayed at the end, and looks like:
biogeme 2.2: Automatic configuration OK. Build biogeme...........yes Build biomerge..........yes Build biosim............yes Build python biogeme....no (use option --enable-python) Build gui version.......yes Static executables......no (use option --enable-staticexec) Versioned installation..no (use option --enable-versioned)
It reports those features that will be built, and those that will not. Some features (such as python biogeme
in the above example) are not installed because they have not been "enabled" using the corresponding --enable
option. Some features require additional software, such as python 3.1
or Fast Light Toolkit.
The procedure to install both biogeme and the python version is the following:
tar xvzf biogeme-2.2.tar-gz
cd biogeme-2.2
./configure --enable-bison --enable-python
make
sudo make install
Biogeme