7
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ldd equivalent on Mac OSX

Posted at

Macでldd使おうと思ったら無かった。


$ ldd
zsh: command not found: ldd

Macだと代わりにotoolというコマンドがあるらしい。

OTOOL(1)


NAME
       otool - object file displaying tool

SYNOPSIS
       otool [ option ...  ] [ file ...  ]

DESCRIPTION
       The  otool command displays specified parts of object files or libraries.  If the -m option is not used the file arguments may be of the form libx.a(foo.o), to request information about only that object file
       and not the entire library.   (Typically this argument must be quoted, ``libx.a(foo.o)'', to get it past the shell.)  Otool understands both Mach-O (Mach object) files and universal file formats.  Otool  can
       display the specified information in either its raw (numeric) form (without the -v flag), or in a symbolic form using macro names of constants, etc. (with the -v or -V flag).

       At least one of the following options must be specified:

lddと同じように使う場合は-Lオプションをつける。

$ otool -L

参照: 
https://discussions.apple.com/thread/309193?start=0&tstart=0

7
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?