[英]Could not find gem 'resque (>= 2.0) ruby' in the gems available on this machine
[英]Ubuntu, Bundle Install/Update could not find gem bcrpyt-ruby … in the gems available
以下評論和帖子中的解決方案:
操作系統:Ubuntu 12.0.4
問題:bcrypt-ruby,捆綁安裝/更新
按照Michael Hartl的教程從事RoR的工作。 頻道 6.3.1,加密密碼
我已在我的gem文件中包含以下行:
gem 'bcrypt-ruby', '~>3.1.2'
我可以從控制台安裝bcrypt。 我的系統將其列出如下:
myapp1$ gem list bcrypt-ruby
*** LOCAL GEMS ***
bcrypt-ruby (3.1.2)
但是,在運行捆綁軟件安裝時,找不到bcrypt。
myapp1$ bundle install
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Could not find gem 'bcrpyt-ruby (~> 3.1.2) ruby' in the gems available on this machine.
我已經看到了有關bcrypt和bundle-install的先前問題,並嘗試了其解決方案,但均無濟於事。
誰能指出我的方向或提供解決方案?
非常感謝!
在這種情況下的解決方案
Removed Gemfile.lock, then comment out/delete the bcrypt-ruby line from Gemfile.
Then, run [bundle install] to regenerate the Gemlock file,
reinsert the bcrypt-ruby line in the Gemfile, and run [bundle install] again.
In this case, bcrypt is successfully added.
嘗試刪除Gemfile.lock,然后再次運行bundle install
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.