0

I have copy the make.bat to bin\ folder,when run the command gem install bcrypt-ruby, it shows the bash.exe is not the internal or external command.

How to solve it?

4

1 回答 1

0

我试图在Windows 8 64 位上安装“ bcrypt-ruby ” 。

尝试了很多配置,从gem的不同版本,直接来自git,平台ruby等。

但没有任何效果

最后安装了与我的 ruby​​ 版本兼容的 DEVKIT,仅此而已。

脚步

安装与您的 ruby​​ 版本兼容的 Devkit

链接:http ://rubyinstaller.org/downloads/

在下面下载

C:/Ruby Folder/devkit

然后在命令行上转到上面的路径

C:/Ruby Folder/devkit

然后说

gem install bcrypt-ruby

这应该安装它,

发布这个,你需要将 gem 添加到你的 Gemfile 并说

bundle install
bundle update
bundle install

这应该可以正常工作。还解决了与 active_record 等相关的更新问题。


这同样适用于 WIN 64,WIN 32 也适用。


于 2013-10-25T09:27:15.603 回答