Running out of memory compiling R

Jonathan <[email protected]>
Newsgroups gmane.os.netbsd.ports
Message-ID <[email protected]>
Version: NetBSD 1.6.2_STABLE
Platform: i386
pkgsrc:  R-1.8.1nb2
Comment:
Statistical language for data analysis and graphics

I thought I would send in this fix I found for compiling the math 
package R. The first time I tried to compile /usr/pkgsrc/math/R I ran 
out of memory. Here is the message I got from the failed compile:
  
          <SNIP>
  model.matrix.reStruct             text    html    latex   example
  needUpdate                        text    html    latex   example
  needUpdate.modelStruct            text    html    latex   example
ERROR: building help failed for package 'nlme'
** Removing '/usr/pkgsrc/math/R/work/R-1.8.1/library/nlme'
gmake[2]: *** [nlme.ts] Error 1
gmake[2]: Leaving directory 
`/usr/pkgsrc/math/R/work/R-1.8.1/src/library/Recomme
nded'
gmake[1]: *** [recommended-packages] Error 2
gmake[1]: Leaving directory 
`/usr/pkgsrc/math/R/work/R-1.8.1/src/library/Recomme
nded'
gmake: *** [stamp-recommended] Error 2
*** Error code 2

      </SNIP>

I reset my limit in my C shell like so:

# limit memoryuse unlimited
# limit memorylocked unlimited
# limit openfiles  128

and the package compiled uneventfully. Here is the output of limit:


cputime         unlimited
filesize        unlimited
datasize        1048576 kbytes
stacksize       2048 kbytes
coredumpsize    unlimited
memoryuse       unlimited
memorylocked    unlimited
maxproc         160
openfiles       128

Just thought I would send this in for anyone else that might google the 
archives.

                                                                Kind 
regards,
                                                                Jonathan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.