Question

S'il vous plaît voir la partie 2, qui liste les dernières erreurs lors de l'installation du module a continué après .

Normalement, lorsque je tente d'installer XML :: Xerces module CPAN en utilisant CPAN standards> Installer XML :: Xercers que je reçois le message suivant d'erreur après un traitement:

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

après le réglage des variables enviornment à /home/username/XML-Xerces-2.7.0-0/XML-Xerces-2.7.0-0/Xerces.pm, notez ici ne suis pas sûr que je dois signaler ma variable d'environnement à Xerces.pm ou Xerces.cpp ou Xerces-extra.pm ou Xerces.i, mais pour l'instant je suis en montrant des variables d'environnement à /home/username/XML-Xerces-2.7.0-0/XML-Xerces-2.7.0-0/Xerces.pm

Après avoir défini les variables d'environnement comme mentionné et en entrant cpan>install XML::Xerces je reçois un message suivant:

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

Remarque: Je l'ai essayé de télécharger XML::Xercesand essayer d'installer à nouveau, à la fois manuellement ainsi que l'utilisation CPAN mais je obtenir un message d'erreur ci-dessus mentionné.

Quelle peut être la raison possible et ce qui peut être suggéré tourner autour de prendre soin de cette question?

Mise à jour :. Même après la construction Xerces-C, module XML :: Xerces ne construit pas et je reçois le message suivant d'erreur

[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 Voici l'erreur qui je reçois, il dit qu'il ya somekind de non-concordance de version.

    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
Était-ce utile?

La solution

Voici une règle générale:. Une variable d'environnement qui est nommé quelque chose comme « ROOT » se demande un répertoire, pas un fichier

Cependant, il ne semble pas que vous avez installé la bibliothèque Xerces, qui est nécessaire avant d'installer le module Perl. Je vais citer quelques portions de la sortie que vous avez fournies, comme l'indice que vous avez manqué à ce qu'il faut faire:


"... Ces me instruisent comment localiser les fichiers d'en-tête Xerces, et la bibliothèque dynamique Xerces ..."

"Sans cela, je ne peux pas trouver le fichier config.status qui a servi à construire votre bibliothèque Xerces-C "


Alors, avez-vous installé Xerces-C ? Vous aurez des résultats beaucoup mieux installer le module Perl après.

Autres conseils

Avez-vous essayer d'utiliser le PPM pour installer XML :: Xerces?

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top