1

让我先解释一下上下文,我想为 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 上),但从来没有关于那个特定的错误. 有谁知道为什么会这样?

4

2 回答 2

0

有这个问题,但我按照以下说明解决了这个问题:

https://github.com/oneclick/rubyinstaller/wiki/Development-Kit

唯一需要注意的是我在 ruby​​ 上有 64 位版本,所以我需要 DevKit 的 64 位版本

于 2013-07-16T15:33:59.010 回答
0

我在 json 和 Windows 环境中遇到了同样的问题。

我已经安装了 Cygwin(http://cygwin.com/install.html)并选择了所有主要的 mingw 库(在安装过程的最后一步)。

运行“gem install -v '1.8.0'”现在可以工作了。

于 2013-07-05T08:30:30.307 回答