Skip to content

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

Open

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

  1. StevenMMortimer commented on May 5, 2017

    @StevenMMortimer

    @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.

  2. zepto1 commented on May 24, 2017

    @zepto1

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

  3. StevenMMortimer commented on May 24, 2017

    @StevenMMortimer

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

  4. holzerp commented on Aug 7, 2017

    @holzerp

    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?

  5. holzerp commented on Aug 8, 2017

    @holzerp

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

  6. StevenMMortimer commented on Aug 8, 2017

    @StevenMMortimer

    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

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