簡體   English   中英

我無法在Rails中捆綁安裝新應用,它會顯示以下錯誤消息

[英]I am not able to bundle install my new app in Rails it show me following error message

An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.3'` succeeds before bundling.

我的軟件版本是:

ruby 2.2.3p173 (2015-08-18 revision 51636) [x64-mingw32]
Rails -v 4.2.5
windows 10
gem -v 2.4.5.1

Bundler 1.5.0有一個錯誤,無法識別此處引用的默認寶石。

解決方案是使用gem install bundler -v '= 1.5.1'更新到bundler gem install bundler -v '= 1.5.1'

我對Windows不太了解,但是您可以嘗試安裝此GMP軟件包 如json Github issue 頁面上的建議,Linux 上的人們應該安裝以下軟件包:

sudo apt-get install libgmp3-dev

而且似乎Windows程序包具有類似的dll,可以解決您的問題。

這些問題#259#229中列出了gem json 1.8.3ruby 2.2.3的已知問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM