[英]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.