Repository navigation
Open
Description
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.
Can you see what I am doing wrong?
Metadata
Metadata
Assignees
Labels
No labels
Activity
StevenMMortimer commentedon May 5, 2017
@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 commentedon 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 commentedon May 24, 2017
You can open
configure.winwith any text editor (e.g. Notepad, Notepad++, Sublime, etc.). Just right-click -> Open Withholzerp commentedon 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 commentedon Aug 8, 2017
@ReportMort Which version of Anaconda did you install, and what did your configure.win file read ?
StevenMMortimer commentedon Aug 8, 2017
I installed with Anaconda 2. I don't remember exactly what my configure.win looked like, but I think it was something like this: