If at all possible, you might want to get perl5.6. From here:
Similarly, Perl can now process files larger than 2 gigabytes on computers that support them. Just add -Duselargefiles to your Configure, and off you go.
I assume this means that everything pre 5.6 could not handle >2gb files.
72656B636148206C72655020726568746F6E41207473754A
| [reply] |
There is a bug report regarding files greater that 2Gb on the perl5_porter's mailing list. Apparently it applies to most 64bit systems that have large file support (and that includes Solaris 2.6). You can check it out for yourself.
A snippet from the report says: ... The size returned by lstat is incorrect for files over 2 GB for
perl 5.004_04 and earlier versions. I see this under Solaris 2.6
and IRIX 6.2 ...
I would imagine that a likely solution would be to work with perl above 5.004_04, but you already stated that you're working with 5.005_03, so I really don't know what to gather from this. HTH
#!/home/bbq/bin/perl
# Trust no1!
| [reply] |
I don't mean to sound condescending at all here, so please
don't take it as such. Are you sure the Solaris machine
you are running can support > 2gb files? I know in
general Solaris can support files over that size, but I ran
into an old machine running Solaris 2.6, which have
absolutely no knowledge of the installation procedures used,
and it could only support files up to 2gb. If you haven't,
I'd suggest doing a simple 'dd' test to check for certain
what the max file size is. Nothing but the kernel should
ever have to know what this number is. All compilers and
interpreters just use the underlying kernel methods for
reading and writing to files, so it really shouldn't affect
anything (unless something weird were done, like bringing
over the binary from somewhere else). | [reply] |
Yes. Solaris 2.6 (with reasonable kernel revisions) supports largefiles.
You simply have to mount your file system -o largefiles.
| [reply] |
Further to the excellent help above it might also be worth looking at the /etc/mnttab file. This will confirm that the largefiles option has been used when creating your file systems. (The third field's options includes largefiles/nolargefiles) | [reply] |