Ginac: Difference between revisions
From charlesreid1
No edit summary |
No edit summary |
||
| Line 5: | Line 5: | ||
== Dependencies == | == Dependencies == | ||
In order to install Ginac, the <code>pkg-config</code> 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. | In order to install Ginac, the <code>pkg-config</code> 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 == | == Configure == | ||
| Line 13: | Line 13: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
export PKG_CONFIG=/sw/bin/pkg-config | export PKG_CONFIG=/sw/bin/pkg-config | ||
export PKG_CONFIG_PATH=:/ | export PKG_CONFIG_PATH=:/path/to/cln/lib/pkgconfig:/sw/lib/pkgconfig:/usr/local/lib/pkgconfig | ||
./configure \ | ./configure \ | ||
| Line 19: | Line 19: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
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. | 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. | ||
== Build == | == Build == | ||
Revision as of 22:33, 14 March 2011
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/