Vim / command-T:忽略“gem-name”,因为它的扩展名没有构建。 试试gem原始“gem名”

每当我在MacVim中第一次打开command-T插件时,我会得到以下终端:

Ignoring atomic-1.1.13 because its extensions are not built. Try: gem pristine atomic-1.1.13 Ignoring atomic-1.1.10 because its extensions are not built. Try: gem pristine atomic-1.1.10 Ignoring bcrypt-3.1.7 because its extensions are not built. Try: gem pristine bcrypt-3.1.7 Ignoring bcrypt-ruby-3.0.1 because its extensions are not built. Try: gem pristine bcrypt-ruby-3.0.1 Ignoring eventmachine-1.0.3 because its extensions are not built. Try: gem pristine eventmachine-1.0.3 Ignoring executable-hooks-1.3.2 because its extensions are not built. Try: gem pristine executable-hooks-1.3.2 Ignoring ffi-1.9.3 because its extensions are not built. Try: gem pristine ffi-1.9.3 Ignoring ffi-1.9.0 because its extensions are not built. Try: gem pristine ffi-1.9.0 Ignoring ffi-1.4.0 because its extensions are not built. Try: gem pristine ffi-1.4.0 Ignoring gem-wrappers-1.2.4 because its extensions are not built. Try: gem pristine gem-wrappers-1.2.4 Ignoring json-1.8.1 because its extensions are not built. Try: gem pristine json-1.8.1 Ignoring json-1.8.0 because its extensions are not built. Try: gem pristine json-1.8.0 Ignoring nokogiri-1.6.3.1 because its extensions are not built. Try: gem pristine nokogiri-1.6.3.1 Ignoring nokogiri-1.6.0 because its extensions are not built. Try: gem pristine nokogiri-1.6.0 Ignoring nokogiri-1.5.6 because its extensions are not built. Try: gem pristine nokogiri-1.5.6 Ignoring pg-0.17.1 because its extensions are not built. Try: gem pristine pg-0.17.1 Ignoring pg-0.17.0 because its extensions are not built. Try: gem pristine pg-0.17.0 Ignoring pg-0.15.1 because its extensions are not built. Try: gem pristine pg-0.15.1 Ignoring pg-0.14.1 because its extensions are not built. Try: gem pristine pg-0.14.1 Ignoring sqlite3-1.3.9 because its extensions are not built. Try: gem pristine sqlite3-1.3.9 Ignoring sqlite3-1.3.8 because its extensions are not built. Try: gem pristine sqlite3-1.3.8 Ignoring sqlite3-1.3.7 because its extensions are not built. Try: gem pristine sqlite3-1.3.7 Ignoring thin-1.6.2 because its extensions are not built. Try: gem pristine thin-1.6.2 

有任何想法吗?

听起来你跳过了命令-T的安装。 从文档

然后还必须编译C扩展; 例如,如果Vimball在〜/ .vim中安装你的插件文件,那么你会这样做:

 cd ~/.vim/ruby/command-t ruby extconf.rb make 

另请注意,必须针对相同版本的ruby编译命令T和vim。

我最近从rvm切换到chruby并运行gem update --system ,这就是问题开始发生的时候。 在那之后,无论何时我运行捆绑,我都会被同样的警告宰杀。

Ignoring curb-0.8.6 because its extensions are not built. Try: gem pristine curb-0.8.6

这个,以及其他gem的其他几十个警告。

不确定是什么修复它,但我做了2件事,警告消失了:

 gem update bundler gem install curb