如何为 Windows 安装 Nokogiri Gem [英] How to install Nokogiri Gem for Windows

查看:19
本文介绍了如何为 Windows 安装 Nokogiri Gem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用 nokogiri 的 gem 时遇到了这个问题:

I'm having this problem with nokogiri's gem:

无法打开库C:Ruby187lib ubygems1.8gems okogiri-1.4.6-x86-mingw32ext okogirilibxml2.dll":未知

Could not open library 'C:Ruby187lib ubygems1.8gems okogiri-1.4.6-x86-mingw32ext okogirilibxml2.dll' : unknown

我读到我必须尝试 1.5.0.beta3 版本.但是,当我运行时

I read that I had to try the 1.5.0.beta3 version. However, when I run

C:Users	3en4>gem install nokogiri --pre
Fetching: nokogiri-1.5.0.beta.4.gem (100%)
ERROR:  Error installing nokogiri:
        The 'nokogiri' native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'

我该怎么办?

推荐答案

你需要 DevKit 正确编译 gem.

You need DevKit to compile the gem properly.

这篇关于如何为 Windows 安装 Nokogiri Gem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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