Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install issue with windows 10 !! (Anaconda working) #15

Open
mashranga opened this issue May 23, 2017 · 7 comments
Open

Install issue with windows 10 !! (Anaconda working) #15

mashranga opened this issue May 23, 2017 · 7 comments

Comments

@mashranga
Copy link

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

@jcrichard
Copy link

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

@holzerp
Copy link

holzerp commented Aug 7, 2017

@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:/PROGRA1/R/R-341.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'

  • removing 'C:/Users/pholzer/Documents/R/win-library/3.4/rPython'
    Error: Command failed (1)

The only difference is that I have a Windows 7 (32-bit) system. Should that make a difference?

@jcrichard
Copy link

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

@holzerp
Copy link

holzerp commented Aug 8, 2017

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:/PROGRA1/R/R-311.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

  • 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:/Users/pholzer/AppData/Local/Continuum/Anaconda3/libs -lpython36 -Ld:/RCompile/CRANpkg/extralibs64/local/lib/x64 -Ld:/RCompile/CRANpkg/extralibs64/local/lib -LC:/PROGRA1/R/R-311.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'

  • removing 'C:/Users/pholzer/Documents/R/win-library/3.1/rPython'
    Error: Command failed (1)

Any ideas?

@jcrichard
Copy link

do you have python36.lib and python3.lib in the repository /Anaconda3/libs

@RaoTianlong
Copy link

the same ERROR !! have you finally find the right way?

@jcrichard
Copy link

jcrichard commented Dec 21, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants