[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
B.0.1 Configuring a package that uses GiNaC
The directory where the GiNaC libraries are installed needs
to be found by your system's dynamic linkers (both compile- and run-time
ones). See the documentation of your system linker for details. Also
make sure that ‘ginac.pc’ is in pkg-config
's search path,
See (*manpages*)pkg-config.
The short summary below describes how to do this on a GNU/Linux system.
Suppose GiNaC is installed into the directory ‘PREFIX’. To tell the linkers where to find the library one should
-
edit ‘/etc/ld.so.conf’ and run
ldconfig
. For example,# echo PREFIX/lib >> /etc/ld.so.conf # ldconfig
-
or set the environment variables
LD_LIBRARY_PATH
andLD_RUN_PATH
$ export LD_LIBRARY_PATH=PREFIX/lib $ export LD_RUN_PATH=PREFIX/lib
-
or give a ‘-L’ and ‘--rpath’ flags when running configure,
for instance:
$ LDFLAGS='-Wl,-LPREFIX/lib -Wl,--rpath=PREFIX/lib' ./configure
To tell pkg-config
where the ‘ginac.pc’ file is,
set the PKG_CONFIG_PATH
environment variable:
$ export PKG_CONFIG_PATH=PREFIX/lib/pkgconfig |
Finally, run the configure
script
$ ./configure |