免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3757 | 回复: 4
打印 上一主题 下一主题

hpux 大虾 请进 Can't open sharedlibrary!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-04-02 11:40 |只看该作者 |倒序浏览
我在开发机 HPv2200a+ informix  编译、执行都无问题!
开发机环境:
B3901BA   B.11.11.04     HP C/ANSI C Developer\'s Bundle for
HP_UX 11.i (S800)

$INFORMIX=/home/ids200; $SHLIB_PATH=/usr/lib:/lib:/home/ids2000/lib/esql:/home/ids2000/lib
但将程序ftp到测试机HP-UX v22_bcv 执行时报错!!
/usr/lib/dld.sl:
Can\'t open sharedlibrary: / home/ids2000/lib/esql/libifglx.sl
/usr/lib/dld.sl:
No such file or directory
Abort(coredump)

测试机环境:
$INFORMIX=/home/informix
$SHLIB_PATH=/usr/lib:/lib:/home/informix/lib/esql:/home/informix/lib

其实*.so 或 *.sl 都在$SHLIB_PATH 目录下,为什么在测试机偏偏要到
/home/ids2000目录下找!!

是不是少了补丁?

论坛徽章:
0
2 [报告]
发表于 2003-04-02 21:19 |只看该作者

hpux 大虾 请进 Can't open sharedlibrary!!

原帖由 \"dahoo\" 发表:
我在开发机 HPv2200a+ informix  编译、执行都无问题!
开发机环境:
B3901BA   B.11.11.04     HP C/ANSI C Developer\'s Bundle for
HP_UX 11.i (S800)

$INFORMIX=/home/ids200; $SHLIB_PATH=/usr/lib:/lib:/home/ids2000/lib/esql:/home/ids2000/lib
但将程序ftp到测试机HP-UX v22_bcv 执行时报错!!
/usr/lib/dld.sl:
Can\'t open sharedlibrary: / home/ids2000/lib/esql/libifglx.sl
/usr/lib/dld.sl:
No such file or directory
Abort(coredump)

测试机环境:
$INFORMIX=/home/informix
$SHLIB_PATH=/usr/lib:/lib:/home/informix/lib/esql:/home/informix/lib

其实*.so 或 *.sl 都在$SHLIB_PATH 目录下,为什么在测试机偏偏要到
/home/ids2000目录下找!!

是不是少了补丁?
Hi,

This may be caused by the binary (your program) is compiled on your 开发机 HPv2200a+, where the /home/ids2000/lib/esql/libifglx.sl shared library has been compiled into the binary. Now when you run the binary on a different server ( 测试机HP-UX v22_bcv ), it is expecting to find the libary in the same location (/home/ids2000/lib/esql/).

You can solve this problem with either:
recompile your program on 测试机HP-UX v22_bcv

or:
copy the shared libary (libifglx.sl) to 测试机HP-UX v22_bcv

Hope this helps.

论坛徽章:
0
3 [报告]
发表于 2003-04-02 21:20 |只看该作者

hpux 大虾 请进 Can't open sharedlibrary!!

原帖由 \"dahoo\" 发表:
我在开发机 HPv2200a+ informix  编译、执行都无问题!
开发机环境:
B3901BA   B.11.11.04     HP C/ANSI C Developer\'s Bundle for
HP_UX 11.i (S800)

$INFORMIX=/home/ids200; $SHLIB_PATH=/usr/lib:/lib:/home/ids2000/lib/esql:/home/ids2000/lib
但将程序ftp到测试机HP-UX v22_bcv 执行时报错!!
/usr/lib/dld.sl:
Can\'t open sharedlibrary: / home/ids2000/lib/esql/libifglx.sl
/usr/lib/dld.sl:
No such file or directory
Abort(coredump)

测试机环境:
$INFORMIX=/home/informix
$SHLIB_PATH=/usr/lib:/lib:/home/informix/lib/esql:/home/informix/lib

其实*.so 或 *.sl 都在$SHLIB_PATH 目录下,为什么在测试机偏偏要到
/home/ids2000目录下找!!

是不是少了补丁?
Hi,

This may be caused by the binary (your program) is compiled on your 开发机 HPv2200a+, where the /home/ids2000/lib/esql/libifglx.sl shared library has been compiled into the binary. Now when you run the binary on a different server ( 测试机HP-UX v22_bcv ), it is expecting to find the libary in the same location (/home/ids2000/lib/esql/).

You can solve this problem with either:
recompile your program on 测试机HP-UX v22_bcv

or:
copy the shared libary (libifglx.sl) to 测试机HP-UX v22_bcv

Hope this helps.

论坛徽章:
0
4 [报告]
发表于 2003-04-03 09:31 |只看该作者

hpux 大虾 请进 Can't open sharedlibrary!!

在你的编译器中加-bstatic试一下,强制静态链接libifglx.sl 。

论坛徽章:
0
5 [报告]
发表于 2003-04-03 20:04 |只看该作者

hpux 大虾 请进 Can't open sharedlibrary!!

谢谢两位! 正在尝试!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP