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

[email protected] (Jason E. Stewart)
Newsgroups gmane.text.xml.xerces-p.devel
Message-ID <[email protected]>
"Karen E. Medina" <[email protected]> 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.