Chapter 1. Installing PBC

The PBC library needs the GMP library. Multiple ways to install PBC are provided.

GNU Build System (autotools)

This build system has been tested and works on Linux and Mac OS X with a fink installation.

$ ./configure
$ make
$ make install

By default the library is installed in /usr/local/lib. On some systems, this may not be in the library path. One way to fix this is to edit /etc/ld.so.conf and run ldconfig.

Simple Makefile

Due to its speed and simplicity, I use simple.make during development. Naturally it is less portable.

$ make -f simple.make

PBC uses some GNU C extensions, notably nested functions.