I have a gem installed but require 'gemname' does not work. Why?

前端 未结 11 1798
傲寒
傲寒 2020-12-14 00:02

The question I\'m really asking is why require does not take the name of the gem. Also, In the case that it doesn\'t, what\'s the easiest way to find the secret incantation

11条回答
  •  春和景丽
    2020-12-14 00:14

    I too had this problem since installing OS X Lion, and found that even if I ran the following code I would still get the warning message. require 'rubygems' require 'nokogiri'

    I tried loads of solutions posted here and on the web, but in the end my work around solution was to simply follow the instructions at http://martinisoftware.com/2009/07/31/nokogiri-on-leopard.html to reinstall LibXML & LibXSLT from source, but ensuring the version of LibXML I installed matched the one that was expected by Nokogiri.

    Once I had done that, the warnings went away.

提交回复
热议问题