Open mashranga opened 7 years ago
mine is
echo 'PKG_LIBS=-LC:/ProgramData/Anaconda3/libs -lpython36' > src/makevars.win echo 'PKG_CFLAGS=-I"C:/ProgramData/Anaconda3/include"' >> src/makevars.win
and it is working. No "" in tthe first line
@jcrichard I tried exactly what you had and it came back with an error as follows:
C:/RBuildTools/3.4/mingw_64/bin/gcc -shared -s -static-libgcc -o rPython.dll tmp.def pycall.o -LC:/Users/pholzer/AppData/Local/Continuum/Anaconda3/libs -lpython36 -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:/Users/pholzer/AppData/Local/Continuum/Anaconda3/libs/python36.lib when searching for -lpython36 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:/Users/pholzer/AppData/Local/Continuum/Anaconda3/libs/python36.lib when searching for -lpython36 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:/Users/pholzer/AppData/Local/Continuum/Anaconda3/libs\python36.lib when searching for -lpython36 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 -lpython36 collect2.exe: error: ld returned 1 exit status no DLL was created ERROR: compilation failed for package 'rPython'
The only difference is that I have a Windows 7 (32-bit) system. Should that make a difference?
I do not know but I was using R 3.1.3 and packages are located in C:\Program Files\R\R-3.1.3\library
I just uninstalled my version of R and reinstalled R 3.1.3. I downloaded Anaconda3 for Python 3.6 and repeated the whole process of trying to install rPython on my Windows 7 (32-bit) system.
I got the following error when running install("C:/Users/pholzer/Downloads/rPython") which rPython is the folder inside which the configure.win file reads echo 'PKG_LIBS=-LC:/Users/pholzer/AppData/Local/Continuum/Anaconda3/libs -lpython36' > src/makevars.win echo 'PKG_CFLAGS=-I"C:/Users/pholzer/AppData/Local/Continuum/Anaconda3/include"' >> src/makevars.win
Installing rPython "C:/PROGRA~1/R/R-31~1.3/bin/x64/R" --no-site-file --no-environ --no-save \ --no-restore --quiet CMD INSTALL "C:/Users/pholzer/Downloads/rPython" \ --library="C:/Users/pholzer/Documents/R/win-library/3.1" --install-tests
gcc -m64 -shared -s -static-libgcc -o rPython.dll tmp.def pycall.o -LC:/Users/pholzer/AppData/Local/Continuum/Anaconda3/libs -lpython36 -Ld:/RCompile/CRANpkg/extralibs64/local/lib/x64 -Ld:/RCompile/CRANpkg/extralibs64/local/lib -LC:/PROGRA~1/R/R-31~1.3/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:/Users/pholzer/AppData/Local/Continuum/Anaconda3/libs/python36.lib when searching for -lpython36 c:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/pholzer/AppData/Local/Continuum/Anaconda3/libs/python36.lib when searching for -lpython36 c:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/pholzer/AppData/Local/Continuum/Anaconda3/libs\python36.lib when searching for -lpython36 c:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lpython36 collect2: ld returned 1 exit status no DLL was created ERROR: compilation failed for package 'rPython'
Any ideas?
do you have python36.lib and python3.lib in the repository /Anaconda3/libs
the same ERROR !! have you finally find the right way?
No sorry.
Le jeu. 21 déc. 2017 à 07:24, RaoTianlong notifications@github.com a écrit :
the same ERROR !! have you finally find the right way?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cjgb/rPython-win/issues/15#issuecomment-353277618, or mute the thread https://github.com/notifications/unsubscribe-auth/APXirAa63VAyl5aynPStzfESoBiNutuzks5tCgepgaJpZM4Nj4yr .
I tried to install with python 2.7 and python 3.6 ..but not hope. The uninstall everything. But while install with anaconda its works instantly !! Dont know the reason ..but worked . :)
My settings in configuire.win file
echo 'PKG_LIBS=-L"C:/ProgramData/Anaconda2/libs" -lpython27' > src/makevars.win echo 'PKG_CFLAGS=-I"C:/ProgramData/Anaconda2/include"' >> src/makevars.win