Vim / command-T:忽略" gem-name"因为它的扩展没有构建。试试gem pristine" gem-name"

时间:2014-08-24 05:18:51

标签: ruby-on-rails ruby vim vim-plugin

每当我在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

有什么想法吗?

2 个答案:

答案 0 :(得分:3)

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

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

此外,还有其他宝石的数十个其他警告。

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

gem update bundler
gem install curb

答案 1 :(得分:2)

听起来你跳过了命令-T的安装。来自doc

  

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

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

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