以下是解决方案的注释和贴子:
操作系统: Ubuntu 12.0.4
问题:bcrypt,包安装/更新
在RoR上工作,遵循Michael的教程。Ch.6.3.1加密密码
我在我的创业板文件中包括了这一行:
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. 发布于 2013-12-30 21:50:45
尝试删除Gemfile.lock,然后再次运行bundle install。
https://stackoverflow.com/questions/20847106
复制相似问题