tags:

views:

57

answers:

2

The ruby extensions in the "ext" directory of my ubuntu ruby interpreter i.e. zlib, etc, io, ... fail to load.

I mean they're recognized as extensions - I don't get a "no such file" error, yet they fail to load (i.e. return false).

Running this: puts require 'zlib'

prints "false"

Is there a way of tracking down why a module fails to load? some kind of trace or debug I could use?

+1  A: 

You could try ruby-debug. It sounds like your problem is going to be the C libraries, either missing or not on a path where ruby can see them.

ire_and_curses
A: 

A return value of false does not mean that there was an error. It means that the library wasn't loaded again, because it was already loaded.

If there were an error, you would get a LoadError exception.

Jörg W Mittag
D'oh, sorry! Yes - after doing some checking I see that it has indeed loaded. ;-)
cartoonfox