我在ubuntu 16.04

时间:2017-05-29 15:03:25

标签: blacklight

Gem :: Ext :: BuildError:错误:无法构建gem原生扩展。

current directory: /tmp/bundler20170529-7305-1ybn2iijson-1.8.6/gems/json-1.8.6/ext/json/ext/generator

/usr/bin/ruby2.3 -r ./siteconf20170529-7305-1qu2mp6.rb extconf.rb mkmf.rb在/usr/lib/ruby/include/ruby.h找不到ruby的头文件

extconf失败,退出代码1

Gem文件将保留在/tmp/bundler20170529-7305-1ybn2iijson-1.8.6/gems/json-1.8.6中进行检查。 结果记录到/tmp/bundler20170529-7305-1ybn2iijson-1.8.6/extensions/x86_64-linux/2.3.0/json-1.8.6/gem_make.out

1 个答案:

答案 0 :(得分:0)

感谢您的提问!你有安装ruby-dev软件包吗?你可以用它来获得它:

sudo apt-get install ruby-dev