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
I just encountered similar issue and was able to resolve it following an answer from superuser.
brew update && brew install gmp && rvm reinstall 2.1.4
Seems this was an issue with libgmp.10.dylib.
libgmp.10.dylib