From charlesreid1

GiNaC, which stands for Ginac is Not a Computer Algebra System, is a C++ package which provides a set of objects to perform symbolic mathematical operations. You can think of it as a C++ core that can be used as a symbolic math library by other C++ programs.

Installation

Dependencies

In order to install Ginac, the pkg-config utility is required. It is available from http://pkg-config.freedesktop.org/ . In addition, Doxygen, while not required, can be used to generate the reference manual yourself.

Configure

You can build Ginac using the following configure line:

export PKG_CONFIG=/sw/bin/pkg-config
export PKG_CONFIG_PATH=:/path/to/cln/lib/pkgconfig:/sw/lib/pkgconfig:/usr/local/lib/pkgconfig

./configure \
    --prefix=/path/to/ginac

The PKG_CONFIG and PKG_CONFIG_PATH environmental variables are required as a part of the pkg-config utility required to install Ginac. I used Fink, which is why you see the /sw directory.

Build

The build process is the usual, with some additional steps/targets:

$ ./configure  # <-- or, your configure wrapper script
$ make
$ make install

$ make check  # <-- confirm that Ginac was built correctly

$ make html   # <-- make html documentation
$ make dvi    # <-- make dvi documentation
$ make ps     # <-- make postscript documentation
$ make pdf    # <-- make PDF documentation

References

Ginac main page - http://www.ginac.de/