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 complains about incompatibility when using Python 2.7.11 #7

Open
villejoo opened this issue Mar 23, 2016 · 3 comments
Open

Comments

@villejoo
Copy link

Hi,
I have trouble installing rPython. I'm using python 2.7.11 and R 3.2.3 on Windows 7 enterprise (64-bit). I used Rtools33 to do the isntall.

Here's the log I got:

  • 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:/Python27/libs -lpython27 -Ld:/RCompile/r-compiling/local/local323/lib/x64 -Ld:/RCompile/r-compiling/local/local323/lib -LC:/PROGRAMS/R/R-32~1.3-A/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:/Python27/libs/libpython27.a when searching for -lpython27
c:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: skipping incompatible C:/Python27/libs/python27.lib when searching for -lpython27
c:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: skipping incompatible C:/Python27/libs\libpython27.a when searching for -lpython27
c:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: skipping incompatible C:/Python27/libs/libpython27.a when searching for -lpython27
c:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: skipping incompatible C:/Python27/libs/python27.lib when searching for -lpython27
c:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: skipping incompatible C:/Python27/libs\python27.lib when searching for -lpython27
c:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lpython27
collect2: ld returned 1 exit status
no DLL was created
ERROR: compilation failed for package 'rPython'

@cjgb
Copy link
Owner

cjgb commented Mar 23, 2016

Did you follow all the installation steps as indicated in the package page in Github? In the logs I see that you cannot find a library and you should:

  1. have it
  2. indicate where to find it in the required configuration script.

Unfortunately, it is very difficult to know where R should go and look for Python dependencies in Windows, so users need to do it themselves.

@Vendrof
Copy link

Vendrof commented Jun 22, 2016

Hello,
Sadly I have the same problem with python35. I found the lib and adapted the paths in the configure.win file :

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

I get this error

cannot find -lpython35
collect2: ld returned 1 exit status

Thank you for doind this work,
Cheers

@dexter410
Copy link

dexter410 commented Aug 30, 2020

Hi,
this configure.win file made it for me


   echo 'PKG_LIBS=-LC:/python35/libs -lpython35'  > src/makevars.win
   echo 'PKG_CFLAGS=-I"C:/Python35/include"'     >> src/makevars.win

Sincerely, Dejan

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