Okay, I built ruby 1.6.8, no problem, but on installing the stable
version of eruby (1.0.3) I get this error:
[francis eruby-1.0.3]# make
gcc -g -O2 -pipe -fno-common -Wall -I.
-I/usr/local/lib/ruby/1.6/powerpc-darwin6.0 -c eruby_lib.c
ar rcu liberuby.a eruby_lib.o
cc -dynamic -bundle -undefined suppress -flat_namespace
-L/usr/local/lib eruby_lib.o \
-lobjc -o liberuby.bundle.1.0.3
gcc -L/usr/local/lib eruby_logo.o eruby_main.o -L. -leruby
/usr/local/lib/ruby/1.6/powerpc-darwin6.0/libruby.a -lobjc -o eruby
ld: table of contents for archive:
/usr/local/lib/ruby/1.6/powerpc-darwin6.0/libruby.a is out of date;
rerun ranlib(1) (can't load from it)
make: *** [eruby] Error 1
Any ideas as to where to look next?
Francis
Gennady <bystr / mac.com> wrote in message news:<E1F151A3-46BC-11D7-BBC9-0003939AEA24 / mac.com>...
> Standard OS X distribution does not have libruby.a, however it is very
> easy and straight forward to build Ruby yourself. I have successfully
> built ruby 1.6.8, eruby 1.0.0 and modruby 1.0.2 and made them all run
> under Apache 2.43 on OS X 10.2. The only tiny problem I experienced
> along the way was that to properly compile and install modruby I had to
> create directory "doc" manually. I compiled all three with
> "--enable-shared" and had to specify location of Apache 2.43 apxs
> executable for modruby.
>
> Gennady.