[Rd] Cannot Install Custom Package On Windows7 64-bit

Steve Pederson stephen.pederson at adelaide.edu.au
Fri May 18 10:25:03 CEST 2012


Thank you for the look with fresh eyes Uwe.

It was just the simple solution of opening a new command shell window. I
thought I'd tried that along with the multiple reboots, but it must have
been before I figured out the correct PATH settings.

And thanks for the CYGWIN reminder too. :)

All the best,

Steve

-----Original Message-----
From: Uwe Ligges [mailto:ligges at statistik.tu-dortmund.de] 
Sent: Friday, 18 May 2012 5:27 PM
To: stephen.pederson at adelaide.edu.au
Cc: r-devel at r-project.org
Subject: Re: [Rd] Cannot Install Custom Package On Windows7 64-bit



On 18.05.2012 08:55, Steve Pederson wrote:
> Hi,
>
>
>
> After uninstalling Rtools 2.14.0, I have installed the latest version 
> of Rtools 2.15.0 which gives the two folders
>
> C:\Rtools\bin
>
> C:\Rtools\gcc-4.6.3
>
>
>
> R is installed in the directory
>
> C:\R\R-2.15.0
>
>
>
> I have set the Environment Variable
>
> PATH=c:\Rtools\bin;c:\Rtools\gcc-4.6.3\bin;c:\R\R-2.15.0\bin;<others>
>
>
>
> I am trying to install a custom package (BMEA_0.2.1) which is exactly 
> as written&  built successfully on R-2.14.0
>
>
>
> When I use R CMD INSTALL BMEA_0.2.1.tar.gz, I get the following output
>
> * installing to library 'C:/R/R-2.15.0/library'
>
> * installing *source* package 'BMEA' ...
>
> ** libs
>
> cygwin warning:
>
>    MS-DOS style path detected: C:/R/R-2.15.0/etc/x64/Makeconf
>
>    Preferred POSIX equivalent is: 
> /cygdrive/c/R/R-2.15.0/etc/x64/Makeconf
>
>    CYGWIN environment variable option "nodosfilewarning" turns off 
> this warning


1. Do what it says and

set CYGWIN=nodosfilewarning

to avoid lots of warnings.



>    Consult the user's guide for more details about POSIX paths:
>
>       http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
>
> gcc -m64 -I"C:/R/R-2.15.0/include" -DNDEBUG
> -I"d:/RCompile/CRANpkg/extralibs64/local/include"       -02 -Wall
> -std=gnu99 -mtune-core2 -c getLogFC.c -o getLogFC.o
>
> gcc: not found

2. So far your PATH look good, but it may be messed up later on, hence tell
us what

echo %PATH%

returns and be sure you started a new Windows command shell after changing
the PATH environment variable.

Best,
Uwe Ligges





> make: *** [getLogFC.o] Error 127
>
> ERROR: compilation failed for package 'BMEA'
>
> * removing 'C:/R/R-2.15.0/library/BMEA'
>
>
>
> It looks to me like it can't find the compiler, but I'm stumped as to 
> how to make that happen. I can see the gcc.exe file in 
> "C:\Rtools\gcc-4.6.3\bin" so it does seem to be there (if that's what 
> it's trying to look for)
>
>
>
> Thanks in advance,
>
>
>
> Steve
>
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



More information about the R-devel mailing list