2012-04-03 133 views
0

我在使用生产中的modperl设置(在AIX 5.3上)下使用XML :: Parser时遇到问题。它工作正常,在发展的同时,出现以下错误失败生产:尝试在modperl2下使用XML :: Parser时出错 - 无法加载模块

[Tue Apr 03 08:44:03 2012] [error] Can't load '/wload/es1p/app/perl/lib/site_perl/5.10.1/aix/auto/XML/Parser/Expat/Expat.so' for mo 
ule XML::Parser::Expat: Could not load module /wload/es1p/app/perl/lib/site_perl/5.10.1/aix/auto/XML/Parser/Expat/Expat.so.\n\tDepe 
dent module /wload/es1p/app/usr/local/apache2/lib/libexpat.a(libexpat.so.1) could not be loaded.\n\tMember libexpat.so.1 is not fou 
d in archive \nCould not load module /wload/es1p/app/perl/lib/site_perl/5.10.1/aix/auto/XML/Parser/Expat/Expat.so.\n\tDependent mod 
le /wload/es1p/app/perl/lib/site_perl/5.10.1/aix/auto/XML/Parser/Expat/Expat.so could not be loaded. at /wload/es1p/app/perl/lib/5. 
0.1/aix/DynaLoader.pm line 200.\n at /wload/es1p/app/perl/lib/site_perl/5.10.1/aix/XML/Parser.pm line 18\nCompilation failed in req 
ire at /wload/es1p/app/perl/lib/site_perl/5.10.1/aix/XML/Parser.pm line 18.\nBEGIN failed--compilation aborted at /wload/es1p/app/p 
rl/lib/site_perl/5.10.1/aix/XML/Parser.pm line 22.\nCompilation failed in require at /wload/es1p/app/perl/lib/site_perl/5.10.1/XML/ 
Path/XMLParser.pm line 7.\nBEGIN failed--compilation aborted at /wload/es1p/app/perl/lib/site_perl/5.10.1/XML/XPath/XMLParser.pm li 
e 7.\nCompilation failed in require at /wload/es1p/app/perl/lib/site_perl/5.10.1/XML/XPath.pm line 13.\nBEGIN failed--compilation a 
orted at /wload/es1p/app/perl/lib/site_perl/5.10.1/XML/XPath.pm line 13.\nCompilation failed in require at /wload/es1p/app/perl/lib 
site_perl/5.10.1/Net/SAML2/IdP.pm line 23.\nBEGIN failed--compilation aborted at /wload/es1p/app/perl/lib/site_perl/5.10.1/Net/SAML 
/IdP.pm line 23.\nCompilation failed in require at /wload/es1p/app/perl/lib/site_perl/5.10.1/Net/SAML2.pm line 69.\nBEGIN failed--c 
mpilation aborted at /wload/es1p/app/perl/lib/site_perl/5.10.1/Net/SAML2.pm line 69.\nCompilation failed in require at /wload/es1p/ 
pp/usr/local/apache2/perl-bin/sso.pl line 4.\nBEGIN failed--compilation aborted at /wload/es1p/app/usr/local/apache2/perl-bin/sso.pl 

的外籍/外籍-devel的库使用一个包(同一个在开发和生活)安装到/opt/freeware/lib并都表现出相同的输出从ldd Expat.so

Expat.so needs: 
    /usr/lib/libc.a(shr.o) 
    /opt/freeware/lib/libexpat.a(libexpat.so.1) 
    /unix 
    /usr/lib/libcrypt.a(shr.o) 

我都试过在我们的点文件,并在我们的mod_env配置,但没有运气设置LIBPATH。我不希望有人知道确切的答案,但我已经没有想法,我可以尝试,所以我希望有一些建议尝试。

编辑:我还应该指出,使用XML :: Parser的相同脚本完全可以像我们的在线服务器上的普通cgi-bin脚本一样工作。

回答

0

一个想法:也许有两个不同的XML :: Parser安装在您的prod服务器上。你的CGI选择一个,你的脚本选择另一个?

从脚本(在prod和dev)和从您的工作CGI打印出@INC并比较结果。

关于,