- 论坛徽章:
- 0
|
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. |
|