na_polun 发表于 2014-06-09 16:12

AIX系统升级后原来的perl脚本无法执行??

环境是这样的:
    原先的AIX版本是aix5308,升级到AIX5312后,原来可以执行的perl脚本执行报错,检查发现perl版本由V5.8.2升级到了V5.8.8.
以下是报错信息:
Can't load '/usr/opt/perl5/lib/5.8.8/aix-thread-multi/auto/DB_File/DB_File.so' for module DB_File:      0509-022 Cannot load module /usr/opt/perl5/lib/5.8.8/aix-thread-multi/auto/DB_File/DB_File.so.
      0509-150   Dependent module libdb.a(libdb-3.3.so.0) could not be loaded.
      0509-022 Cannot load module libdb.a(libdb-3.3.so.0).
      0509-026 System error: A file or directory in the path name does not exist.
      0509-022 Cannot load module /usr/opt/perl5/lib/5.8.8/aix-thread-multi/auto/DB_File/DB_File.so.
      0509-150   Dependent module /usr/opt/perl5/lib/5.8.8/aix-thread-multi/auto/DB_File/DB_File.so could not be loaded. at /usr/opt/perl5/lib/5.8.8/aix-thread-multi/XSLoader.pm line 70.
at /usr/opt/perl5/lib/5.8.8/aix-thread-multi/DB_File.pm line 251
Compilation failed in require at idle_mon.pl line 410.
BEGIN failed--compilation aborted at idle_mon.pl line 410.


于是想重新编译安装Berkeley DB与DB_File,但编译也报错:
以下是安装Berkeley DB的报错:

checking if --with-mutex=MUTEX option specified... no
checking if --with-tcl=DIR option specified... no
checking if --with-uniquename=NAME option specified... no
checking for chmod... chmod
checking for cp... cp
checking for ln... ln
checking for mkdir... mkdir
checking for rm... rm
checking for sh... /usr/bin/sh
checking for a BSD-compatible install... ../dist/install-sh -c
checking whether the C compiler works... no
configure: error: in `/home/monitor/db-4.8.30/build_unix':
configure: error: C compiler cannot create executables
See `config.log' for more details.

注:XLC的版本是11.1.0.0,升级前后都是这个版本,没有变化。

小弟到这里完全不知道怎么弄了,只会照着官方文档装一下Berkeley DB与DB_File之类的,一旦报错,就无从下手了。(PS:OS回退后,perl脚本还是可以跑的)

大神帮忙看看,如何解决??

hello_unix 发表于 2014-06-11 00:24

env 输出看看

mike79 发表于 2014-06-11 10:24

回复 1# na_polun

checking whether the C compiler works... no

是不是没有C编译器?C编译器和C运行时环境是两个概念。
你原来也是在这台机器上面编译过的,还是直接就拿过来用的?
   

na_polun 发表于 2014-06-11 15:34

C编译器有的呀!原来就装有XLC的,升级前能编译,肯定有编译器的。

orian 发表于 2014-06-20 09:52

checking whether the C compiler works... no

不是要你看config.log么,拍出来看看
页: [1]
查看完整版本: AIX系统升级后原来的perl脚本无法执行??