From: Christian Szegedy Date: 2002-10-31T22:39:47+09:00 Subject: Re: Ruby and Large File sizes Jim Freeze wrote: > On Thursday, 31 October 2002 at 15:50:01 +0900, Yukihiro Matsumoto wrote: > >>Hi, >> >>In message "Ruby and Large File sizes" >> on 02/10/30, Jim Freeze writes: >> >>|Does ruby support files greater than 4GB? >> >>If your platform does. >> >> matz. > > > Is there a way to control Ruby to compile to 64bit or 32bit > for SunOS? > I have successfully built Ruby for 64 bits under AIX, the only thing I had to do was to persuade the compiler to compile for 64 bits. Under AIX, there is a simple way: I just defined the environment variable OBJECT_MODE=64. You must look at the documentation of your C-compiler to find out how to do this. (Of course, you must do it before running the configure script.) The only problem I experienced was that the configure script added -I/usr/local/include to the compilation flags. This lead to hard to detect obsure errors, because the 64 platform needed its own header files and this was overriden by this setting. I had to prevent confifure from doing this, but I am not sure whether you would need such tricks. Best Regards, Christian