From: Jordon Bedwell Date: 2009-07-02T06:28:34+09:00 Subject: Re: 64-bit Ruby for OS X ? I personally won't use anything that isn't under x64. No offense to people who are scared about memory usage but I prefer to be able to address my 12GB+ of Ram on each of my servers without needing to hack my Kernel for anything more than security, and speed. I've had no problems with the memory the gentleman reported with memory consumption crawling on OSX, BSD or Debian so perhaps it's just a bad compile in his behalf? Our Daemons that monitor our main server would have caught a memory leak if it was happening but they haven't yet and even on a check with the amount of hits we get, our total memory usage for Ruby is only 1.5GB total for all 15 Processes that run Ruby. -----Original Message----- From: Eric Hodel [mailto:drbrain@segment7.net] Sent: Wednesday, July 01, 2009 4:16 PM To: ruby-talk ML 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/buil ding/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.