wiki:SoftwarePrereqsUnix

Version 42 (modified by davea, 10 years ago) (diff)

--

Software prerequisites (Unix/Linux)

The various parts of BOINC have dependencies on other software. You'll need to install the ones you don't have, and possibly update some of the others. The list depends on which parts of BOINC you need.

If you are creating a BOINC project, you do not need to build the client or Manager.

Server Client Manager Applications Graphic apps
git
is needed to obtain the BOINC source code
X X X X X
GNU tools:
make 3.79+, m4 1.4+, libtool 1.5+,
autoconf 2.58+, automake 1.8+, GCC 3.0.4+
X X X X X
pkg-config 0.15+ X X X X X
Python 2.2+ with MySQLdb module 0.9.2+
(see installation instructions) and xml module
X
MySQL 4.0.9 or higher (with mysql-dev(el), and mysql-client) X
sqlite 3.1 or higher (packages sqlite-dev(el) and sqlite) X
Apache with mod_ssl and PHP5+ X
PHP5 with cli support and the GD and MySQL modules
(packages php5-cli and php5-gd)
X
OpenSSL version 0.9.8+ X X
libcurl version 7.17.1+ X
wxWidgets 2.8.3
(Configure with the --with-gtk --disable-shared options);
BOINC needs a static library.
If you have an older wxWidgets installed,
uninstall it (make uninstall), then install 2.8.
Make sure you have the 'development' version installed.
X
Graphics libraries: GL, GLU, GLUT (or freeglut).
You'll need a static (.a) version of GLUT or freeglut
(some Linux distributions come with only a dynamic version).
Use the 'development' version of GLUT or freeglut.
X
jpeglib, X11 libraries and include files X X
libstdc++.a (needed for portable executables; on Fedora, the yum package is libstdc++-static-4.5.1-4.fc14.i686) X X

Examples for setups in various distributions:

To build the server software on FC14, I had to use yum to install the following modules:

  • libtool-2.2.10-3.fc14.i686 (for libtoolize)
  • gcc-c++-4.5.1-4.fc14.i686 (for g++)
  • libstdc++-static-4.5.1-4.fc14.i686 (for libstdc++.a, needed by sample apps)
  • MySQL-python-1.2.3-0.5.c1.fc14.i686 (for MySQLdb)
  • php-mysql
  • php-gd

Packages needed for server and non-graphic library for Fedora Core 17 (Beefy Miracle) are:

  • git
  • libtool
  • gcc-c++
  • libstdc++-static
  • MySQL-python
  • php-mysql
  • php-gd
  • php-cli
  • openssl-devel
  • mysql-devel
  • mysql-server
  • httpd
  • php

To build on Ubuntu, I had to install the following (with apt-get):

  • git
  • python
  • make
  • m4
  • pkg-config
  • dh-autoreconf
  • libssl-dev
  • python-mysqldb
  • php5-mysql
  • libapache2-mod-php5
  • php5-gd

For Debian and Ubuntu one may inspect the build dependencies for the .deb packages, which comprise both the client and the server: