Forum: Ruby Nokogiri on Mediatemple gs

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
D38ed82faa0b3296a56c0f768f32ce57?d=identicon&s=25 Enzo Rivello (enzor)
on 2009-05-14 18:26
Hi there!
Has anyone tried to install the Nokogiri gem on a Mediatemple
Grid-Service?

I got a function in my rails app that needs this library, and when i try
to install it i got the problem:


libxml2 is missing.  try 'port install libxml2' or 'yum install libxml2'
*** extconf.rb failed ***

which isn't true, because:


xxxxx@cl02:~$ whereis libxml2
libxml2: /usr/lib/libxml2.a /usr/lib/libxml2.la /usr/lib/libxml2.so
/usr/include/libxml2


apt-get doesn't work, because sudo is disabled

so, suggestions?
Bd6e7860b5a891bff077aeaeb5434e60?d=identicon&s=25 Mike Dalessio (Guest)
on 2009-05-14 18:39
(Received via mailing list)
2009/5/14 Enzo Rivello <enzor@sefitalia.com>


> xxxxx@cl02:~$ whereis libxml2
> libxml2: /usr/lib/libxml2.a /usr/lib/libxml2.la /usr/lib/libxml2.so
> /usr/include/libxml2
>


If you're on Debian/Ubuntu, you'll also need to install 'libxml2-dev'
D38ed82faa0b3296a56c0f768f32ce57?d=identicon&s=25 Enzo Rivello (enzor)
on 2009-05-14 18:47
Mike Dalessio wrote:
> 2009/5/14 Enzo Rivello <enzor@sefitalia.com>
>
>
>> xxxxx@cl02:~$ whereis libxml2
>> libxml2: /usr/lib/libxml2.a /usr/lib/libxml2.la /usr/lib/libxml2.so
>> /usr/include/libxml2
>>
>
>
> If you're on Debian/Ubuntu, you'll also need to install 'libxml2-dev'

of course, mt gs runs on debian, but still i can't  use apt-get because
sudo is disabled.

anyway, i opened a ticket to ask for assistance, hope to have the answer
soon, so i'll post it here

anyway, anyone is welcome to provide a solution until then :-D
58479f76374a3ba3c69b9804163f39f4?d=identicon&s=25 Eric Hodel (Guest)
on 2009-05-14 20:32
(Received via mailing list)
On May 14, 2009, at 09:47, Enzo Rivello wrote:

> anyway, anyone is welcome to provide a solution until then :-D
Install libxml2 into your home directory then, and point the gem to
your custom install.
D38ed82faa0b3296a56c0f768f32ce57?d=identicon&s=25 Enzo Rivello (enzor)
on 2009-05-15 08:55
Problem solved.

MT has a set of tuned gems, available list on :
http://gems.mediatemple.net/list.php

so, the issue was resolved with

gem install nokogiri --source=http://gems.mediatemple.net

hope this can help :-)
This topic is locked and can not be replied to.