rPython-win
rPython-win copied to clipboard
Installation complains about incompatibility when using Python 2.7.11
Hi, I have trouble installing rPython. I'm using python 2.7.11 and R 3.2.3 on Windows 7 enterprise (64-bit). I used Rtools33 to do the isntall.
Here's the log I got:
- installing source package 'rPython' ... ** libs Warning: this package has a non-empty 'configure.win' file, so building only the main architecture
gcc -m64 -shared -s -static-libgcc -o rPython.dll tmp.def pycall.o -LC:/Python27/libs -lpython27 -Ld:/RCompile/r-compiling/local/local323/lib/x64 -Ld:/RCompile/r-compiling/local/local323/lib -LC:/PROGRAMS/R/R-32~1.3-A/bin/x64 -lR c:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: skipping incompatible C:/Python27/libs/libpython27.a when searching for -lpython27 c:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: skipping incompatible C:/Python27/libs/python27.lib when searching for -lpython27 c:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: skipping incompatible C:/Python27/libs\libpython27.a when searching for -lpython27 c:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: skipping incompatible C:/Python27/libs/libpython27.a when searching for -lpython27 c:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: skipping incompatible C:/Python27/libs/python27.lib when searching for -lpython27 c:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: skipping incompatible C:/Python27/libs\python27.lib when searching for -lpython27 c:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lpython27 collect2: ld returned 1 exit status no DLL was created ERROR: compilation failed for package 'rPython'
Did you follow all the installation steps as indicated in the package page in Github? In the logs I see that you cannot find a library and you should:
- have it
- indicate where to find it in the required configuration script.
Unfortunately, it is very difficult to know where R should go and look for Python dependencies in Windows, so users need to do it themselves.
Hello, Sadly I have the same problem with python35. I found the lib and adapted the paths in the configure.win file :
echo 'PKG_LIBS=-LC:/Users/mli/AppData/Local/Programs/Python/Python35-32/libs -lpython35' > src/makevars.win
echo 'PKG_CFLAGS=-I"C:/Users/mli/AppData/Local/Programs/Python/Python35-32/include"' >> src/makevars.win
I get this error
cannot find -lpython35
collect2: ld returned 1 exit status
Thank you for doind this work, Cheers
Hi, this configure.win file made it for me
echo 'PKG_LIBS=-LC:/python35/libs -lpython35' > src/makevars.win
echo 'PKG_CFLAGS=-I"C:/Python35/include"' >> src/makevars.win
Sincerely, Dejan