首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ruby DevKit问题

Ruby DevKit问题
EN

Stack Overflow用户
提问于 2012-11-21 04:58:18
回答 1查看 1.7K关注 0票数 1

我在安装DevKit时遇到了一些问题。基本上,它不起作用。我已经通过books安装了它,但是安装没有通过测试:

代码语言:javascript
复制
gem install rdiscount --platform=ruby

返回以下错误:

代码语言:javascript
复制
C:\Ruby 1.9.3-p327\DevKit>gem install rdiscount --platform=ruby
Building native extensions.  This could take a while...
ERROR:  Error installing rdiscount:
        ERROR: Failed to build gem native extension.

        "C:/Ruby 1.9.3-p327/bin/ruby.exe" extconf.rb
checking for random()... no
checking for srandom()... no
checking for rand()... yes
checking for srand()... yes
creating Makefile

make
Makefile:219: *** multiple target patterns.  Stop.


Gem files will remain installed in C:/Ruby 1.9.3-p327/lib/ruby/gems/1.9.1/gems/r
discount-1.6.8 for inspection.
Results logged to C:/Ruby 1.9.3-p327/lib/ruby/gems/1.9.1/gems/rdiscount-1.6.8/ex
t/gem_make.out

此外,this也没有用处。那里一切都很好。

gem_make.out包含以下内容:

代码语言:javascript
复制
"C:/Ruby 1.9.3-p327/bin/ruby.exe" extconf.rb
checking for random()... no
checking for srandom()... no
checking for rand()... yes
checking for srand()... yes
creating Makefile

make
Makefile:219: *** multiple target patterns.  Stop.

在这一点上,我要发疯了。我尝试只运行extconf.rb

代码语言:javascript
复制
C:\Ruby 1.9.3-p327\lib\ruby\gems\1.9.1\gems\rdiscount-1.6.8\ext>ruby extconf.rb
checking for random()... no
checking for srandom()... no
checking for rand()... yes
checking for srand()... yes
creating Makefile

没有错误!

我的操作系统是windows 7 x64!系统上未安装任何其他版本的Ruby或DevKit,路径如下

代码语言:javascript
复制
PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Ruby 1.9.3-p327\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\pik;C:\Ruby 1.9.3-p327\DevKit\bin;C:\Ruby 1.9.3-p327\DevKit\mingw\bin
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-11-27 08:37:46

我可能错了,但我认为Ruby安装路径被理解为两个不同的参数,实际上是"C:/Ruby" "1.9.3-p327/bin/ruby.exe",因为路径没有被转义(这是正确的词吗?基本上用引号括起来)。

我建议你看看similar question on Stack Overflow。我遇到了和你完全一样的问题,这个解决方案直接解决了它。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13482012

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档