cjgb / rPython-win

rPython for Windows
GNU General Public License v2.0
45 stars 28 forks source link

Installation error for devtools::install() #17

Open jooyoungseo opened 7 years ago

jooyoungseo commented 7 years ago

Hello,

I have downloaded and followed the instruction and I was attempting to install rPython on my Windows 8.1 64bit system.

However, the following error keeps bugging me.

Could you please advise me on how to resolve this issue?

FYI, I have already installed rtools, devtools, and done any other edits for configure.win. I am using R version 3.4.0 (2017-04-21).

> library(devtools)
> install("C:/rPython")
Error: running command '"C:/PROGRA~1/R/R-34~1.0/bin/x64/R" --no-site-file --no-e
nviron --no-save --no-restore --quiet CMD config CC' had status 127
>

Many thanks.

elpibeperez commented 7 years ago

I have the same issue. If you found a workarround, please tell me. Many thanks

elpibeperez commented 7 years ago

Is it a 64 bit issue?

elpibeperez commented 7 years ago

After excecuting '"C:/PROGRA~1/R/R-34~1.1/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD config CC'

I got:

MS-DOS style path detected: c:\PROGRA~1\R\R-34~1.1/bin/config.sh Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/R/R-34~1.1/bin/config.sh CYGWIN environment variable option "nodosfilewarning" turns off this warning. Consult the user's guide for more details about POSIX paths: http://cygwin.com/cygwin-ug-net/using.html#using-pathnames c:\PROGRA~1\R\R-34~1.1/bin/config.sh: line 177: make: command not found c:\PROGRA~1\R\R-34~1.1/bin/config.sh: line 178: make: command not found c:\PROGRA~1\R\R-34~1.1/bin/config.sh: line 179: make: command not found c:\PROGRA~1\R\R-34~1.1/bin/config.sh: line 180: make: command not found c:\PROGRA~1\R\R-34~1.1/bin/config.sh: line 181: make: command not found c:\PROGRA~1\R\R-34~1.1/bin/config.sh: line 313: make: command not found

It is clear make is not installed. Will keep working and posting how it goes

elpibeperez commented 7 years ago

@sjystu execute '"C:/PROGRA1/R/R-341.1/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD config CC' in the command prompt. If you get errors related to make command not found, you have a missconfiguration of the cygwin path.

Check https://www.biostat.wisc.edu/~kbroman/Rintro/Rwinpack.html. Also check if rtools was installed in rbuildtools :)

I have a new issue:

C:/RBuildTools/3.4/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-34~1.1/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"  -I"C:/Python27/include"   -O2 -Wall  -std=gnu99 -mtune=core2 -c pycall.c -o pycall.o
C:/RBuildTools/3.4/mingw_64/bin/gcc -shared -s -static-libgcc -o rPython.dll tmp.def pycall.o -LC:/python27/libs -lpython27 -Ld:/Compiler/gcc-4.9.3/local330/lib/x64 -Ld:/Compiler/gcc-4.9.3/local330/lib -LC:/PROGRA~1/R/R-34~1.1/bin/x64 -lR
C:/RBuildTools/3.4/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/python27/libs/libpython27.a when searching for -lpython27
C:/RBuildTools/3.4/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/python27/libs/python27.lib when searching for -lpython27
C:/RBuildTools/3.4/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/python27/libs\libpython27.a when searching for -lpython27
C:/RBuildTools/3.4/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/python27/libs/libpython27.a when searching for -lpython27
C:/RBuildTools/3.4/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/python27/libs/python27.lib when searching for -lpython27
C:/RBuildTools/3.4/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/python27/libs\python27.lib when searching for -lpython27
C:/RBuildTools/3.4/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lpython27
collect2.exe: error: ld returned 1 exit status
no DLL was created
ERROR: compilation failed for package 'rPython'
* removing 'C:/Program Files/R/R-3.4.1/library/rPython'

Will check if it is an architecture related issue, or something else I can't fix

rusher321 commented 6 years ago

have you resolve this problem? I have the same issue ~