问题描述
我正在尝试使用"mvim"将rails项目打开到mvim(macvim)中.但出现以下错误.
I'm trying to open my rails project into mvim (macvim) using "mvim ." but I get the following error.
➜ cs193p git:(master) mvim .
dyld: Library not loaded: /Users/myusername/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.1.9.1.dylib
Referenced from: /usr/local/Cellar/macvim/7.3-64/MacVim.app/Contents/MacOS/Vim
Reason: image not found
[1] 85219 trace trap mvim .
➜ cs193p git:(master) mvim --version
dyld: Library not loaded: /Users/myusername/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.1.9.1.dylib
Referenced from: /usr/local/Cellar/macvim/7.3-64/MacVim.app/Contents/MacOS/Vim
Reason: image not found
我最近删除了RVM(包括ruby 1.9.3-p125的"rvm implode")并重新安装了1.9.3-p194.我该怎么做才能解决此问题?
I recently removed RVM ("rvm implode" which included ruby 1.9.3-p125) and reinstalled 1.9.3-p194. What do I need to do to fix this?
谢谢
推荐答案
brew将针对您当前活跃的红宝石(可能是1.9.3-p125)编译MacVim. rvm use 1.9.3-p194 --default && brew uninstall macvim && brew install macvim
可能是解决问题的最佳选择.
brew will compile MacVim against your currently active ruby which was probably 1.9.3-p125. rvm use 1.9.3-p194 --default && brew uninstall macvim && brew install macvim
is probably your best bet to fix your problem.
这篇关于"dyld:未加载库","libruby.1.9.1.dylib";当调用"mvim"时.在命令行中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!