2009-10-17 51 views
0

请参阅第2部分列出最新的错误,同时安装模块continued post如何安装XML :: Xerces?

通常,当我尝试使用标准的CPAN>安装XML安装XML :: Xerces的CPAN模块:: Xercers比我收到以下错误消息某些处理后:

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 

Enviornment变量设置为/home/username/XML-Xerces-2.7.0-0/XML-Xerces-2.7.0-0/Xerces.pm后,请注意在这里我不知道我是否应该我的环境变量指向Xerces.pmXerces.cppXerces-extra.pmXerces.i,但现在我指着环境变量/home/username/XML-Xerces-2.7.0-0/XML-Xerces-2.7.0-0/Xerces.pm

设置环境变量,在我之后ntioned并进入cpan>install XML::Xerces我得到以下信息:

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 

注:我已经尝试下载XML::Xerces,并试图重新安装,无论是手动以及使用CPAN,但我得到上面提到的错误消息。

什么可能是可能的原因,什么可以建议转身照顾这个问题?

更新:即使在构建Xerces-C之后,XML :: Xerces模块也不会构建,并且会收到以下错误消息。

[[email protected] 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这里是我得到的错误,它说有somekind的版本不匹配的。

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 
+0

它给你的指示看起来很清楚。我不知道为什么要将环境变量设置为Perl模块的位置。 – 2009-10-17 02:45:04

+1

丽贝卡,是你吗? – Ether 2009-10-17 02:49:56

+2

谁是丽贝卡?我立即想到了瑞秋。 – innaM 2009-10-19 16:14:35

回答

3

下面是一条通用规则:任何名为“ROOT”的环境变量都是要求目录而不是文件。

但是,似乎没有安装Xerces库,在安装perl模块之前,库是必需的。我将引用您提供的输出的某些部分,因为你错过了为下一步做什么提示:


” ...... 这些教我如何找到Xerces的头文件,以及Xerces的动态库 ...”

“如果没有这些我无法找到用于 建立你的Xerces-C库”


所以config.status文件,你安装了Xerces-C吗?之后你会有更好的安装Perl模块的结果。

+0

我正在使用Unix操作系统。 – Rachel 2009-10-17 03:01:21

+1

XML :: Xerces附带的'README'文件提供了关于何处获取以及如何构建Xerces-C库的说明。 – mob 2009-10-17 04:21:35

+0

即使在安装Xerces-C库之后,我也无法完成XML :: Xerces模块的构建过程。 – Rachel 2009-10-19 14:39:27

-2

您是否尝试使用PPM来安装XML :: Xerces?