Install the binary distribution xerces-c2_1_0-xxx.tar.gz by extracting the files
from the compressed archive; where 'xxx' is the corresponding UNIX platform.
For example:
 |  |  |
 |
gunzip xerces-c2_1_0-linux.tar.gz
tar -xvf xerces-c2_1_0-linux.tar
|  |
 |  |  |
This will create an 'xerces-c2_1_0-linux' sub-directory
containing the Xerces-C++ binary distribution.
 | On Solaris, please use gtar instead of tar. See
FAQ for more information. |
You will need to add the
xerces-c2_1_0-linux/bin directory to your PATH environment variable:
For Bourne Shell, K Shell or Bash, type:
 |  |  |
 | export PATH="$PATH:$HOME/xerces-c2_1_0-linux/bin" |  |
 |  |  |
For C Shell, type:
 |  |  |
 | setenv PATH "$PATH:$HOME/xerces-c2_1_0-linux/bin" |  |
 |  |  |
If you wish to make this setting permanent, you need to change
your profile by changing your setup files which can be either .profile or .kshrc.
In addition, you will also need to set the library search path.
(LIBPATH on AIX, LD_LIBRARY_PATH on Solaris and Linux, SHLIB_PATH on HP-UX).
For Bourne Shell, K Shell or Bash, type:
 |  |  |
 |
export LIBPATH=$XERCESCROOT/lib:$LIBPATH (on AIX)
export LD_LIBRARY_PATH=$XERCESCROOT/lib:$LD_LIBRARY_PATH (on Solaris, Linux)
export SHLIB_PATH=$XERCESCROOT/lib:$SHLIB_PATH (on HP-UX) |  |
 |  |  |
For C Shell, type:
 |  |  |
 |
setenv LIBPATH "$XERCESCROOT/lib:$LIBPATH" (on AIX)
setenv LD_LIBRARY_PATH "$XERCESCROOT/lib:$LD_LIBRARY_PATH" (on Solaris, Linux)
setenv SHLIB_PATH "$XERCESCROOT/lib:$SHLIB_PATH" (on HP-UX) |  |
 |  |  |
The binary distribution has the built parser library and some samples executables.
Please refer to the Samples for how to run the samples.