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 ended up solving this by including the brew's gmp directory when installing:
rvm install ruby-2.2.5 --with-opt-dir=$(brew --prefix gmp)