[英]Giving error on rails bundle install
安装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
这是什么意思以及如何纠正它。我已经尝试过更新和升级方法,是否还有其他方法可以删除某些依赖项。
如有必要,请尝试更新源列表,否则请删除最近安装的大多数文件,然后从头开始全新安装。 如果需要,分别安装每个固定的包装
sudo apt-get uprade
也可以。
尝试这个:
bundle update
如果发生捆扎器错误
gem install bundler #After that run below command too.
bundle install
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.