The UNIX system can recognize development libraries when they are placed in the system LDPATH. The LDPATH on most systems is usually /lib:/usr/lib. Some systems may include additional library directories such as /usr/slib, /usr/ccs/lib, and so on. When a library file has a name such as "libname.a",
"libname.so", or "libname.sl", the UNIX system recognizes it by default as long as it is in the library path.
The Centrus Spatial+ library files currently have the "lib" prefix as part of their names. Previous versions of Spatial+ library files did not use this prefix. For example, "spatial.a" (a library file for a previous version) is now named "libspatial.a". Although code written using the old library names still works, Precisely recommends you write new code using the new "lib" file names.
There are two ways of installing a library in the library path.
- You can modify the library path to include the library you wish to install. For example:
$ export LDPATH=$LDPATH:/usr/centrus/geostan/
Note: Note that this does not work on all UNIX systems. - You can move the library into a common area which is already part of the library path. For example:
$ mv whizzocalc.a /usr/lib/libwhizzocalc.a