We are using SunOS with 64bit processors.
The Perl we are using is compiled for 32bit
and is limited to 4GB files. I was wondering
if Ruby had similar limiations.
···
–
Jim Freeze
Those who do not understand Unix are condemned to reinvent it, poorly.
– Henry Spencer
We are using SunOS with 64bit processors.
The Perl we are using is compiled for 32bit
and is limited to 4GB files. I was wondering
if Ruby had similar limiations.
I would tend to think it has more to do with how you compile Perl/Ruby.
I’m guessing that if you can get gcc to create a 64 bit Perl/Ruby binary
that you wouldn’t have that limitation.
Oh, and I think it may also have something to do with your filesystem.
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
···
On Thursday, 31 October 2002 at 15:50:01 +0900, Yukihiro Matsumoto wrote:
In message “Ruby and Large File sizes” >> on 02/10/30, Jim Freeze jim@freeze.org writes: