[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

nokogirl on ubuntu: failed to build gem native extension

Edouard Dantes

1/27/2009 7:08:00 AM

Hi,

I want to give a try to nokogiri with mechanize as it seems to have
encoding methods.

I run ubuntu heron and installed the libraries libxslt1-dev libxml2
libxml2-dev.

now when i run sudo gem install nokogiri i get this error log:

ruby extconf.rb install nokogiri-1.1.1.gem
extconf.rb:3:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:3

I don't get what's missing here?

thanks for comments.
--
Posted via http://www.ruby-....

10 Answers

Radoslaw Bulat

1/27/2009 7:50:00 AM

0

Search and install package named ruby-dev. Notice also that it's
nokogiri (last letter is 'i').


--=20
Pozdrawiam

Rados=B3aw Bu=B3at
http://radarek... - m=F3j blog

Alice Gheorghiu

5/27/2009 7:52:00 PM

0

RadosÅ?aw BuÅ?at wrote:
> Search and install package named ruby-dev.
Have similar problem and tried to install ruby-dev but it is not in my
system
I am on linux ( CentOS release 5.2 (Final) How do I go about installing
it?
>Notice also that it's
> nokogiri (last letter is 'i').
>
>
> --
> Pozdrawiam
>
> Rados�aw Bu�at
> http://radarek... - m�j blog

--
Posted via http://www.ruby-....

cnjohnson

5/27/2009 8:13:00 PM

0


On May 27, 2009, at 2:52 PM, Alice Gheorghiu wrote:

> Rados=C5=82aw Bu=C5=82at wrote:
>> Search and install package named ruby-dev.
> Have similar problem and tried to install ruby-dev but it is not in my
> system
> I am on linux ( CentOS release 5.2 (Final) How do I go about =20
> installing
> it?
This should get you started:

http://...

Cheers--

Charles
---
Charles Johnson
Advanced Computing Center for Research and Education
Vanderbilt University



Alice Gheorghiu

5/28/2009 5:56:00 PM

0

Charles Johnson wrote:
> On May 27, 2009, at 2:52 PM, Alice Gheorghiu wrote:
>
>> RadosÅ?aw BuÅ?at wrote:
>>> Search and install package named ruby-dev.
>> Have similar problem and tried to install ruby-dev but it is not in my
>> system
>> I am on linux ( CentOS release 5.2 (Final) How do I go about
>> installing
>> it?
> This should get you started:
>
> http://...
Tried it and also followed this site http://whomwah.com/... for
my specific OS to no avail. Maybe I need to modify the conf file (I
attached file with execution for review)
Thanks a bunch for all the help -- alice
>
> Cheers--
>
> Charles
> ---
> Charles Johnson
> Advanced Computing Center for Research and Education
> Vanderbilt University


Attachments:
http://www.ruby-...attachment/3744/errorOnInstal...

--
Posted via http://www.ruby-....

Eric Hodel

5/28/2009 9:35:00 PM

0

On May 27, 2009, at 12:52, Alice Gheorghiu wrote:

> Rados=C5=82aw Bu=C5=82at wrote:
>> Search and install package named ruby-dev.
> Have similar problem and tried to install ruby-dev but it is not in my
> system
> I am on linux ( CentOS release 5.2 (Final) How do I go about =20
> installing
> it?
>> Notice also that it's
>> nokogiri (last letter is 'i').

Sorry, I lost the original, but there is a nokogirl gem:

$ gem list -r nokogir

*** REMOTE GEMS ***

nokogiri (1.2.3)
nokogirl (1.0)
$ gem dep -r nokogirl
Gem nokogirl-1.0
nokogiri (>=3D 0, runtime)



Alice Gheorghiu

5/28/2009 11:12:00 PM

0

Eric Hodel wrote:
> On May 27, 2009, at 12:52, Alice Gheorghiu wrote:
>
>RadosÅ?aw BuÅ?at wrote:
>Search and install package named ruby-dev.
>Have similar problem and tried to install ruby-dev but it is not in my
>system
>I am on linux ( CentOS release 5.2 (Final) How do I go about
>installingit?
>Notice also that it's nokogiri (last letter is 'i').
>
> Sorry, I lost the original, but there is a nokogirl gem:

> $ gem list -r nokogir
>
> *** REMOTE GEMS ***

nokogiri (1.2.3)
nokogirl (1.0)
$ gem dep -r nokogirl
Gem nokogirl-1.0
nokogiri (>= 0, runtime)

I tried it too and it's there. What's the point? Should we try to
install nokogirl instead?
--
Posted via http://www.ruby-....

Eric Hodel

5/28/2009 11:35:00 PM

0


On May 28, 2009, at 16:12, Alice Gheorghiu wrote:

> Eric Hodel wrote:
>> On May 27, 2009, at 12:52, Alice Gheorghiu wrote:
>>
>> Rados=C5=82aw Bu=C5=82at wrote:
>> Search and install package named ruby-dev.
>> Have similar problem and tried to install ruby-dev but it is not in =20=

>> my
>> system
>> I am on linux ( CentOS release 5.2 (Final) How do I go about
>> installingit?
>> Notice also that it's nokogiri (last letter is 'i').
>>
>> Sorry, I lost the original, but there is a nokogirl gem:
>
>> $ gem list -r nokogir
>>
>> *** REMOTE GEMS ***
>
> nokogiri (1.2.3)
> nokogirl (1.0)
> $ gem dep -r nokogirl
> Gem nokogirl-1.0
> nokogiri (>=3D 0, runtime)
>
> I tried it too and it's there. What's the point? Should we try to
> install nokogirl instead?

IIRC, Mike Dalessio always typed "nokogirl" instead of "nokogiri", so =20=

he released "nokogirl"=

Mike Dalessio

5/29/2009 2:12:00 AM

0

[Note: parts of this message were removed to make it a legal post.]

2009/5/28 Eric Hodel <drbrain@segment7.net>

>
> On May 28, 2009, at 16:12, Alice Gheorghiu wrote:
>
> Eric Hodel wrote:
>>
>>> On May 27, 2009, at 12:52, Alice Gheorghiu wrote:
>>>
>>> Notice also that it's nokogiri (last letter is 'i').
>>>
>>> Sorry, I lost the original, but there is a nokogirl gem:
>>>
>>
>> $ gem list -r nokogir
>>>
>>> *** REMOTE GEMS ***
>>>
>>
>> nokogiri (1.2.3)
>> nokogirl (1.0)
>> $ gem dep -r nokogirl
>> Gem nokogirl-1.0
>> nokogiri (>= 0, runtime)
>>
>> I tried it too and it's there. What's the point? Should we try to
>> install nokogirl instead?
>>
>
> IIRC, Mike Dalessio always typed "nokogirl" instead of "nokogiri", so he
> released "nokogirl"
>

Since I was a small boy, I have always wanted to be famous for my poor
typing skills. So, I would love to sit back and let this particular piece of
urban mythology propagate.

However, nokogirl is just too damn funny to not give credit where it is due:

http://judofyr.net/posts/nok...

Carry on.

Alice Gheorghiu

5/29/2009 5:51:00 AM

0

Mike Dalessio wrote:
> 2009/5/28 Eric Hodel <drbrain@segment7.net>
>
>>>>
>>> nokogiri (>= 0, runtime)
>>>
>>> I tried it too and it's there. What's the point? Should we try to
>>> install nokogirl instead?
>> IIRC, Mike Dalessio always typed "nokogirl" instead of "nokogiri", so he
>> released "nokogirl"

> Since I was a small boy, I have always wanted to be famous for my poor
> typing skills. So, I would love to sit back and let this particular
> piece of
> urban mythology propagate.

> However, nokogirl is just too damn funny to not give credit where it is
> due:
>
> http://judofyr.net/posts/nok...

> Carry on.

LOL -with tears in my eyes! Worked on a wget today, with the help of my
provider and it's a nice solution instead of the mechanize module I was
hoping to install from this nokogiri(l) or whatever. I'll keep trying
for my other data provider and ...Stay tuned!. In the meantime if
there's any ruby expert with a bit of time to review the attachement,
maybe I am missing something.
--
Posted via http://www.ruby-....

Alice Gheorghiu

6/1/2009 9:56:00 PM

0

Alice Gheorghiu wrote:
> Mike Dalessio wrote:
>> 2009/5/28 Eric Hodel <drbrain@segment7.net>
>>
>>>>>
>>>> nokogiri (>= 0, runtime)
>>>>
>>>> I tried it too and it's there. What's the point? Should we try to
>>>> install nokogirl instead?
>>> IIRC, Mike Dalessio always typed "nokogirl" instead of "nokogiri", so he
>>> released "nokogirl"
>
>> Since I was a small boy, I have always wanted to be famous for my poor
>> typing skills. So, I would love to sit back and let this particular
>> piece of
>> urban mythology propagate.
>
>> However, nokogirl is just too damn funny to not give credit where it is
>> due:
>>
>> http://judofyr.net/posts/nok...
>
>> Carry on.
>
> LOL -with tears in my eyes! Worked on a wget today, with the help of my
> provider and it's a nice solution instead of the mechanize module I was
> hoping to install from this nokogiri(l) or whatever. I'll keep trying
> for my other data provider and ...Stay tuned!. In the meantime if
> there's any ruby expert with a bit of time to review the attachement,
> maybe I am missing something.

The issue on my installation was that libxml2 appeared in my /usr/lib64
directory as libxml2.so.2, libxml2.so.2.6.26, and libxml2-2.6.26 so the
configuration file could not determine which one to use. By making a
symbolic link to the latest version libsml2.so.2.6.26 resolved the
problem. Both nokogiri and mechanize were successfully installed
--
Posted via http://www.ruby-....