Skip to content

Installation error: System command 'Rcmd.exe' failed #18

@RZ-SH

Description

@RZ-SH

Hi, I installed the latest R (4.2.2), Rtools, and RStudio (2022.07.2+576) on my Windows 11 computer. I managed to install other packages such as dembase and demlife, but I encountered errors every time when I execute

library(devtools)
install_github("statisticsnz/demest")

or

library(devtools)
install_github("StatisticsNZ/demest", build_vignettes = TRUE)

The error report is given as follows:

......(with the same format)
   C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: updatePriorBeta.o:updatePriorBet:(.bss+0xb20): multiple definition of `gamma_sym'; Combined-methods.o:Combined-metho:(.bss+0xb20): first defined here
   C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: updatePriorBeta.o:updatePriorBet:(.bss+0xb28): multiple definition of `eta_sym'; Combined-methods.o:Combined-metho:(.bss+0xb28): first defined here
   C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: updatePriorBeta.o:updatePriorBet:(.bss+0xb30): multiple definition of `beta_sym'; Combined-methods.o:Combined-metho:(.bss+0xb30): first defined here
   C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: updatePriorBeta.o:updatePriorBet:(.bss+0xb38): multiple definition of `Z_sym'; Combined-methods.o:Combined-metho:(.bss+0xb38): first defined here
   C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: updatePriorBeta.o:updatePriorBet:(.bss+0xb48): multiple definition of `jointUpdate_sym'; Combined-methods.o:Combined-metho:(.bss+0xb48): first defined here
   C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: updatePriorBeta.o:updatePriorBet:(.bss+0xb50): multiple definition of `Data_sym'; Combined-methods.o:Combined-metho:(.bss+0xb50): first defined here
collect2.exe: error: ld returned 1 exit status
   no DLL was created
   ERROR: compilation failed for package 'demest'
─  removing 'C:/Users/RZ/AppData/Local/Temp/RtmpmEvUAm/Rinst22541cc86cb0/demest'
         -----------------------------------
   ERROR: package installation failed
Error: Failed to install 'demest' from GitHub:
  ! System command 'Rcmd.exe' failed

Could you help me fix this issue? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions