Ruby Vim command-t插件,Mac OS Sierra 10.12.6:无法加载C扩展
我刚刚将我的OS X更新为Sierra 10.12.6。当我打开vim并尝试使用command-t时,我得到以下错误:Ruby Vim command-t插件,Mac OS Sierra 10.12.6:无法加载C扩展,ruby,vim,homebrew,Ruby,Vim,Homebrew,我刚刚将我的OS X更新为Sierra 10.12.6。当我打开vim并尝试使用command-t时,我得到以下错误: command-t.vim could not load the C extension. Please see INSTALLATION and TROUBLE-SHOOTING in the help. Vim Ruby version: 2.5.0-p0 Expected version: 2.4.1-p111 For more information type:
command-t.vim could not load the C extension.
Please see INSTALLATION and TROUBLE-SHOOTING in the help.
Vim Ruby version: 2.5.0-p0
Expected version: 2.4.1-p111
For more information type: :help command-t
我目前的世界状况发生在以下事件之后:
1. brew卸载ruby vim
=>brew安装ruby vim
我已尝试实施以下stackoverflow+github问题的建议:
ruby extconf.rb
的路径也与示例略有不同
示例中extconf.rb
所在位置的路径:
cd ~/.vim/bundle/command-t/ruby/command-t
我的计算机上的路径:
cd ~/.vim/bundle/command-t/ruby/command-t/ext/command-t
非常感谢您的建议 您是否构建了C扩展?如果没有,就跑
ruby extconf.rb&&make
在目录中
~/.vim/bundle/command-t/ruby/command-t/ext/command-t
之后,
command-t
应该可以工作。如果没有,您可以在这里发布make
的输出。也许您应该将Ruby降级到2.4版本,然后使用插件的问题跟踪程序重新安装Vim。