nokogirl on ubuntu: failed to build gem native extension


E

Edouard Dantes

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.
 
Ad

Advertisements

A

Alice Gheorghiu

Radosław Bułat said:
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?
 
E

Eric Hodel

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?

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)
 
Ad

Advertisements

A

Alice Gheorghiu

Eric said:
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?
 
E

Eric Hodel

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"=
 
M

Mike Dalessio

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

2009/5/28 Eric Hodel said:
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/nokogirl.html

Carry on.
 
A

Alice Gheorghiu

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/nokogirl.html
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.
 
A

Alice Gheorghiu

Alice said:
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
 
Ad

Advertisements

R

Reza Naq

Hi Alice

Could you please tell me WHICH config file you changed or how? I'm
porting a tiny app from Windows to Ubunto and nokogiri port is one of
the problems I've had so far.

Thnaks
 
Ad

Advertisements

M

Mike Dalessio

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

Greetings and salutations!


Hi Alice

Could you please tell me WHICH config file you changed or how? I'm
porting a tiny app from Windows to Ubunto and nokogiri port is one of
the problems I've had so far.
The thread you've posted to is over a year and a half old! That's ancient.

You may get better responses if you described what your issue is, attaching
information about your Ubuntu version, libxml2 and libxslt versions, and the
contents of your mkmf.log file after the failed gem installation.

Hint: you may want to check out
http://nokogiri.org/tutorials/installing_nokogiri.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top