- 论坛徽章:
- 0
|
用GDB 调试程序,运行时提示找不到动态库,但是LD_LIBRARY_PATH 已经设定好啦,并且程序在gdb外面是可以运行的啊,各位帮忙看看
zhang@dehmelt-345: env|grep LD
LD_LIBRARY_PATH=/home/wzhang/solarisporting/sdk/3.0/sparc-sol8-32/lib
zhang@dehmelt-347: ls $LD_LIBRARY_PATH
libACE.so libicuuc.so.32 libvem.so
libACE.so.5.4.4 liblog4cxx.so libxerces-c.so
libicudata.so liblog4cxx.so.9 libxerces-c.so.26
libicudata.so.32 libsec.so libxml2.so.2
libicui18n.so libsoam_resources.so sec_soam_default.so
libicui18n.so.32 libsoambase.so
libicuuc.so libSoamDefaultSecurity.so
zhang@dehmelt-346: gdb SyncClient
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.8"...
(gdb) r
Starting program: /home/wzhang/solarisporting/sdk/3.0/samples/CPP/output/SyncClient
ld.so.1: /home/wzhang/solarisporting/sdk/3.0/samples/CPP/output/SyncClient: fatal: libsoambase.so: open failed: No such file or directory
Program terminated with signal SIGKILL, Killed.
The program no longer exists.
[ 本帖最后由 pippenwz 于 2006-5-12 11:42 编辑 ] |
|