小编S3P*_*3HR的帖子

无法在Windows中安装Nokogiri for Ruby

我知道这很简单,但我无法理解.我需要在Ruby中运行一个脚本,它需要Nokogiri.我确实有一些其他语言的经验,但不是Ruby.

这是我的系统:

Ruby 2.0.0-p195(x64)安装在@ C:\ Programs\RubyLanguage上

Ruby开发工具包(mingw64-64-4.7.2-20130224-1432)安装在@ C:\ Programs\RubyDevKit

当我运行时,gem install nokogiri我收到此错误:

    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'
Run Code Online (Sandbox Code Playgroud)

很容易.所以我按照上面的链接做了第3步.但是第4步说生成"config.yml".所以我做了.现在该文件是一个带有一些注释的空列表.我仍然无法安装Nokogiri,因为上面的错误,我似乎没有得到任何DevKit.我的意思是开发套件安装中的步骤对我来说不够清楚.


现在更新它说Nokogiri的安装失败了(DevKit Works根据步骤5:安装json-1.8.0 1 gem的安装文档)

mkmf.log: package configuration for libxslt is not found
package configuration for libxml-2.0 is not found
package configuration for libiconv is not found
find_header: checking for …
Run Code Online (Sandbox Code Playgroud)

ruby windows nokogiri devkit

5
推荐指数
1
解决办法
9603
查看次数

标签 统计

devkit ×1

nokogiri ×1

ruby ×1

windows ×1