From: Eric Hodel Date: 2009-07-02T06:16:23+09:00 Subject: Re: 64-bit Ruby for OS X ? On Jun 30, 2009, at 18:36, Greg Willits wrote: > Has anyone built a 64-bit Ruby for Leopard. I've googled my brains > out, > but am finding nothing. > > I'm using 1.8.6 right now, but I could start testing 1.9.x if > necessary. > > I need it for pure Ruby projects to work on some large data > aggregation > tasks that are whacking the 4GB RAM limit. Read: http://developer.apple.com/documentation/Darwin/Conceptual/64bitPorting/building/building.html#/ /apple_ref/doc/uid/TP40001064-CH208-BHCHDAFB For 1.9 I configured: $ LDFLAGS="-arch x86_64" CFLAGS="-arch x86_64 -mmacosx-version- min=10.5 -D_FILE_OFFSET_BITS=64" ./configure (ignore the error from fuse, it seems configure doesn't use CFLAGS there) `make test` finishes most tests, `make test-all` fails with a missing encoding (maybe iconv isn't compiled 64-bit?) The built ruby is 64-bit though: $ ./ruby -ve 'p 1.size' ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-darwin9.7.0] 8 Compared to Apple ruby: $ ruby -ve 'p 1.size' ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0] 4 I imagine the same configure flags would work for 1.8.