我正在尝试设置redmine,为此我必须安装很多‘gem’。我对ruby on rails、gem或bundler一无所知。在他们的redmine安装文档中,提到我使用
bundle install --without development test安装所需的gem。我在安装json时遇到了一些问题,因此我不得不安装开发工具包。现在,在安装开发工具包并将其添加到环境变量(我正尝试将其安装在windows服务器上)之后,我遵循了this。它显示在安装开发工具包之后,我需要执行以下命令
Unzip the zip
open command-line and go to unzipperd folder
ruby dk.rb init
ruby dk.rb install
gem install rdiscount --platform=ruby但是,在安装rdiscount时,我得到了以下错误

我到底错过了什么?
发布于 2015-01-28 15:51:16
windows的rdiscount已损坏。检查此问题:https://github.com/davidfstr/rdiscount/issues/74
在win7 32位上使用mingw gcc 4.6.2或mingw-w64 gcc 4.7.2的
时,由于使用了DWORD宏,导致gem构建失败。
DWORD、WORD和BYTE宏是已知的windows数据类型。它们在discount/rdiscount中不幸的重用会导致mingw/mingw-w64标头出现问题,如下所示:
另请参阅此SO以了解更多详细信息:https://stackoverflow.com/a/15246336/3035830
https://stackoverflow.com/questions/28186631
复制相似问题