Xerces 2.5 installation

This is what we did to successfully install Xerces. No guarantees, but It worked for us. -John rose@cs.utk.edu
----------------------

Set environment variables /bin/csh for root on Solaris 9

# printenv
CC=/usr/local/bin/gcc
LD_LIBRARY_PATH=/usr/local/lib
PATH=/usr/local/bin:/home/oracle/bin:/usr/ccs/bin:/usr/openwin/lib:/usr/ucb:/usr/bin
SHELL=/bin/csh

Xerces-c is the actual Xerces libraries written in C++. In order to use them in PERL after you install Xerces-c you install the PERL wrapper.
Note:
Xerces-c 2.5 may have trouble with gcc 3.4.*, we used gcc 3.3. GNU stuff is in /usr/local/bin

Conversely, Xerces-p 2.7 has install errors on Solaris with gcc 3.3. You will need to use gcc 3.4.

Install Xerces-c (http://xml.apache.org/xerces-c/)

1) Xerces-c into /usr/local
2) /usr/local/bin/tar zxvpf Xerces-c
3) XERCESCROOT=/usr/local/xerces-c-src_2_5_0
    export XERCESCROOT
4) 'configure' is in /usr/local/xerces-c-src_2_5_0/src/xercesc
5) autoconf (required because of "sed: file conftest.s1 line 8: Unterminated> `s' command" error in pre-bundled configure file)
6) runConfigure -psolaris -cgcc -xg++ -minmem -nsocket -tnative -rpthread
7) /usr/local/bin/make (GNU Make 3.80)

Install XML-Xerces-2.5.0-0.tar.gz (PERL) (http://xml.apache.org/xerces-p/)

1) /usr/local/bin/tar -zxvpf XML-Xerces-2.5.0-0.tar.gz (within /usr/local)
2) /usr/local/bin/perl Makefile.PL
3) /usr/local/bin/make
4) /usr/local/bin/make install

Note:
"Remember, you *must* compile XML-Xerces with the same compiler that was used to compile the libxerces-c.so library. Which means you may need to compile Xerces-C from source.

Also, all versions of XML-Xerces prior to 2.6 have *huge* memory leaks."
from Jason Stewart (one of Xerces developers)

For help with XML::Xerces (xerces-p) email p-dev xerces.apache.org

JOHN ROSE
Knoxville, Tennessee
rose@cs.utk.edu