安装json(1.8.6)时发生错误,Bundler无法继续。
在捆绑之前确保gem install json -v '1.8.6'
成功。
在Gemfile中:
rails被解析为4.2.6,这取决于
actionmailer was resolved to 4.2.6, which depends on
actionpack was resolved to 4.2.6, which depends on
actionview was resolved to 4.2.6, which depends on
rails-dom-testing was resolved to 1.0.9, which depends on
rails-deprecated_sanitizer was resolved to 1.0.3, which depends on
activesupport was resolved to 4.2.6, which depends on
json
Gem :: Ext :: BuildError:错误:无法构建gem原生扩展。
current directory: /tmp/bundler20180201-46774-s2jlm4json-1.8.6/gems/json-1.8.6/ext/json/ext/generator
/usr/bin/ruby2.3 -r ./siteconf20180201-46774-16pojxx.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
这是什么意思以及如何纠正它。我已经尝试过更新和升级方法是否有其他方法可以删除某些依赖项。
答案 0 :(得分:0)
如有必要,请尝试更新源列表,否则删除最近安装的大多数文件,然后从头开始重新安装。 如果需要,另外安装每个包装的包装
sudo apt-get uprade
也可以。
答案 1 :(得分:0)
尝试一下:
bundle update
如果发生捆包错误
gem install bundler #After that run below command too.
bundle install