From charlesreid1

No edit summary
 
Line 11: Line 11:
You can build Ginac using the following configure line:
You can build Ginac using the following configure line:


<syntaxhighlight lang="bash">
<pre>
export PKG_CONFIG=/sw/bin/pkg-config
export PKG_CONFIG=/sw/bin/pkg-config
export PKG_CONFIG_PATH=:/path/to/cln/lib/pkgconfig:/sw/lib/pkgconfig:/usr/local/lib/pkgconfig
export PKG_CONFIG_PATH=:/path/to/cln/lib/pkgconfig:/sw/lib/pkgconfig:/usr/local/lib/pkgconfig
Line 17: Line 17:
./configure \
./configure \
     --prefix=/path/to/ginac
     --prefix=/path/to/ginac
</syntaxhighlight>
</pre>


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

Latest revision as of 01:16, 10 October 2017

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/