Vim/command-T:忽略“gem-name"因为它的扩展不是构建的.尝试 gem 原始的“gem-name" [英] Vim/command-T: Ignoring "gem-name" because its extensions are not built. Try gem pristine "gem-name"

查看:22
本文介绍了Vim/command-T:忽略“gem-name"因为它的扩展不是构建的.尝试 gem 原始的“gem-name"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

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

有什么想法吗?

推荐答案

听起来您好像跳过了 command-T 的安装.来自文档

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

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

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

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

<小时>

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


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

这篇关于Vim/command-T:忽略“gem-name"因为它的扩展不是构建的.尝试 gem 原始的“gem-name"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆