Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby Vim command-t插件,Mac OS Sierra 10.12.6:无法加载C扩展_Ruby_Vim_Homebrew - Fatal编程技术网

Ruby Vim command-t插件,Mac OS Sierra 10.12.6:无法加载C扩展

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:

我刚刚将我的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:    :help command-t
我目前的世界状况发生在以下事件之后: 1.
brew卸载ruby vim
=>
brew安装ruby vim

我已尝试实施以下stackoverflow+github问题的建议:

当然,还有command-t文档:()。不幸的是,这些示例中的大多数都是旧的,与最新的MacOS、Ruby或Vim版本无关。我的
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。