# Nokogiri on Mediatemple gs

**URL:** <https://www.ruby-forum.com/t/nokogiri-on-mediatemple-gs/167988>\
**Category:** Ruby\
**Created:** [May 14, 2009, 6:26pm UTC](https://www.ruby-forum.com/t/nokogiri-on-mediatemple-gs/167988 "2009-05-14T18:26:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![enzor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/bbe5ce/32.png) [@enzor](https://www.ruby-forum.com/u/enzor)\
**Post date:** [May 14, 2009, 6:26pm UTC](https://www.ruby-forum.com/t/nokogiri-on-mediatemple-gs/167988/1 "2009-05-14T18:26:36Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![enzor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/bbe5ce/32.png) [@enzor](https://www.ruby-forum.com/u/enzor)\
**Post date:** [May 14, 2009, 6:39pm UTC](https://www.ruby-forum.com/t/nokogiri-on-mediatemple-gs/167988/2 "2009-05-14T18:39:55Z")

</div>

2009/5/14 Enzo R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

> 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’

---

<div class="post-metadata">

**Author:** ![enzor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/bbe5ce/32.png) [@enzor](https://www.ruby-forum.com/u/enzor)\
**Post date:** [May 14, 2009, 8:32pm UTC](https://www.ruby-forum.com/t/nokogiri-on-mediatemple-gs/167988/3 "2009-05-14T20:32:12Z")

</div>

On May 14, 2009, at 09:47, Enzo R. wrote:

> anyway, anyone is welcome to provide a solution until then 😃  
> Install libxml2 into your home directory then, and point the gem to  
> your custom install.

---

<div class="post-metadata">

**Author:** ![enzor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/bbe5ce/32.png) [@enzor](https://www.ruby-forum.com/u/enzor)\
**Post date:** [May 15, 2009, 8:55am UTC](https://www.ruby-forum.com/t/nokogiri-on-mediatemple-gs/167988/4 "2009-05-15T08:55:35Z")

</div>

Problem solved.

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

so, the issue was resolved with

gem install nokogiri --source=[http://gems.mediatemple.net](http://gems.mediatemple.net)

hope this can help 🙂

---

<div class="post-metadata">

**Author:** ![enzor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/bbe5ce/32.png) [@enzor](https://www.ruby-forum.com/u/enzor)\
**Post date:** [May 14, 2009, 6:47pm UTC](https://www.ruby-forum.com/t/nokogiri-on-mediatemple-gs/167988/5 "2009-05-14T18:47:20Z")

</div>

Mike D. wrote:

> 2009/5/14 Enzo R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
> 
> > 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 😃
