0

我正在使用 web 服务从 ruby​​ on rails 应用程序与 ERP 通信,使用Savon. 我能够在我本地的 Fedora 机器上安装 Savon gem。但我无法在生产服务器上安装它。它给出以下错误:-

ERROR:  Error installing savon:
    ERROR: Failed to build gem native extension.

/opt/ruby-enterprise-1.8.7-2010.02/bin/ruby extconf.rb
checking for libxml/parser.h... 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.

试图重新安装libxml2,但这也给出了错误。谁能帮我调试这个问题?

提前致谢.....

4

1 回答 1

0

原因就在错误消息中:

缺少 libxml2。请访问http://nokogiri.org/tutorials/installing_nokogiri.html
以获取安装依赖项的帮助。

他们甚至提供红帽指南。

于 2012-06-07T12:20:18.623 回答