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
Referenced from: /Users/claretrembath/.rvm/rubies/ruby-2.1.3/bin/ruby
Reason: image not found
Trace/BPT trap: 5
I realized that when checking ruby -v
I am given the same output:
$ ruby -v
dyld: Library not loaded: /usr/local/lib/libgmp.10.dylib
Referenced from: /Users/claretrembath/.rvm/rubies/ruby-2.1.3/bin/ruby
Reason: image not found
Trace/BPT trap: 5
Any ideas on how to resolve this?
gmp
. This can be disabled with theconfigure
script's--without-gmp
option. In fact, this is what homebrew's ruby package does, as of Sep. 2019 (github.com/Homebrew/homebrew-core/pull/43841) – Littlefield