RoR - 安装 gem - libxml-ruby-1.1.4

发布于 2024-10-19 16:18:17 字数 727 浏览 12 评论 0原文

我正在尝试安装 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦归所梦 2024-10-26 16:18:17

所以我不是唯一一个问题。常见问题是旧版本的 libxml2。

brew install libxml2

然后确保 libxml2 bin 在您的路径中。

So I'm not the only one with this issue. Common problem is an old version of libxml2.

brew install libxml2

And then make sure the libxml2 bin is in your path.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文