vendredi 8 février 2008

ldd, otool and flushing dns

The other day I needed to check which libs an executable was linked against, on linux I would use ldd, but on my Mac OS X there is no tool called ldd. I found otool with the -L option did the trick.

otool -L `which awk`

Btw, LD_LIBRARY_PATH on Darwin (Mac OS X) is DYLD_LIBRARY_PATH, more information available in the man page, man dyld.


Another issue I get is when I want to flush the dns cache of my mac, I have recently purchased a white MacBook with Leopard on it and the

lookupd -flushcache

does not work anymore, in Leopard (10.5) it has become

dscacheutil -flushcache

Aucun commentaire: