Build 32 bit version of ruby 1.92 on snow leopard

J

Jean-eric Godard

Hello,

Anybody can help me , I have googled and spend the last two night
searching forum for the magic terminal sentence that will build a 32 bit
version of Ruby 1.92 on Snow Leopard.

I need it because "Bowline" ( an application that build stand alone
executable from ruby/Javascript/CSS)
only work with Ruby 1.9 32 bit.

Can someone help

Thanks
 
D

Dave Howell

Hello,
=20
Anybody can help me , I have googled and spend the last two night
searching forum for the magic terminal sentence that will build a 32 = bit
version of Ruby 1.92 on Snow Leopard.

The magic incantation you need is something like

ARCHFLAGS=3D"-arch i386"

It's not quite that simple, but I don't remember what exactly I had to =
do to make it work. Google should be able to tell you how to apply it to =
the compile now that you know what command you want.=20

You can test the result to see if it built it the way you wanted or not =
by finding one of the binary files that comes from the compile, and =
using the 'file' command:=20

$ file /usr/bin/ruby
ruby: Mach-O universal binary with 2 architectures
ruby (for architecture ppc7400): Mach-O executable ppc
ruby (for architecture i386): Mach-O executable i386

My current version of ruby (version 1.8.7) has both a 32-bit PowerPC and =
. . huh? Where's my 64-bit version??

$whereis ruby
/usr/bin/ruby

$file /system/library/frameworks/ruby.framework/ruby
/system/library/frameworks/ruby.framework/ruby: Mach-O universal =
binary with 3 architectures
/system/library/frameworks/ruby.framework/ruby (for architecture =
x86_64): Mach-O 64-bit dynamically linked shared library x86_64
/system/library/frameworks/ruby.framework/ruby (for architecture =
i386): Mach-O dynamically linked shared library i386
/system/library/frameworks/ruby.framework/ruby (for architecture =
ppc7400): Mach-O dynamically linked shared library ppc

Well, that's not good. The version of Ruby that came with SnowLeopard =
has THREE architectures in it: PowerPC, 32-bit Intel, and 64-bit Intel. =
Now, how the heck did a two-architecture version get in my /usr/bin =
folder? Well, anyway, hopefully that'll help you compile a 32-bit =
version of 1.9.2
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top