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

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

问题描述

我正在尝试使用

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:UsersLev>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-types 在 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:
uby "C:Program Files (x86)RubyRuby193"

然后尝试安装.您可以在安装后删除符号链接.

and then try installing. You can delete the symlink after installing.

C:
ubyingem install dm-types

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

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