Prev: What kind of testing for executables?
Next: String comparison. Why does Ruby consider this true?
From: Jean-eric Godard on 18 Jun 2010 10:56 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 -- Posted via http://www.ruby-forum.com/.
From: Dave Howell on 20 Jun 2010 19:21 On Jun 18, 2010, at 7:56 , Jean-eric Godard wrote: > 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. The magic incantation you need is something like ARCHFLAGS="-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. 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: $ 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
|
Pages: 1 Prev: What kind of testing for executables? Next: String comparison. Why does Ruby consider this true? |