Osx

osx ruby

libgmp problem on El Capitan

After upgrading to El Capitan I ran into a weird issue trying to update the github-pages Ruby gem. It failed saying it could not find libgmp, but I knew it was installed and updating it to the latest version didn’t help either. Here’s the output …

osx dtrace

Running DTrace in Ruby on MacOS X

Since version 2 Ruby comes with DTrace probes, which lets you dynamically instrument a running program. Unfortunately the Ruby shipped with MacOS X doesn’t have DTrace enabled, when you try to list the available probes, you’ll see this: martin$ …

osx

ldd on Mac OS X

An often used tool on UNIX is ldd, but that doesn’t exist on Mac - however I just found out that there is otool which can do the same thing: martin@vaccine$ otool -L /usr/bin/curl /usr/bin/curl: /usr/lib/libcurl.4.dylib (compatibility version 7.0.0, …