pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Ruby 1.9 - whats happening there?

Hi guys,

I may have had perhaps a wishful thinking that pkgsrc contains Ruby 1.9,
which I found that it doesnt.

So i went and compiled it from source manually. Compile went ok but when I
try to install the rmagick gem, I get this error:

Mon 05Oct09 23:07:21
This installation of RMagick 2.12.0 is configured for
Ruby 1.9.1 (i386-dragonfly2.4.1) and ImageMagick 6.5.5 Q16

gcc -I. -I/usr/local/include/ruby-1.9.1/i386-dragonfly2.4.1
-I/usr/local/include/ruby-1.9.1 -I. -DRUBY_EXTCONF_H=\"extconf.h\"
-I/usr/pkg/include/ImageMagick -fPIC  -I/usr/pkg/include/ImageMagick
-ormmontage.o -c rmmontage.c
In file included from /usr/local/include/ruby-1.9.1/ruby/ruby.h:1125,
                 from /usr/local/include/ruby-1.9.1/ruby.h:32,
                 from rmagick.h:27,
                 from rmmontage.c:9:
/usr/local/include/ruby-1.9.1/ruby/missing.h:109: error: expected
identifier or '(' before 'sizeof'
/usr/local/include/ruby-1.9.1/ruby/missing.h:109: error: expected ')'
before '?' token

The code in missing.h is:

#ifndef HAVE_ISNAN
RUBY_EXTERN int isnan(double);

Im not a C programmer, but can I get some clues on how to fix this?

By the way, any ideas why Ruby 1.9 isnt yet in pkgsrc nor in pkgsrc-wip?
Its in FreeBSD ports and works very well. I searched through netbsd
mailing lists and couldnt find an answer. Ruby 1.9.1 is production ready.


Home | Main Index | Thread Index | Old Index