# Problem installing some Gems on Linux

**URL:** <https://www.ruby-forum.com/t/problem-installing-some-gems-on-linux/193651>\
**Category:** Ruby\
**Created:** [August 21, 2010, 2:07am UTC](https://www.ruby-forum.com/t/problem-installing-some-gems-on-linux/193651 "2010-08-21T02:07:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![baldio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f4b2a3/32.png) [@baldio](https://www.ruby-forum.com/u/baldio)\
**Post date:** [August 21, 2010, 2:07am UTC](https://www.ruby-forum.com/t/problem-installing-some-gems-on-linux/193651/1 "2010-08-21T02:07:59Z")

</div>

Hi all,

I can’t install some gems (nokogiri, hpricot, sqlite3-ruby…) on Slitaz  
Linux distro, it fails when it is builiding.

Slitaz is a minidistro with busybox, and I think I have installed all  
the development tools: gcc, g++, make, automake, libc, … and ruby-dev  
of course.

Maybe can it be a path problem?

I have reduced the problem to “try\_cpp”: gem calls extconf.rb, and it  
calls mkmf.rb that fails to compile a cpp.

# ruby -r mkmf -e ‘try\_cpp(“”)’ works on my main computer, but here no

☹

The outputs are here: [http://pastie.org/1104033](http://pastie.org/1104033)

I don’t know how to solve it, I’m new on Ruby, but I really would like  
to get it works, and also upstream the solution to the Slitaz package  
mantainers if needed.

Thanks!

---

<div class="post-metadata">

**Author:** ![baldio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f4b2a3/32.png) [@baldio](https://www.ruby-forum.com/u/baldio)\
**Post date:** [August 21, 2010, 5:17pm UTC](https://www.ruby-forum.com/t/problem-installing-some-gems-on-linux/193651/2 "2010-08-21T17:17:47Z")

</div>

On Fri, Aug 20, 2010 at 19:08, Baldio B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi all,
> 
> I can’t install some gems (nokogiri, hpricot, sqlite3-ruby…) on Slitaz  
> Linux distro, it fails when it is builiding.
> 
> The outputs are here: [http://pastie.org/1104033](http://pastie.org/1104033)

For nokogiri you need all these (I _think_, I can’t confirm right  
now): libxml2 libxml2-dev libxslt libxslt-dev

Use your system’s package manager to install them and try ‘gem install  
nokogiri’ again.

---

<div class="post-metadata">

**Author:** ![baldio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f4b2a3/32.png) [@baldio](https://www.ruby-forum.com/u/baldio)\
**Post date:** [August 21, 2010, 8:35pm UTC](https://www.ruby-forum.com/t/problem-installing-some-gems-on-linux/193651/3 "2010-08-21T20:35:26Z")

</div>

Pablo Torres N. wrote:

> On Fri, Aug 20, 2010 at 19:08, Baldio B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Hi all,
> > 
> > I can’t install some gems (nokogiri, hpricot, sqlite3-ruby…) on Slitaz  
> > Linux distro, it fails when it is builiding.
> > 
> > The outputs are here: [http://pastie.org/1104033](http://pastie.org/1104033)
> 
> For nokogiri you need all these (I _think_, I can’t confirm right  
> now): libxml2 libxml2-dev libxslt libxslt-dev
> 
> Use your system’s package manager to install them and try ‘gem install  
> nokogiri’ again.

Thanks Pablo,

I didn’t have installed libxml2 nor libxslt, and this has works for  
nokogiri but I had to solve the main problem first.

Solution:  
The needed packages for build gems are: gcc, glibc, binutils and  
linux-headers (plus dependencies of gems itself)

And I didn’t have linux-headers installed, now it’s works and I’m happy  
🙂
