Skip to content

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

Description

@JVAdams

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions