X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.4 required=5.0	tests=AWL,BAYES_00,DKIM_ADSP_ALL,SPF_HELO_PASS,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Jet Thompson <jet@whidbey.com>
Subject: Re: nokogiri Load Error
Date: Tue, 6 Jul 2010 17:50:31 +0000 (UTC)
Lines: 69
Message-ID: <loom.20100706T191616-870@post.gmane.org>
References: <loom.20100706T040719-790@post.gmane.org> <loom.20100706T082350-883@post.gmane.org> <4C3359F4.7030802@bopp.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com


> > $irb
> > irb(main):001:0> require 'rubygems'
> > => false

> This is not a Cygwin question but rather a Ruby question.

Yes, realized what was happening after my post, but did not
know how to delete my post. The above is not related to my problem,
actually works fine.

> Cygwin environment, you have probably the RUBYOPT environment variable
> set to include "-rubygems" or something very similar such that the
> rubygems module is automatically loaded. 

That is exactly what was happening. 


> To address your first question which started this thread, it appears
> that your installation of nokogiri did not complete successfully.  Did
> you check to confirm whether or not
> /usr/lib/ruby/gems/1.8/gems/nokogiri-1.4.2/lib/nokogiri/nokogiri.so is
> actually there? 

nokogiri.so is indeed in 

/usr/lib/ruby/gems/1.8/gems/nokogiri-1.4.2/lib/nokogiri

> My guess is that you don't have the gcc package 

gcc is installed, and I have been building other libraries.

So this is error again from irb:

irb(main):002:0> require 'nokogiri'
LoadError: No such file or directory -
/usr/lib/ruby/gems/1.8/gems/nokogiri-1.4.2/lib/nokogiri/nokogiri.so
from /usr/lib/ruby/gems/1.8/gems/nokogiri-1.4.2/lib/nokogiri/nokogiri.so
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from (irb):2

I have even tried pointing:

RUBYLIB=/usr/lib/ruby/gems/1.8/gems/nokogiri-1.4.2/lib/nokogiri

...with no result.

The strange part is the "No such file or directory". It seems that if
the library was failing to load it would give a different message. But
since the library is indeed there, it is interesting.

I just went through and added group 'Users' to libsml2 and libxslt, libexslt,
in case that was a problem. I noticed there was not a group assigned in 
the libraries I installed.

Actually, I am wondering at this point if it is the copies of the above 
libraries I am building against that could be the problem. However, I do
believe it is the libraries at xmlsoft.org I built against.

Cheers,

   Jet









--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

