You are viewing a plain text version of this content. The canonical link for it is here.
Posted to p-dev@xerces.apache.org by "Jason E. Stewart" <ja...@openinformatics.com> on 2004/06/20 11:00:18 UTC

Re: installing XML-Xerces-2.3.0-4 on linux, XercesVersion.hpp error

"Karen E. Medina" <km...@alexia.lis.uiuc.edu> writes:

> OS: Redhat Linux
> I installed xerces-c-src_2_3_0
>
> Then while installing XML-Xerces-2.3.0-4, I keep getting this error about
> XercesVersion.hpp
>
> The commands I used:
>   tar zxvf XML-Xerces-2.3.0-4.tar.tar
>   cd XML-Xerces-2.3.0-4
>   export XERCESCROOT=/home/<me>/bin/xerces-c-src_2_3_0
>   export XERCES_INCLUDE=/home/<me>/bin/xerces
>   export XERCES_LIB=/home/<me>/bin
>   perl Makefile.PL PREFIX=/home/<me>/bin/xerces
>
> and variations of the above. I consistently get the same error:
>
> Using XERCES_LIB = /home/<me>/bin
> Using XERCES_INCLUDE = /home/<me>/bin/xerces
> using config file:
> /home/<me>/bin/xerces-c-src_2_3_0/src/xercesc/config.status
>
> Found CXX      = g++
> Found CXXFLAGS =  -w -DXML_USE_NATIVE_TRANSCODER
> -DXML_USE_INMEM_MESSAGELOADER -DXML_USE_PTHREADS
> -DXML_USE_NETACCESSOR_SOCKET
> Found LDFLAGS  =    
> Couldn't find XercesVersion.hpp in your include directory 
> /home/<me>/bin/xerces at Makefile.PL line 168, <CONF> line 185.

Hi Karen,

Sorry for responding so late. If you are still having this problem,
you need to correctly set your XERCES_INCLUDE and XERCES_LIB
environment variables. You have set them both to point at your bin/
directory. 

I agree the README file could be more explicit on this. The
XERCES_INCLUDE variable must point to the directory that has the
header files for Xerces-C (the .hpp files), if you have installed it,
it is likely to be /usr/local/include/. While the XERCES_LIB variable
should point to the directory which contains the Xerces-C dynamic
library (the .so file), which again is likely to be /usr/local/lib.

Cheers,
jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org