Problem installing some Gems on Linux

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

:frowning:

The outputs are here: 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!

On Fri, Aug 20, 2010 at 19:08, Baldio B. [email protected] 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

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.

Pablo Torres N. wrote:

On Fri, Aug 20, 2010 at 19:08, Baldio B. [email protected] 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

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
:slight_smile:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs