首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装nokogiri时出错xmlParseDoc检查失败

安装nokogiri时出错xmlParseDoc检查失败
EN

Stack Overflow用户
提问于 2014-06-26 01:57:49
回答 1查看 281关注 0票数 1

OS: 10.9.3 ruby版本管理: rbenv

中提到的步骤。

用于brew 0.9的http://nokogiri.org/tutorials/installing_nokogiri.html。安装了0.9.5。安装时获取以下错误日志。

请帮助修复。日志如下:

代码语言:javascript
复制
System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-apple-darwin13.2.0/ports/libxml2/2.8.0... OK
Running 'configure' for libxml2 2.8.0... OK
Running 'compile' for libxml2 2.8.0... OK
Running 'install' for libxml2 2.8.0... OK
Activating libxml2 2.8.0 (from /Users/parag/.bundler/tmp/65816/gems/nokogiri-1.6.1/ports/x86_64-apple-darwin13.2.0/libxml2/2.8.0)...
Extracting libxslt-1.1.26.tar.gz into tmp/x86_64-apple-darwin13.2.0/ports/libxslt/1.1.26... OK
Running 'configure' for libxslt 1.1.26... OK
Running 'compile' for libxslt 1.1.26... OK
Running 'install' for libxslt 1.1.26... OK
Activating libxslt 1.1.26 (from /Users/parag/.bundler/tmp/65816/gems/nokogiri-1.6.1/ports/x86_64-apple-darwin13.2.0/libxslt/1.1.26)...
checking for libxml/parser.h... yes
checking for libxslt/xslt.h... yes
checking for libexslt/exslt.h... yes
checking for iconv_open() in iconv.h... yes
checking for xmlParseDoc() in -lxml2... no
-----
libxml2 is missing.  please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.
EN

回答 1

Stack Overflow用户

发布于 2014-06-26 02:06:27

你需要安装几个不同的包。试试这个:

代码语言:javascript
复制
sudo apt-get install libxslt-dev libxml2-dev
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24415448

复制
相关文章

相似问题

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