Subscribed unsubscribe Subscribe Subscribe

hasen's tech life

Twitter: @hasen

OSXでコマンドが依存するライブラリを調べるのにotoolを使った.

# OSXでコマンドが依存するライブラリを調べるのにotoolを使った.

$ otool -L /usr/local/bin/convert
> /usr/local/bin/convert:
>   /usr/local/Cellar/imagemagick/6.9.1-10/lib/libMagickCore-6.Q16.2.dylib (compatibility version 3.0.0, current version 3.0.0)
>   /usr/local/Cellar/imagemagick/6.9.1-10/lib/libMagickWand-6.Q16.2.dylib (compatibility version 3.0.0, current version 3.0.0)
>   /usr/local/lib/libfreetype.6.dylib (compatibility version 19.0.0, current version 19.0.0)
>   /usr/local/lib/liblzma.5.dylib (compatibility version 8.0.0, current version 8.1.0)
>   /usr/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.5)
>   /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
>   /usr/local/lib/libltdl.7.dylib (compatibility version 11.0.0, current version 11.1.0)
>   /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)