Mod_ruby and Mac OS X

Anyone out there installed mod_ruby on Mac OS X 10.2?

I’ve already got apache and ruby (1.6.7) installed – they’re part of
the standard 10.2 install. I also have the Dec. 2002 edition of the OS
X dev tools installed.

For whatever reason, I cannot seem to get either eruby (which I don’t
particularly want) or mod_ruby to get past the “make” point of the
compile. Here’s what happens:

[Dans-iBook:~/tempdir/eruby-1.0.0] dbailey% make
gcc eruby_logo.o eruby_main.o liberuby.a
/usr/lib/ruby/1.6/powerpc-darwin6.0/libruby.a -lobjc -o eruby
gcc: /usr/lib/ruby/1.6/powerpc-darwin6.0/libruby.a: No such file or
directory
make: *** [eruby] Error 1

I get similar results when I try to compile mod_ruby.

Anyone with any experience in getting mod_ruby working with OS X? I’d
love to hear how you accomplished it.

Thanks!

– Dan

···

Dan Bailey
Web/Font Geek
www.fontosaurus.com
"In the depths of winter I finally learned that within me there lay an
invincible summer." – Albert Camus

Well, I don’t know MacOS doesn’t come with libruby.a but one way to get it
is to download the ruby source and compile it on your system.

Does MacOS X come with the GNU autoconf/automake tools?
Just curious.

Daniel Carrera
Graduate Teaching Assistant. Math Dept.
University of Maryland. (301) 405-5137

···

On Sun, 12 Jan 2003, Dan Bailey wrote:

Anyone out there installed mod_ruby on Mac OS X 10.2?

I’ve already got apache and ruby (1.6.7) installed – they’re part of
the standard 10.2 install. I also have the Dec. 2002 edition of the OS
X dev tools installed.

For whatever reason, I cannot seem to get either eruby (which I don’t
particularly want) or mod_ruby to get past the “make” point of the
compile. Here’s what happens:

[Dans-iBook:~/tempdir/eruby-1.0.0] dbailey% make
gcc eruby_logo.o eruby_main.o liberuby.a
/usr/lib/ruby/1.6/powerpc-darwin6.0/libruby.a -lobjc -o eruby
gcc: /usr/lib/ruby/1.6/powerpc-darwin6.0/libruby.a: No such file or
directory
make: *** [eruby] Error 1

I get similar results when I try to compile mod_ruby.

Anyone with any experience in getting mod_ruby working with OS X? I’d
love to hear how you accomplished it.

Thanks!

– Dan


Dan Bailey
Web/Font Geek
www.fontosaurus.com
“In the depths of winter I finally learned that within me there lay an
invincible summer.” – Albert Camus

You are missing libruby.a, which is not included in the Mac build of
Ruby (for reasons I don’t know). The easiest way to get libruby.a and
to continue to use the Mac provided Ruby 1.6.7 is to install RubyCocoa.
The latest release (for built-in Ruby 1.6.7 on Mac) is available as a
.dmg here (version 0.4.0 is the latest version):

http://www.imasy.or.jp/~hisa/mac/rubyosx/files/

It should give a working libruby.a in the right place, permitting
installation of mod_ruby. RubyCocoa is also interesting in its own
right.

If you want to build it yourself, you can manually install libruby.a
from the source, following the instructions found here:

http://www.imasy.or.jp/~hisa/mac/rubycocoa/build.en.html

If you don’t want to install RubyCocoa (yet), just stop after
installing libruby.a.

You can get the Ruby 1.6.7 .tgz file here:

http://xyz.lcs.mit.edu/ruby/1.6/

You can get the RubyCocoa source here (version 0.4.0 is the latest
version):

http://www.imasy.or.jp/~hisa/mac/rubyosx/files/

···

On Sunday, January 12, 2003, at 12:57 AM, Dan Bailey wrote:

Anyone out there installed mod_ruby on Mac OS X 10.2?

I’ve already got apache and ruby (1.6.7) installed – they’re part of
the standard 10.2 install. I also have the Dec. 2002 edition of the
OS X dev tools installed.

For whatever reason, I cannot seem to get either eruby (which I don’t
particularly want) or mod_ruby to get past the “make” point of the
compile. Here’s what happens:

[Dans-iBook:~/tempdir/eruby-1.0.0] dbailey% make
gcc eruby_logo.o eruby_main.o liberuby.a
/usr/lib/ruby/1.6/powerpc-darwin6.0/libruby.a -lobjc -o eruby
gcc: /usr/lib/ruby/1.6/powerpc-darwin6.0/libruby.a: No such file or
directory
make: *** [eruby] Error 1

I get similar results when I try to compile mod_ruby.

Anyone with any experience in getting mod_ruby working with OS X? I’d
love to hear how you accomplished it.

Thanks!

– Dan


Dan Bailey
Web/Font Geek
www.fontosaurus.com
“In the depths of winter I finally learned that within me there lay an
invincible summer.” – Albert Camus

if your ruby is the one installed with mac os x, you need to install
rubycocoa and possibly compile ruby from source.

if your ruby was built through fink, it sets up libruby as something
like:
libruby.1.6.7.dylib

so cut and paste the command make failed on back into a new command and
change your link flag to reflect the different file name.

regards
Brennan

···

On Sunday, January 12, 2003, at 12:57 AM, Dan Bailey wrote:

For whatever reason, I cannot seem to get either eruby (which I don’t
particularly want)

Mac OS X does not come with GNU autoconf/automake tools or make or gcc.
To get these (and many other development tools) you have to get the
Developer Tools. These are available for free as a download from Apple
Developer Connection. Registration is required, but is free.

···

On Sunday, January 12, 2003, at 01:28 AM, Daniel Carrera wrote:

Well, I don’t know MacOS doesn’t come with libruby.a but one way to
get it
is to download the ruby source and compile it on your system.

Does MacOS X come with the GNU autoconf/automake tools?
Just curious.

Daniel Carrera
Graduate Teaching Assistant. Math Dept.
University of Maryland. (301) 405-5137

On Sun, 12 Jan 2003, Dan Bailey wrote:

Anyone out there installed mod_ruby on Mac OS X 10.2?

I’ve already got apache and ruby (1.6.7) installed – they’re part of
the standard 10.2 install. I also have the Dec. 2002 edition of the
OS
X dev tools installed.

For whatever reason, I cannot seem to get either eruby (which I don’t
particularly want) or mod_ruby to get past the “make” point of the
compile. Here’s what happens:

[Dans-iBook:~/tempdir/eruby-1.0.0] dbailey% make
gcc eruby_logo.o eruby_main.o liberuby.a
/usr/lib/ruby/1.6/powerpc-darwin6.0/libruby.a -lobjc -o eruby
gcc: /usr/lib/ruby/1.6/powerpc-darwin6.0/libruby.a: No such file or
directory
make: *** [eruby] Error 1

I get similar results when I try to compile mod_ruby.

Anyone with any experience in getting mod_ruby working with OS X? I’d
love to hear how you accomplished it.

Thanks!

– Dan


Dan Bailey
Web/Font Geek
www.fontosaurus.com
“In the depths of winter I finally learned that within me there lay an
invincible summer.” – Albert Camus

has anyone informed apple of this? someone needs to tell them to include
RubyCocoa anyway. that should be a no brainer for them if they are going to
be including Ruby in the first place.

-transami

···

On Saturday 11 January 2003 11:32 pm, Mark Wilson wrote:

You are missing libruby.a, which is not included in the Mac build of
Ruby (for reasons I don’t know). The easiest way to get libruby.a and
to continue to use the Mac provided Ruby 1.6.7 is to install RubyCocoa.
The latest release (for built-in Ruby 1.6.7 on Mac) is available as a
.dmg here (version 0.4.0 is the latest version):