arnholtat at appstate.edu
2010-Apr-22 18:03 UTC
[R] Unable to make bitmapdll files on windows 7 64 bit machine
I am trying to build a windows 32 bit version of R 2.11.0 from source on a machine running windows 7 - 64 bit while running as the machine's administrator. I am able to run "make all recommended"...However, once I attempt to build the bitmap files I get the following: C:\Rsource\R-2.11.0\src\gnuwin32>make bitmapdll make -C bitmap make[1]: Entering directory `/cygdrive/c/Rsource/R-2.11.0/src/gnuwin32/bitmap' make CC='gcc -std=gnu99' AR='ar' \ CFLAGS="-O3 -I../../../extra/zlib -DPNG_NO_MMX_CODE" \ RANLIB=ranlib ZLIBLIB=../../../extra/zlib -C libpng \ -f scripts/makefile.mingw prefix=foo libpng.a gcc -std=gnu99 -c -O3 -I../../../extra/zlib -DPNG_NO_MMX_CODE -o png.o png.c Assembler messages: Fatal error: can't create png.o: Permission denied make[3]: *** [png.o] Error 1 make[2]: *** [buildpng] Error 2 make[1]: *** [all] Error 2 make[1]: Leaving directory `/cygdrive/c/Rsource/R-2.11.0/src/gnuwin32/bitmap' make: *** [bitmapdll] Error 2 Any suggestions/hints on what I am messing up are most appreciated. Thanks in advance. Alan- Alan T. Arnholt Professor and Assistant Chair Department of Mathematical Sciences Appalachian State University T:(828)262-2863 F:(828)265-8617 http://www1.appstate.edu/~arnholta/
Prof Brian Ripley
2010-Apr-23 06:03 UTC
[R] Unable to make bitmapdll files on windows 7 64 bit machine
On Thu, 22 Apr 2010, arnholtat at appstate.edu wrote:> I am trying to build a windows 32 bit version of R 2.11.0 from source on a machine running > windows 7 - 64 bit while running as the machine's administrator. > I am able to run "make all recommended"...However, once I attempt to build the bitmap files I get the following: > > C:\Rsource\R-2.11.0\src\gnuwin32>make bitmapdll > make -C bitmap > make[1]: Entering directory `/cygdrive/c/Rsource/R-2.11.0/src/gnuwin32/bitmap' > make CC='gcc -std=gnu99' AR='ar' \ > CFLAGS="-O3 -I../../../extra/zlib -DPNG_NO_MMX_CODE" \ > RANLIB=ranlib ZLIBLIB=../../../extra/zlib -C libpng \ > -f scripts/makefile.mingw prefix=foo libpng.a > gcc -std=gnu99 -c -O3 -I../../../extra/zlib -DPNG_NO_MMX_CODE -o png.o png.c > Assembler messages: > Fatal error: can't create png.o: Permission denied > make[3]: *** [png.o] Error 1 > make[2]: *** [buildpng] Error 2 > make[1]: *** [all] Error 2 > make[1]: Leaving directory `/cygdrive/c/Rsource/R-2.11.0/src/gnuwin32/bitmap' > make: *** [bitmapdll] Error 2 > > Any suggestions/hints on what I am messing up are most appreciated.The permissions on bitmap/libpng. There have been reports of this when Rtools is used on Windows 7, so try fixing the permissions under bitmap manually or unpacking those components directly from the tarball sources. Such questions are best asked on R-devel: see the posting guide.> > Thanks in advance. > > Alan- > > Alan T. Arnholt > Professor and Assistant Chair > Department of Mathematical Sciences > Appalachian State University > T:(828)262-2863 > F:(828)265-8617 > http://www1.appstate.edu/~arnholta/ > >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Duncan Murdoch
2010-Apr-23 08:47 UTC
[R] Unable to make bitmapdll files on windows 7 64 bit machine
On 22/04/2010 2:03 PM, arnholtat at appstate.edu wrote:> I am trying to build a windows 32 bit version of R 2.11.0 from source on a machine running > windows 7 - 64 bit while running as the machine's administrator. > I am able to run "make all recommended"...However, once I attempt to build the bitmap files I get the following: > > C:\Rsource\R-2.11.0\src\gnuwin32>make bitmapdll > make -C bitmap > make[1]: Entering directory `/cygdrive/c/Rsource/R-2.11.0/src/gnuwin32/bitmap' > make CC='gcc -std=gnu99' AR='ar' \ > CFLAGS="-O3 -I../../../extra/zlib -DPNG_NO_MMX_CODE" \ > RANLIB=ranlib ZLIBLIB=../../../extra/zlib -C libpng \ > -f scripts/makefile.mingw prefix=foo libpng.a > gcc -std=gnu99 -c -O3 -I../../../extra/zlib -DPNG_NO_MMX_CODE -o png.o png.c > Assembler messages: > Fatal error: can't create png.o: Permission denied > make[3]: *** [png.o] Error 1 > make[2]: *** [buildpng] Error 2 > make[1]: *** [all] Error 2 > make[1]: Leaving directory `/cygdrive/c/Rsource/R-2.11.0/src/gnuwin32/bitmap' > make: *** [bitmapdll] Error 2 > > Any suggestions/hints on what I am messing up are most appreciated. >You need to check the permissions on the files installed by the Rtools installer. From the look of it, you are missing some permissions on the src/gnuwin32/bitmap/libpng directory, or one of its parents. In Unix terms, you need read-write-execute permission on all of those directories, and I think the Rtools installer is not currently giving you that. You can run "ls -l" to see what permissions you've got; ls is in the Rtools. I forget how you change permissions in Windows 7 without chmod, but I think it's a matter of working with the Properties you see when you right click the file. (Or you can install Cygwin, and then you'll get chmod.) Duncan Murdoch> Thanks in advance. > > Alan- > > Alan T. Arnholt > Professor and Assistant Chair > Department of Mathematical Sciences > Appalachian State University > T:(828)262-2863 > F:(828)265-8617 > http://www1.appstate.edu/~arnholta/ > > > ------------------------------------------------------------------------ > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >