Install errors

I’ve been trying to install Ferret on RedHat 7.3, Ruby 1.8 (let me know
if more details would be helpful) using the gem install. I’ve tried
every version >10 and it installs, but I get errors:

Building native extensions. This could take a while…
In file included from q_filtered_query.c:1:
search.h:683: array size missing in ‘comparables’
make: *** [q_filtered_query.o] Error 1
In file included from q_filtered_query.c:1:
search.h:683: array size missing in ‘comparables’
(Yes, I get it twice.)

It then goes on to successfully install, but when I go to test in the
Ruby console I get an error:

/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
‘gem_original_require’: no such file to load – ferret_ext (LoadError)

Any ideas on what might be going on? I’ve had it running on Win32
locally, but I can’t get it going on my staging server.

Thanks.

Hi!

Actually your installation has failed, but unfortunately gem doesn’t
notice that the compilation failed and pretends everything is ok.

I guess it has something to do with your build environment on that
machine. What does ‘gcc --version’ give you on that box? What exact Ruby
version do you have? Were you able to install other gems containing
native extensions (i.e., Mongrel, Hpricot, RMagick)?

Jens

On Wed, Jul 11, 2007 at 04:01:31AM +0200, Dan Wick wrote:

(Yes, I get it twice.)
Thanks.


Posted via http://www.ruby-forum.com/.


Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk


Jens Krämer
webit! Gesellschaft für neue Medien mbH
Schnorrstraße 76 | 01069 Dresden
Telefon +49 351 46766-0 | Telefax +49 351 46766-66
[email protected] | www.webit.de

Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa

On Wed, Jul 11, 2007 at 01:29:35PM +0200, Dan Wick wrote:

What does ‘gcc --version’ give you on that box?
2.96

now that is really old :wink: Even old stable Debian Sarge has 3.3.5
(where Ferret compiles, with small tweaks in the Makefile).

I guess a newer version of gcc will solve your problem.

Jens


Jens Krämer
webit! Gesellschaft für neue Medien mbH
Schnorrstraße 76 | 01069 Dresden
Telefon +49 351 46766-0 | Telefax +49 351 46766-66
[email protected] | www.webit.de

Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa

What does ‘gcc --version’ give you on that box?
2.96

What exact Ruby version do you have?
Ruby 1.8.4 (2005-12-24) [i686-linux]

Were you able to install other gems containing native extensions (i.e., Mongrel, Hpricot, RMagick)?
I successfully installed and have been running Mongrel with no problems.

Anything else I should check?