From: Gennady Date: 2003-03-07T02:52:17+09:00 Subject: Re: OS X - eruby install problem: "libruby.a: No such file or directory" ----- Original Message ----- From: "Francis Hwang" Newsgroups: comp.lang.ruby To: "ruby-talk ML" Sent: Thursday, March 06, 2003 9:33 AM Subject: Re: OS X - eruby install problem: "libruby.a: No such file or directory" > 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? You have the clue in your error message ;-) -- rerun ranlib on libruby.a $ ranlib /usr/local/lib/ruby/1.6/powerpc-darwin6.0/libruby.a And then issue "make" again. Gennady. > > Francis > > Gennady wrote in message news:... > > 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. > >