Plea for help with Large File Support

Martin von Loewis loewis at informatik.hu-berlin.de
Mon Aug 6 04:15:34 EDT 2001


Chris Withers <chrisw at nipltd.com> writes:

> What do I need to do to get Python 1.5.2 and Python 2.1 compiled in
> such a way that I read and write to files bigger than 2GB?

I recommend compiling with -D_FILE_OFFSET_BITS=64. That will
automatically make python use fopen64. Then, you should run a simple
program like

open("/etc/passwd")

under strace(1), and check whether open(2) is called with O_LARGEFILE.
If it is, and you still get an error, then it is a kernel problem.

Regards,
Martin



More information about the Python-list mailing list