Ruby -v dyld:库未加载:/usr/local/lib/libgmp.10.dylib [英] Ruby -v dyld: Library not loaded: /usr/local/lib/libgmp.10.dylib

查看:65
本文介绍了Ruby -v dyld:库未加载:/usr/local/lib/libgmp.10.dylib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直试图在终端中运行一个脚本,每次我都得到:

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

我意识到在检查 ruby -v 时我得到了相同的输出:

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?

推荐答案

我刚刚遇到了类似的问题,并根据 的回答解决了这个问题超级用户.

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

这似乎是 libgmp.10.dylib 的问题.

这篇关于Ruby -v dyld:库未加载:/usr/local/lib/libgmp.10.dylib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆