在Windows上安装dm-types。 (Win7 x64) [英] Installing dm-types on Windows. (Win7 x64)

查看:132
本文介绍了在Windows上安装dm-types。 (Win7 x64)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在我的机器上安装DataMapper的dm-types,并带有

I am trying to install dm-types for DataMapper on my machine with

gem install dm-types 

我从RubyInstaller(1.9.3)安装了Ruby,我也安装了DevKit。 (以及像sinatra,haml,dm-core和bcrypt-ruby等其他宝石)。
然而,当我运行gem install dm-types时,会发生这种情况。

I've installed Ruby from RubyInstaller (1.9.3) and I also have the DevKit installed. (Aswell as some other gems like sinatra, haml, dm-core and bcrypt-ruby).
However, when I run "gem install dm-types", this happens.

C:\Users\Lev>gem install dm-types
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing dm-types:
        ERROR: Failed to build gem native extension.

        "C:/Program Files (x86)/Ruby/Ruby193/bin/ruby.exe" extconf.rb
creating Makefile

make
Makefile:172: warning: overriding commands for target `C:/Program'
Makefile:163: warning: ignoring old commands for target `C:/Program'
Makefile:172: warning: overriding commands for target `Files'
Makefile:163: warning: ignoring old commands for target `Files'
Makefile:215: *** multiple target patterns.  Stop.


Gem files will remain installed in C:/Program Files (x86)/Ruby/Ruby193/lib/ruby/
gems/1.9.1/gems/json-1.6.5 for inspection.
Results logged to C:/Program Files (x86)/Ruby/Ruby193/lib/ruby/gems/1.9.1/gems/j
son-1.6.5/ext/json/ext/parser/gem_make.out

我的google-fu透露有/有一些bcrypt依赖关系不会建立在Windows上,但bcrypt安装完美无瑕。我的系统路径中也有nmake.exe。

My google-fu revealed that there are/were some bcrypt dependencies that won't build on windows but bcrypt installed flawlessly. I also have nmake.exe in my system path.

那么我怎样才能让dm-type在Windows 7 x64上工作?

So how can I get dm-types to work on Windows 7 x64?

另外,我完全不反对擦拭我的机器,清除所有与ruby相关的东西,然后重新开始。

Also, I have absolutely no objection to wiping my machine clean of all ruby-related things and starting again.

推荐答案

它看起来是Ruby路径中的空格正在搞乱makefile。也许尝试在Windows上临时创建符号链接,如:

It looks the the spaces in the path for ruby are screwing up the makefile. Maybe try creating a symlink on Windows temporarily, like:

mklink /d c:\ruby "C:\Program Files (x86)\Ruby\Ruby193"

然后尝试安装。

C:\ruby\bin\gem install dm-types

这篇关于在Windows上安装dm-types。 (Win7 x64)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆