ruby - 编译vim插件Comannd-T的C扩展失败
大家讲道理
大家讲道理 2017-04-21 11:19:21
0
1
660

按照安装文档执行了如下命令:

ruby extconf.rb 
make

后来make之后报错:

compiling ext.c
In file included from /usr/include/ruby-1.9.1/ruby/ruby.h:24:0,
                 from /usr/include/ruby-1.9.1/ruby.h:32,
                 from matcher.h:24,
                 from ext.c:24:
/usr/include/ruby-1.9.1/i486-linux/ruby/config.h:20:0: warning: "_FILE_OFF
SET_BITS" redefined [enabled by default]
<command-line>:0:0: note: this is the location of the previous definition
compiling match.c
In file included from /usr/include/ruby-1.9.1/ruby/ruby.h:24:0,
                 from /usr/include/ruby-1.9.1/ruby.h:32,
                 from match.h:24,
                 from match.c:25:
/usr/include/ruby-1.9.1/i486-linux/ruby/config.h:20:0: warning: "_FILE_OFF
SET_BITS" redefined [enabled by default]
<command-line>:0:0: note: this is the location of the previous definition
compiling matcher.c
In file included from /usr/include/stdlib.h:25:0,
                 from matcher.c:24:
/usr/include/features.h:283:34: error: token "=" is not valid in preproces
sor expressions
In file included from /usr/include/ruby-1.9.1/ruby/ruby.h:24:0,
                 from /usr/include/ruby-1.9.1/ruby.h:32,
                 from matcher.h:24,
                 from matcher.c:26:
/usr/include/ruby-1.9.1/i486-linux/ruby/config.h:20:0: warning: "_FILE_OFF
SET_BITS" redefined [enabled by default]
<command-line>:0:0: note: this is the location of the previous definition
matcher.c: In function ‘CommandTMatcher_sorted_matches_for’:
matcher.c:162:24: error: ‘PROCESSOR_COUNT’ undeclared (first use in this f
unction)
matcher.c:162:24: note: each undeclared identifier is reported only once f
or each function it appears in
make: *** [matcher.o] Error 1

哪里出问题了?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

全部回覆(1)
迷茫

直接換成用Ctrl-P吧,安裝更方便,功能也一樣:https://github.com/kien/ctrlp.vim

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!