安装rdiscount时出错?

时间:2015-01-28 07:15:34

标签: ruby-on-rails ruby json redmine

我正在尝试setuip redmine,我必须安装很多'宝石'。好吧,我不知道铁轨或宝石或捆绑器上的红宝石。在他们的redmine安装文档中,提到我使用

bundle install --without development test

安装所需的宝石。我在安装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时,我收到以下错误

enter image description here

我到底错过了什么?

1 个答案:

答案 0 :(得分:0)

对于Windows,

rdiscount已被破坏。请检查此问题:https://github.com/davidfstr/rdiscount/issues/74

  

在win7 32bit上使用mingw gcc 4.6.2或mingw-w64 gcc 4.7.2 I   由于使用了DWORD宏而导致gem构建失败。

     

DWORD,WORD和BYTE宏是已知的Windows数据类型。其   在折扣/折扣中不幸重复使用会导致问题   mingw / mingw-w64标头如下所示:

有关详细信息,请参阅此SO:https://stackoverflow.com/a/15246336/3035830