Vim/命令- t:忽略“gemname”,因为它的扩展没有建立。试着宝石原始“gem-name”

时间:2022-08-14 20:18:37

Whenever I open the command-T plugin for the first time in MacVim, I get the following terminal:

当我第一次在MacVim打开命令- 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

Any ideas?

什么好主意吗?

2 个解决方案

#1


2  

It sounds like you skipped the installation for command-T. From the doc

听起来好像你跳过了命令- t的安装。从医生

The C extension must also be then compiled; for instance, if Vimball installs your plugin files in ~/.vim, then you would do this:

C扩展也必须被编译;例如,如果Vimball在~/中安装您的插件文件。vim,然后你会这样做:

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

Also note that command T and vim must be compiled against the same version of ruby.

还要注意,命令T和vim必须针对同一版本的ruby进行编译。

#2


2  

I recently switched to from rvm to chruby and ran gem update --system, thats when the issue began occurring for me. After that, anytime I ran bundle I was slaughtered with the same warnings.

最近我从rvm转到chruby并运行gem更新——系统,这是我开始出现问题的时候。在那之后,任何时候我运行bundle I都被同样的警告杀死。

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

忽略curb-0.8.6,因为它的扩展不是构建的。试题:宝石原始curb-0.8.6

This, plus dozens of other warnings for other gems.

除此之外,还有许多其他宝石的警告。

Not sure what fixed it, but I did 2 things and the warning disappeared:

不确定是什么,但我做了两件事,警告消失了:

gem update bundler
gem install curb

#1


2  

It sounds like you skipped the installation for command-T. From the doc

听起来好像你跳过了命令- t的安装。从医生

The C extension must also be then compiled; for instance, if Vimball installs your plugin files in ~/.vim, then you would do this:

C扩展也必须被编译;例如,如果Vimball在~/中安装您的插件文件。vim,然后你会这样做:

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

Also note that command T and vim must be compiled against the same version of ruby.

还要注意,命令T和vim必须针对同一版本的ruby进行编译。

#2


2  

I recently switched to from rvm to chruby and ran gem update --system, thats when the issue began occurring for me. After that, anytime I ran bundle I was slaughtered with the same warnings.

最近我从rvm转到chruby并运行gem更新——系统,这是我开始出现问题的时候。在那之后,任何时候我运行bundle I都被同样的警告杀死。

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

忽略curb-0.8.6,因为它的扩展不是构建的。试题:宝石原始curb-0.8.6

This, plus dozens of other warnings for other gems.

除此之外,还有许多其他宝石的警告。

Not sure what fixed it, but I did 2 things and the warning disappeared:

不确定是什么,但我做了两件事,警告消失了:

gem update bundler
gem install curb