免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 6204 | 回复: 4

[安装配置] AIX系统升级后原来的perl脚本无法执行?? [复制链接]

论坛徽章:
0
发表于 2014-06-09 16:12 |显示全部楼层
环境是这样的:
    原先的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脚本还是可以跑的)

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

论坛徽章:
0
发表于 2014-06-11 00:24 |显示全部楼层
env 输出看看

论坛徽章:
12
CU大牛徽章
日期:2013-09-18 15:20:4815-16赛季CBA联赛之同曦
日期:2016-02-01 20:28:25IT运维版块每日发帖之星
日期:2015-11-10 06:20:00操作系统版块每日发帖之星
日期:2015-10-28 06:20:002015亚冠之塔什干棉农
日期:2015-06-04 11:41:56丑牛
日期:2014-05-10 16:11:33技术图书徽章
日期:2013-09-23 13:25:58CU大牛徽章
日期:2013-09-18 15:21:17CU大牛徽章
日期:2013-09-18 15:21:12CU大牛徽章
日期:2013-09-18 15:21:06CU大牛徽章
日期:2013-09-18 15:20:58数据库技术版块每日发帖之星
日期:2016-02-08 06:20:00
发表于 2014-06-11 10:24 |显示全部楼层
回复 1# na_polun

checking whether the C compiler works... no

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

论坛徽章:
0
发表于 2014-06-11 15:34 |显示全部楼层
C编译器有的呀!原来就装有XLC的,升级前能编译,肯定有编译器的。

论坛徽章:
0
发表于 2014-06-20 09:52 |显示全部楼层
checking whether the C compiler works... no

不是要你看config.log么,拍出来看看
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP