Replacing LDD with otool on Mac OS X

Source: Internet
Author: User

Replacing LDD with otool on Mac OS X
  • Author: Liu Da-poechant (Zhong Chao)
  • Email: zhongchao. USTC # gmail.com (#-> @)
  • Blog: blog.csdn.net/poechant
  • Date: May 13Th, 2012

Commands frequently used in Linux on Mac OS Xldd, There will be the following prompt:

Michael:nginx michael$ ldd sbin/nginx-bash: ldd: command not found

If you ask melddI am not impatient either.lddYeslist dynamic dependencies(I guess ). Use on Mac OS Xotool -LTo replacelddSimple:

Michael:logs michael$ otool -L ../sbin/nginx
../sbin/nginx:
    /usr/lib/libpcre.0.dylib (compatibility version 1.0.0, current version 1.1.0)
    /usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 44.0.0)
    /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)

Enjoy it!

-

For more information, see blog.csdn.net/poechant.

-

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.