Pregunta

Por favor, véase la Parte 2, que la lista de noticias de errores durante la instalación del módulo permanencia en el puesto .

Normalmente, cuando intento instalar módulo XML :: CPAN Xerces utilizando CPAN estándar> instalar XML :: Xercers de lo que recibo siguiente mensaje de error después de algún procesamiento:

XML-Xerces-2.7.0-0/samples/SEnumVal.pl
...
XML-Xerces-2.7.0-0/postSource.pl
XML-Xerces-2.7.0-0/xerces-headers.txt
Removing previously used /home/adoshi/.cpan/build/XML-Xerces-2.7.0-0

  CPAN.pm: Going to build J/JA/JASONS/XML-Xerces-2.7.0-0.tar.gz


   WARNING

You have not defined any of the following environment variables:
   XERCESCROOT
   XERCES_LIB
   XERCES_INCLUDE

These instruct me how to locate the Xerces header files, and the
Xerces dynamic library. If they are installed in a standard system
directory, I will located them without those variables.

However, if they have been installed in a non-standard location
(e.g. '/usr/include/xerces'), then I will need help. See the README
for more info.

Proceeding ...

   WARNING

You have not defined any of the following environment variables:
   XERCESCROOT
   XERCES_CONFIG

Without these I cannot find the config.status file that was used to
build your Xerces-C library. Without that file, I may not be able to properly
build the C++ glue files that come with Xerces.pm.

Proceeding anyway ...
Couldn't find XercesVersion.hpp in your include directory  at Makefile.PL line 1                                                                             88.
Running make test
  Make had some problems, maybe interrupted? Won't test
Running make install
  Make had some problems, maybe interrupted? Won't install

Después de definir las variables de Enviornment a /home/username/XML-Xerces-2.7.0-0/XML-Xerces-2.7.0-0/Xerces.pm, nota aquí no estoy seguro de si debo señalar que mi variable de entorno a Xerces.pm o Xerces.cpp o Xerces-extra.pm o Xerces.i, pero por ahora estoy señalando las variables de entorno a /home/username/XML-Xerces-2.7.0-0/XML-Xerces-2.7.0-0/Xerces.pm

Después de establecer las variables de entorno como se ha mencionado y entrar cpan>install XML::Xerces consigo siguiente mensaje:

CPAN: Storable loaded ok
Going to read /home/username/.cpan/Metadata
  Database was generated on Fri, 16 Oct 2009 18:27:06 GMT
Running install for module XML::Xerces
Running make for J/JA/JASONS/XML-Xerces-2.7.0-0.tar.gz
CPAN: Digest::MD5 loaded ok
CPAN: Compress::Zlib loaded ok
Checksum for /home/adoshi/.cpan/sources/authors/id/J/JA/JASONS/XML-Xerces-2.7.0-0.tar.gz ok
Scanning cache /home/adoshi/.cpan/build for sizes
XML-Xerces-2.7.0-0/
...
XML-Xerces-2.7.0-0/postSource.pl
XML-Xerces-2.7.0-0/xerces-headers.txt
Removing previously used /home/adoshi/.cpan/build/XML-Xerces-2.7.0-0

  CPAN.pm: Going to build J/JA/JASONS/XML-Xerces-2.7.0-0.tar.gz

Using XERCES_LIB = /home/adoshi/XML-Xerces-2.7.0-0/XML-Xerces-2.7.0-0/Xerces.pm
using XERCES_CONFIG: /home/adoshi/XML-Xerces-2.7.0-0/XML-Xerces-2.7.0-0/Xerces.pm

 - Found CXX      =
 - Found CXXFLAGS =
 - Found LDFLAGS  =

Couldn't find XercesVersion.hpp in your include directory  at Makefile.PL line 188, <CONF> line 6823.
Running make test
  Make had some problems, maybe interrupted? Won't test
Running make install
  Make had some problems, maybe interrupted? Won't install

Nota: descarga he tratado XML::Xercesand tratando de instalarlo de nuevo, tanto de forma manual, así como el uso de CPAN, pero estoy recibiendo por encima de mensaje de error mencionado.

¿Cuál puede ser la razón posible y lo que puede ser sugerido a su vez en torno a hacerse cargo de este problema?

Actualizar . Incluso después de la construcción de Xerces-C, módulo XML :: Xerces no está construyendo y estoy recibiendo mensaje de error

[adoshi@upc01.dev XML-Xerces-2.7.0-0]$ perl Makefile.PL
Using XERCES_LIB = /adoshi/lib
Using XERCES_INCLUDE = /adoshi/include/xerces

   WARNING

You have defined the XERCESCROOT variable, but the file:

  XERCESCROOT/src/xercesc/config.status

 does not seem to point to the config.status file that was used to
 build your Xerces-C library. Without that file, I may not be able to
 properly build the C++ glue files that come with Xerces.pm.

Proceeding anyway ...
Couldn't find XercesVersion.hpp in your include directory /adoshi/include/xerces at Makefile.PL line 188.

Update2 Aquí está el error que estoy recibiendo, se dice que hay somekind de conflicto de versiones.

    Using XERCES_LIB = /home/adoshi/XML-Parser/Parser2/xerces-c_2_8_0-hppa-hpux-acc_3(1)/xerces-c_2_8_0-hppa-hpux-acc_3/lib
Using XERCES_INCLUDE = /home/adoshi/XML-Parser/Parser2/xerces-c_2_8_0-hppa-hpux-acc_3(1)/xerces-c_2_8_0-hppa-hpux-acc_3/include

   WARNING

You have defined the XERCESCROOT variable, but the file:

  XERCESCROOT/src/xercesc/config.status

 does not seem to point to the config.status file that was used to
 build your Xerces-C library. Without that file, I may not be able to
 properly build the C++ glue files that come with Xerces.pm.

Proceeding anyway ...
Using Xerces-C version info from /home/adoshi/XML-Parser/Parser2/xerces-c_2_8_0-hppa-hpux-acc_3(1)/xerces-c_2_8_0-hppa-hpux-acc_3/include/xercesc/util/XercesVersion.hpp
      *** Version Mismatch ***

You are attempt to build XML::Xerces-2.7.0-0 using Xerces-C-2.8.0,
this will most likely fail, so I am aborting.

You must use Xerces-C-2.7.0
¿Fue útil?

Solución

Aquí hay una regla general:. Cualquier variable de entorno que se llama algo así como "ROOT" está pidiendo un directorio, no un archivo

Sin embargo, no parece que haya instalado la biblioteca Xerces, que es necesaria antes de instalar el módulo Perl. Voy a citar algunas porciones de la salida que ya ha proporcionado, ya que la pista se ha perdido en cuanto a qué hacer a continuación:


"... Estos instruirme cómo localizar los archivos de cabecera Xerces, y la biblioteca dinámica Xerces ..."

"Sin ellos no puedo encontrar el archivo config.status que se utilizó para construir su biblioteca Xerces-C "


Así que, ¿ha instalado Xerces-C ? Vas a tener resultados mucho mejores de instalar el módulo Perl después de eso.

Otros consejos

¿Usted intentó utilizar el PPM para instalar XML :: Xerces?

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top