让我先解释一下上下文,我想为 Redmine 创建一个服务器。在遵循本网站的步骤:http ://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_a_sub-URI_on_Windows_with_Apache时,我遇到了运行此命令的步骤
rake generate_session_store
在尝试运行它时给了我这个错误:
Could not find gem 'rails (=3.2.13) x86-ming32' in the gems available on this machine
Run 'bundle install' to install missing gems
当我检查我的 gem 列表时,只安装了 rails (2.3.5) 所以我尝试了bundle install
这给了我这个错误:
[...] Failed to build gem native extension.[...]
Creating Makefile
make
'make' is not recognized as an internal or external command, operable program or batch file.
Gem files will remain installed in [C:/webserver......]
An error occurred while installing json (1.8.0), and Bundler cannot continue. Make sure that 'gem install json -v '1.8.0' succeeds before bundling.
所以我尝试gem install json -v '1.8.0'
并得到了同样的错误。
我终于尝试gem install rails(=3.2.13) x86 -ming32
并得到了2个错误:
Could not find a valid gem '(=3.2.13)'(>=0) in any repository
Could not find a valid gem 'x86 -ming32' (>=0) in any repository
我现在对所有这些错误感到非常困惑,而且我对这个gem
工具了解不多......我已经看到很多关于 json 的问题(尤其是在 Mac 上,但我在 Windows 上),但从来没有关于那个特定的错误. 有谁知道为什么会这样?