RoR - 安装 gem - libxml-ruby-1.1.4
我正在尝试安装 libxml-ruby-1.1.4 (通过 Bundler,但当我进行 gem 安装时也会发生同样的情况),并且出现大量错误。
我在 Unibody MacBook 上运行 Mac OSX 10.6。
错误在 make 之后开始,有很多 DARWI 错误,然后是一长串 ruby_xml_error ...未声明(首次在此函数中使用)。
这是一个包含所有错误的pastie。
请帮忙。
为了帮助其他人搜索此问题,这里列出了错误中显示的一些常见短语。
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal- darwin10.0-I。 -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\"
ruby_xml_error ... 未声明(在此函数中首次使用)
XML_(blah)
(没有这样的文件或目录)
make: * [ruby_xml_error.o] 错误 1
I'm trying install libxml-ruby-1.1.4 (via Bundler, but same thing happens when I do a gem install) and I get a huge list of errors.
I'm running Mac OSX 10.6 on a Unibody MacBook.
The errors start after the make and have a lot of DARWI errors and then a long list of ruby_xml_error … undeclared (first use in this function).
Here is a pastie with all of the errors.
Please help.
In order to help with others searching for this issue here are some of the common phrases showing up in the errors.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\"
ruby_xml_error ... undeclared (first use in this function)
XML_(blah)
(No such file or directory)
make: * [ruby_xml_error.o] Error 1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
所以我不是唯一一个问题。常见问题是旧版本的 libxml2。
然后确保 libxml2 bin 在您的路径中。
So I'm not the only one with this issue. Common problem is an old version of libxml2.
And then make sure the libxml2 bin is in your path.