zoukankan      html  css  js  c++  java
  • 打印出二进制文件运行所需的链接库ldd

    ldd的作用是打印可执行二进制文件运行时所需的链接库.如:
    -bash-3.00$ ldd /export/home/oracle/oracle10g/product/10.2.0/db_1/bin/sqlplus
            libsqlplus.so =>         /export/home/oracle/oracle10g/product/10.2.0/db_1/lib/libsqlplus.so
            libclntsh.so.10.1 =>     /export/home/oracle/oracle10g/product/10.2.0/db_1/lib/libclntsh.so.10.1
            libnnz10.so =>   /export/home/oracle/oracle10g/product/10.2.0/db_1/lib/libnnz10.so
            libkstat.so.1 =>         /lib/64/libkstat.so.1
            libnsl.so.1 =>   /lib/64/libnsl.so.1
            libsocket.so.1 =>        /lib/64/libsocket.so.1
            libgen.so.1 =>   /lib/64/libgen.so.1
            libdl.so.1 =>    /lib/64/libdl.so.1
            libsched.so.1 =>         /usr/lib/64/libsched.so.1
            libc.so.1 =>     /lib/64/libc.so.1
            librt.so.1 =>    /lib/64/librt.so.1
            libaio.so.1 =>   /lib/64/libaio.so.1
            libm.so.2 =>     /lib/64/libm.so.2
            libthread.so.1 =>        /lib/64/libthread.so.1
            libmp.so.2 =>    /lib/64/libmp.so.2
            libmd.so.1 =>    /lib/64/libmd.so.1
            libscf.so.1 =>   /lib/64/libscf.so.1
            libdoor.so.1 =>  /lib/64/libdoor.so.1
            libuutil.so.1 =>         /lib/64/libuutil.so.1
    如果一个可执行二进制文件运行时提示找不到某某.so文件,就可以用ldd来看看这个二进制文件运行所需的链接库文件,然后再去看看LC_LIBRARY_PATH的值是否设置正确,去对应的lib目录下再去找找看.

  • 相关阅读:
    [C++空间分配]new运算符、operator new、placement new的区别于联系
    [C++STL]stl源码剖析
    [C++基础]在构造函数内部调用构造函数
    Eclipse Memory Analyzer
    zookeeper 学习 zookeeper下载部署
    Doracle.jdbc.J2EE13Compliant=true
    zookeeper 学习 状态机复制的共识算法
    java -d
    轮盘选择法
    OPENJDK 源码编译
  • 原文地址:https://www.cnblogs.com/leipei2352/p/2076167.html
Copyright © 2011-2022 走看看