rle out of memory problem using patch

I am just learning to use grass. We have version 4.0 from the Young
Minds CD. We also have the rle landscape structure programs from the
Univ. of Wyoming. When I tried to run rle.patch I encountered error
G_calloc out of memory. What is this and how can I correct the
problem? Thanks.