64-bit Ubuntu 7.10

HI Guys,

I am trying to install ferret as a gem ‘sudo gem install ferret’ and it
is
failing
to make the native libraries, I am using the 64 bit version of Ubuntu
7.10

Here is the first the first 30 lines or so, any hints, I know it is
probably
some sort of 32 bit v 64 bit problem??


Building native extensions. This could take a while…
ERROR: While executing gem … (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

ruby extconf.rb install ferret
creating Makefile

make
cc -I. -I/usr/lib/ruby/1.8/x86_64-linux -I/usr/lib/ruby/1.8/x86_64-linux
-I. -fPIC -fno-strict-aliasing -g -O2 -fPIC -D_FILE_OFFSET_BITS=64 -c
posh.c
cc -I. -I/usr/lib/ruby/1.8/x86_64-linux -I/usr/lib/ruby/1.8/x86_64-linux
-I. -fPIC -fno-strict-aliasing -g -O2 -fPIC -D_FILE_OFFSET_BITS=64 -c
q_phrase.c
q_phrase.c:1:20: error: string.h: No such file or directory
In file included from
/usr/lib/gcc/x86_64-linux-gnu/4.1.3/include/syslimits.h:7,
from
/usr/lib/gcc/x86_64-linux-gnu/4.1.3/include/limits.h:11,
from q_phrase.c:2:
/usr/lib/gcc/x86_64-linux-gnu/4.1.3/include/limits.h:122:61: error:
limits.h:
No such file or directory
In file included from global.h:4,
from index.h:4,
from search.h:8,
from q_phrase.c:3:
config.h:4:23: error: sys/types.h: No such file or directory
In file included from global.h:5,
from index.h:4,
from search.h:8,
from q_phrase.c:3:
except.h:73:20: error: setjmp.h: No such file or directory
In file included from global.h:5,
from index.h:4,
from search.h:8,
from q_phrase.c:3:
except.h:97: error: expected specifier-qualifier-list before ‘jmp_buf’
In file included from lang.h:7,
from global.h:6,
from index.h:4,
from search.h:8,
from q_phrase.c:3:
/usr/lib/ruby/1.8/x86_64-linux/ruby.h:40:21: error: stdlib.h: No such
file
or directory
/usr/lib/ruby/1.8/x86_64-linux/ruby.h:54:19: error: stdio.h: No such
file or
directory
/usr/lib/ruby/1.8/x86_64-linux/ruby.h:71:20: error: alloca.h: No such
file
or directory


Regards,
Marc.

Marc Galbraith wrote:

HI Guys,

I am trying to install ferret as a gem ‘sudo gem install ferret’ and it
is
failing

You seem to be missing the C library development package. Try installing
glibc.

Marko