Chinaunix

标题: 求助AIX工具xerces-c2.7安装无法通过! [打印本页]

作者: fengyuliuxiao    时间: 2010-09-07 18:18
标题: 求助AIX工具xerces-c2.7安装无法通过!
请教高手,在安装xerces-c2.7的时候,始终报以下错误:
generating XercesMessages_en_US.res
exec(): 0509-036 Cannot load program genrb because of the following errors:
        0509-150   Dependent module /ffcs/dev_kit/icu/source/lib/libicutu.a(shr.o) could not be loaded.
        0509-153   File /ffcs/dev_kit/icu/source/lib/libicutu.a is not an archive or
                   the file could not be read properly.
        0509-026 System error: Cannot run a file that does not have a valid format.
gmake[2]: *** [XercesMessages_en_US.res] Error 255
gmake[1]: *** [messageloaders] Error 2
gmake: *** [Util] Error 2
其中ICU和VAC都已经安装OK,但是这个无论如何始终编译不过去,请高手帮忙知道,谢谢!
作者: emperor    时间: 2010-09-07 20:32
这个对你有启发吗:

http://www-01.ibm.com/support/do ... OCSSEQTP&mync=R
作者: 慕鸿霄    时间: 2010-09-07 20:41
目录下有没有那个库文件啊
xlc编译的啊?
这东西都是按照readme 来
作者: yddll    时间: 2010-09-07 22:19
/ffcs/dev_kit/icu/source/lib/libicutu.a这个玩意儿不对路?
作者: ivovoto    时间: 2010-09-08 01:09
给你个步骤,几年前帮一个应用开发商做测试,具体xerces版本搞忘了,你最好先看一下xerces的readme:

installation gnu make:

cd /make-3.81
./configure
make
make check
make install
make clean

下面是xerces编译测试:

export PATH=$PATH:/usr/vac/bin:/usr/vacpp/bin
export XERCESCROOT=/tmp/xerces/xerces-c-aix_510_64-xlc_60_050623
cd /tmp/xerces/xerces-c-aix_510_64-xlc_60_050623/samples
./runConfigure -p aix -c xlc_r -x xlC_r -r dce -b 64
make
作者: fengyuliuxiao    时间: 2010-09-08 16:57
目录下有没有那个库文件啊
xlc编译的啊?
这东西都是按照readme 来
-------------------
这个需要什么库文件呢?我安装了VAC6这个。
作者: fengyuliuxiao    时间: 2010-09-08 16:58
/ffcs/dev_kit/icu/source/lib/libicutu.a这个玩意儿不对路?
------------------
就是这个玩意儿,但是不知道这个东西是为什么导致不对路
作者: fengyuliuxiao    时间: 2010-09-10 11:14
自己慢慢摸索,找到我这台机器安装不成功的原因了:
是genrb没有启动,which genrb,然后看看系统是调用哪个genrb,如果是系统自带的,要改为自己路径下的genrb,一般在$ICUROOT/bin下;必要的话还要查看一下genrb的依赖文件路径是否也在PATH里,如没有再把相应的路径添加到相应的PATH中去
作者: fengyuliuxiao    时间: 2010-09-10 11:15
另外,在安装过程中,出现了以下低级错误,呵呵,可能是新手才能出现的,将解决办法一一呈上:
安装过程中遇到以下错误
ld: 0706-006 Cannot find or open library file: -l xerces-c
        ldpen(): A file or directory in the path name does not exist.
gmake[1]: *** [/ffcs/dev_kit/xerces-c-src_2_7_0/lib/libxerces-depdom27.0.a] Error 255
gmake[1]: Target `ALL' not remade because of errors.
gmake[1]: Leaving directory `/ffcs/dev_kit/xerces-c-src_2_7_0/obj'
gmake: *** [/ffcs/dev_kit/xerces-c-src_2_7_0/lib/libxerces-c27.0.a] Error 2
是因为VAC编译器的lib目录没有加到环境变量当中。将/usr/vacpp/lib:/usr/vac
/lib:都加入到LIBPATH变量中。其中/usr/vac/lib是VAC关于C的库。/usr/vacpp/lib是VAC关于C++的库




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2