开发者社区> 问答> 正文

编译vim插件Comannd-T的C扩展失败

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

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]
: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]
: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]
: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
哪里出问题了?

展开
收起
a123456678 2016-06-06 11:33:45 2310 0
1 条回答
写回答
取消 提交回答
  • 直接换成用Ctrl-P吧,安装更方便

    2019-07-17 19:28:02
    赞同 展开评论 打赏
问答分类:
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载
使用C++11开发PHP7扩展 立即下载
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载