OS X - eruby install problem: "libruby.a: No such file or directory"

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:

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=utf-8&th=d0b4b77b7bdce612&rnum=3

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.

Thanks,

Francis

I haven’t ran across this lib yet. Is it just a soft link?
I installed ruby180 this morning and this is my lib directory:

ls -l
total 8008
-rw-r–r-- 1 jdf staff 2371640 Feb 22 10:24 libruby-static.a
-r-xr-xr-x 1 jdf staff 1714824 Feb 22 10:24 libruby.1.8.0.dylib
lrwxr-xr-x 1 jdf staff 19 Feb 22 10:24 libruby.1.8.dylib → libruby.1.8.0.dylib
lrwxr-xr-x 1 jdf staff 19 Feb 22 10:24 libruby.dylib → libruby.1.8.0.dylib
drwxrwxrwx 4 jdf staff 136 Jan 25 09:50 ruby

···

On Sunday, 23 February 2003 at 4:25:54 +0900, 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


Jim Freeze

Hurewitz’s Memory Principle:
The chance of forgetting something is directly proportional
to … to … uh …

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:

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=utf-
8&th=d0b4b77b7bdce612&rnum=3

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.

Thanks,

Francis

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.

Newsgroups: comp.lang.ruby

···

----- 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 :wink: – 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 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.