Ruby and Large File sizes

Hi:

Does ruby support files greater than 4GB?

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

In article 20021030082754.A44108@freeze.org,

···

Jim Freeze jim@freeze.org wrote:

Hi:

Does ruby support files greater than 4GB?

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.

Phil

Hi,

···

In message “Ruby and Large File sizes” on 02/10/30, Jim Freeze jim@freeze.org 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?

···

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 jim@freeze.org writes:

Does ruby support files greater than 4GB?

If your platform does.

  					matz.


Jim Freeze

Another good night not to sleep in a eucalyptus tree.

Jim Freeze wrote:

Hi,

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

···

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:

Does ruby support files greater than 4GB?

If your platform does.

win32/cygwin platforms supports these files?

···


Best regards,
Bulat mailto:bulatz@integ.ru