Jim Morrison wrote:
Guys,

Sorry this is a little off topic...  Is there a size limit on DBM's? (Or
Linux files for that matter.. )

I've thrown some details of my box/code below..

Thing is I'm getting a "write error" and it seems to always happen when
the DBM gets to 2.0Gb .. (you may think I'm mad for trying to make 2G
DBM's - but they don't usually get more than a couple of 100k - it's
just a big site.. Honest ;-)
You need to have Perl built with largefiles support to work with files larger than 2GB. Do:
./Configure -Duselargefiles [...] && make install
(check if you don't have it already via 'perl -V|grep uselargefiles')
and afterwards you need to rebuild mod_perl so it'll pick the new compile flags. You may need to have Apache compiled with largefiles support as well, which normally happens automatically if your fs/os supports it. Or it can be forced with:
% CFLAGS="D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" ./configure [...]

__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com

Reply via email to