Jonathan's Ruby Page

Ruby is a very nice clean OO scripting language.

Large File Support

Here is a small hack I wrote so that Ruby 1.6.7 can deal with large files (> 2 GB) on platforms which support them (tested with Linux 2.4, FreeBSD 4.x, and Solaris 2.x; your mileage may vary). After finishing this I noticed that Matz may be planning this anyway (or something ... I can't read Japanese), so hopefully it will be in the distribution soon.

Note that if you want to run autoconf after applying this patch (this should not be necessary), you need a modern version (e.g. 2.52) for the SYS_LARGEFILE and related macros. On BSD, you need at least version 2.52i (earlier versions have a bug in the check for whether setpgrp takes arguments).

Updated: Fixed seg fault when using backticks (2002/3/8).
Updated: Large files are already supported in version 1.8 and later!


Jonathan E. Baker
Last modified: Fri Mar 8 00:58:48 PST 2002