Skip to content

ERROR: compilation failed for package 'rPython' #24

@yangskyfucker

Description

@yangskyfucker

hey, bro! How can I solve below error?

install('C:\Users\yangskyfucker\Documents\R\win-library\4.1\rPython')
√ checking for file 'C:\Users\yangskyfucker\Documents\R\win-library\4.1\rPython/DESCRIPTION' (641ms)

  • preparing 'rPython':
    √ checking DESCRIPTION meta-information ...
  • cleaning src
  • checking for LF line-endings in source and make files and shell scripts
  • checking for empty or unneeded directories
  • building 'rPython_0.0-6.tar.gz'
    Warning: file 'rPython/cleanup' did not have execute permissions: corrected
    Warning: file 'rPython/configure' did not have execute permissions: corrected

Running "C:/PROGRA1/R/R-411.1/bin/x64/Rcmd.exe" INSTALL "C:\Users\YANGSK~1\AppData\Local\Temp\RtmpS62a0z/rPython_0.0-6.tar.gz"
--install-tests

  • installing to library 'C:/Users/yangskyfucker/Documents/R/win-library/4.1'
  • installing source package 'rPython' ...
    ** using staged installation
    ** libs
    Warning: this package has a non-empty 'configure.win' file,
    so building only the main architecture

"E:/rtools40/mingw64/bin/"gcc -I"C:/PROGRA1/R/R-411.1/include" -DNDEBUG -I"C:\Users\yangskyfucker\anaconda3\include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c pycall.c -o pycall.o
E:/rtools40/mingw64/bin/gcc -shared -s -static-libgcc -o rPython.dll tmp.def pycall.o -LC:Usersyangskyfuckeranaconda3libs -lpython3.lib -LC:/PROGRA1/R/R-411.1/bin/x64 -lR
E:/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lpython3.lib
collect2.exe: error: ld returned 1 exit status
no DLL was created
ERROR: compilation failed for package 'rPython'

  • removing 'C:/Users/yangskyfucker/Documents/R/win-library/4.1/rPython'
  • restoring previous 'C:/Users/yangskyfucker/Documents/R/win-library/4.1/rPython'
    Error in (function (command = NULL, args = character(), error_on_status = TRUE, :
    System command 'Rcmd.exe' failed, exit status: 1, stdout & stderr were printed
    Type .Last.error.trace to see where the error occurred

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