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

Installation failed R version 3.3.1, python36, Windows 7 #13

Open
JVAdams opened this issue Jan 24, 2017 · 6 comments
Open

Installation failed R version 3.3.1, python36, Windows 7 #13

JVAdams opened this issue Jan 24, 2017 · 6 comments

Comments

@JVAdams
Copy link

JVAdams commented Jan 24, 2017

I edited the configure.win file ...

#!/bin/sh

echo 'PKG_LIBS=-LC:/Users/jvadams/AppData/Local/Programs/Python/Python36-32/libs -lpython36'  > src/makevars.win
echo 'PKG_CFLAGS=-I"C:/Users/jvadams/AppData/Local/Programs/Python/Python36-32/include"'     >> src/makevars.win

Then I tried to install rPython-win from within R

> devtools::install("C:/JVA/Software/rPython")
Installing rPython
"C:/PROGRA~1/R/R-33~1.1/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL  \
  "C:/JVA/Software/rPython" --library="C:/Program Files/R/R-3.3.1/library" --install-tests 

* installing *source* package 'rPython' ...
** libs
Warning: this package has a non-empty 'configure.win' file,
so building only the main architecture

c:/Rtools/mingw_64/bin/gcc -shared -s -static-libgcc -o rPython.dll tmp.def pycall.o -LC:/Users/jvadams/AppData/Local/Programs/Python/Python36-32/libs -lpython36 -Ld:/Compiler/gcc-4.9.3/local330/lib/x64 -Ld:/Compiler/gcc-4.9.3/local330/lib -LC:/PROGRA~1/R/R-33~1.1/bin/x64 -lR
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/jvadams/AppData/Local/Programs/Python/Python36-32/libs/libpython36.a when searching for -lpython36
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/jvadams/AppData/Local/Programs/Python/Python36-32/libs/python36.lib when searching for -lpython36
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/jvadams/AppData/Local/Programs/Python/Python36-32/libs\libpython36.a when searching for -lpython36
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/jvadams/AppData/Local/Programs/Python/Python36-32/libs/libpython36.a when searching for -lpython36
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/jvadams/AppData/Local/Programs/Python/Python36-32/libs/python36.lib when searching for -lpython36
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/jvadams/AppData/Local/Programs/Python/Python36-32/libs\python36.lib when searching for -lpython36
C:/Rtools/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:/Program Files/R/R-3.3.1/library/rPython'
Error: Command failed (1)

Below is a screenshot showing the names of the files in the libs folder.

capture

Can you see what I am doing wrong?

@StevenMMortimer
Copy link

@JVAdams I was having similar issues, but then removed my Python installation and installed from the Anaconda distribution and everything worked. I don't know enough about the differences, but the Anaconda distro does seem to have more DLLs and such that are probably referenced in the install.

@zepto1
Copy link

zepto1 commented May 24, 2017

Hello, could you tell me how to edit the configure.win? I have the issue to find an editor to edit it.Thanks.

@StevenMMortimer
Copy link

You can open configure.win with any text editor (e.g. Notepad, Notepad++, Sublime, etc.). Just right-click -> Open With

@holzerp
Copy link

holzerp commented Aug 7, 2017

I tried doing it with Anaconda3 (after uninstalling python3.6) and got the same error as above after editting the configure.win file to read:

#!/bin/sh

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

Can anyone see what I'm doing wrong here? Does it have anything to do with how Windows 7 (32-bit) strangely uses the '\' symbol for paths rather than the '/' symbol? Would I need to reinstall Anaconda3?

@cjgb What version of Windows did you use for installing it?

@holzerp
Copy link

holzerp commented Aug 8, 2017

@ReportMort Which version of Anaconda did you install, and what did your configure.win file read ?

@StevenMMortimer
Copy link

I installed with Anaconda 2. I don't remember exactly what my configure.win looked like, but I think it was something like this:

#!/bin/sh

echo 'PKG_LIBS=-LC:/Anaconda2/libs -lpython27'  > src/makevars.win
echo 'PKG_CFLAGS=-I"C:/Anaconda2/include"'     >> src/makevars.win

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