山狮-LibXML&能吉里 [英] Mountain Lion - LibXML & Nokogiri

查看:87
本文介绍了山狮-LibXML&能吉里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚更新到OS X Mountain Lion,并且在使用滑轨和终端时得到了以下提示.

I've just updated to OS X Mountain Lion and I'm getting the following when working with rails and terminal.

WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8

我已经看过类似问题的其他答案,但是它们似乎并没有阻止警告消息的出现.

I've had a look at other answers to a similar question, but they doesn't seem to stop the warning message from appearing.

推荐答案

在我的Gemfile中的gem 'pg'上方放置gem 'nokogiri'可以解决此问题.

Putting gem 'nokogiri' above gem 'pg' in my Gemfile fixed this for me.

我的Gemfile中没有nokogiri,但它是Gemfile.lock中的一个依赖项,因此我将其明确地放在我的Gemfile中.

My Gemfile didn't have nokogiri in it, but it was a dependency that was in Gemfile.lock, so I put it in my Gemfile explicitly.

这篇关于山狮-LibXML&能吉里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆