dyld:懒惰的符号绑定失败:找不到符号:使用heroku时,_ruby_run [英] dyld: lazy symbol binding failed: Symbol not found: _ruby_run when using heroku
问题描述
在安装最新版本的heroku工具带后,我遇到了这个问题。
如果我使用 heroku
命令,则会出现此错误:
I've run into this problem after I installed the newest version of the heroku toolbelt.
If I use the heroku
command, I get this error:
$ heroku -v
dyld: lazy symbol binding failed: Symbol not found: _ruby_run
Referenced from: /usr/local/bin/ruby
Expected in: /usr/lib/libruby.dylib
dyld: Symbol not found: _ruby_run
Referenced from: /usr/local/bin/ruby
Expected in: /usr/lib/libruby.dylib
Trace/BPT trap: 5
我正在OSX 10.9.1上运行使用ruby 2.1.1p76和使用RVM的Rails 4.0.3。我从2.0.0重新安装了rvm,自制软件和更新的ruby。并开始使用PostgreSQL 9.3进行开发。我使用PostgreSQL 9.3进行开发。
I'm running on OSX 10.9.1 with ruby 2.1.1p76 and Rails 4.0.3 with RVM. I've reinstalled rvm, home-brew, updated ruby from 2.0.0. And started using postgresql 9.3 for development. I use postgresql 9.3 for development.
推荐答案
我遇到了同样的问题,这使我无法使用Rails或Heroku。更改我的 PATH
没有任何作用。
I had the same problem, which prevented me from using Rails or Heroku. Changing my PATH
did nothing.
我的解决方案是从 / usr /中删除Ruby。 local / bin
和 / usr / local / lib
。具体来说,我将 / usr / local / bin / ruby
重命名为 / usr / local / bin / rubyOLD
/ usr / local / lib / ruby
目录到 / usr / local / lib / rubyOLD
。
My solution was to remove Ruby from /usr/local/bin
and /usr/local/lib
. Specifically, I renamed /usr/local/bin/ruby
to /usr/local/bin/rubyOLD
and renamed the /usr/local/lib/ruby
directory to /usr/local/lib/rubyOLD
.
由于heroku也安装在 / usr / local
中,因此它是指 / usr / local
ruby,我将 / usr / local / bin / heroku
重命名为 / usr / local / bin / herokuOLD
并通过 Heroku Toolbelt 重新安装。
Since heroku was also installed in /usr/local
and it was referring to the /usr/local
ruby, I renamed /usr/local/bin/heroku
to /usr/local/bin/herokuOLD
and reinstalled via the Heroku Toolbelt.
我也重新安装了rvm,以确保其正常运行( rvm implode
完全从系统中删除了rvm,并且 rvm网站网站介绍了如何重新安装它。)
I also reinstalled rvm for good measure (rvm implode
completely removes rvm from your system, and the rvm website website explains how to reinstall it).
这篇关于dyld:懒惰的符号绑定失败:找不到符号:使用heroku时,_ruby_run的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!