I\'ve been trying to run a script in the terminal and every time I do I get:
$ ruby directory.rb dyld: Library not loaded: /usr/local/lib/libgmp.10.dylib R
Looks like it is an issue with upgrading the Ruby version.
Try:
$ brew rm cloog; brew install cloog
This seems much like this similar issue: "Upgrading to Ruby 2.1.3 on Mac OSx 10.9.5"
Hope that works for you.