And based on the advice there, tried installing RubyCocoa to get
libruby.a along with it. The RubyCocoa install seemed to go fine, but
libruby.a still isn’t there.
Any pointers as to where I should look next would be greatly
appreciated.
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.
···
On Saturday, February 22, 2003, at 11:25 AM, Francis Hwang wrote:
I’m trying to install eruby on OS X – it’s 10.2, meaning Ruby was
part of the standard install. My make gets this error:
gcc: /usr/lib/ruby/1.6/powerpc-darwin6.0/libruby.a: No such file or
directory
Googling around in the archives, I found this thread:
And based on the advice there, tried installing RubyCocoa to get
libruby.a along with it. The RubyCocoa install seemed to go fine, but
libruby.a still isn’t there.
Any pointers as to where I should look next would be greatly
appreciated.
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.
----- Original Message -----
From: “Francis Hwang” sera@fhwang.net
To: “ruby-talk ML” ruby-talk@ruby-lang.org
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
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.