本文介绍了RVM 1.9.1 &诺科切里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 rvm ruby​​ 1.9.1 下安装 nokogiri gem 时遇到问题.

Having trouble installing the nokogiri gem under rvm ruby 1.9.1.

gem install nokogiri

我正在……

/usr/include/libxml2... no
libxml2 is missing.  try 'port install libxml2' or 'yum install libxml2-devel'
*** extconf.rb failed ***

但我检查过:

sudo apt-get install libxml2

我得到了:

Reading state information... Done
libxml2 is already the newest version.

这可能是一个根本的东西吗?RVM 在用户空间运行一切.

is this a root thing perhaps? RVM runs everything in userspace.

推荐答案

您可能需要确认 apt 安装的 libxml 版本是最新的.Nokogiri 喜欢新版本的 libxml,所以我从源代码构建了我的 libxml 安装.

You might want to confirm that the version of libxml installed by apt is current. Nokogiri likes nice fresh versions of libxml, so I built my libxml install from source.

nokogiri -v 会告诉你你在使用什么.

nokogiri -v will tell you what you're using.

这篇关于RVM 1.9.1 &诺科切里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 06:13