basilisk icon indicating copy to clipboard operation
basilisk copied to clipboard

Warning message: In install.packages(...) : installation of package ‘basilisk’ had non-zero exit status

Open AlbertSL98 opened this issue 2 years ago • 1 comments

Hi I am trying to install basilisk to Windows with R 4.3.2, while I get error: Warning message: In install.packages(...) : installation of package ‘basilisk’ had non-zero exit status

I copied the whole output message below. Is there any way to fix that? Thanks!

  • installing source package 'basilisk' ... ** using non-staged installation via StagedInstall field 'sh' is not recognized as an internal or external command, operable program or batch file. Warning in system2(file.path(R.home("bin"), "Rcmd.exe"), c("config", x), : running command '"D:/R-4.3.2/bin/x64/Rcmd.exe" config CC' had status 1 'sh' is not recognized as an internal or external command, operable program or batch file. Warning in system2(file.path(R.home("bin"), "Rcmd.exe"), c("config", x), : running command '"D:/R-4.3.2/bin/x64/Rcmd.exe" config CFLAGS' had status 1 'sh' is not recognized as an internal or external command, operable program or batch file. Warning in system2(file.path(R.home("bin"), "Rcmd.exe"), c("config", x), : running command '"D:/R-4.3.2/bin/x64/Rcmd.exe" config CXX' had status 1 'sh' is not recognized as an internal or external command, operable program or batch file. Warning in system2(file.path(R.home("bin"), "Rcmd.exe"), c("config", x), : running command '"D:/R-4.3.2/bin/x64/Rcmd.exe" config CXXFLAGS' had status 1 'sh' is not recognized as an internal or external command, operable program or batch file. Warning in system2(file.path(R.home("bin"), "Rcmd.exe"), c("config", x), : running command '"D:/R-4.3.2/bin/x64/Rcmd.exe" config CPPFLAGS' had status 1 'sh' is not recognized as an internal or external command, operable program or batch file. Warning in system2(file.path(R.home("bin"), "Rcmd.exe"), c("config", x), : running command '"D:/R-4.3.2/bin/x64/Rcmd.exe" config LDFLAGS' had status 1 'sh' is not recognized as an internal or external command, operable program or batch file. Warning in system2(file.path(R.home("bin"), "Rcmd.exe"), c("config", x), : running command '"D:/R-4.3.2/bin/x64/Rcmd.exe" config FC' had status 1 'sh' is not recognized as an internal or external command, operable program or batch file. Warning in system2(file.path(R.home("bin"), "Rcmd.exe"), c("config", x), : running command '"D:/R-4.3.2/bin/x64/Rcmd.exe" config FCFLAGS' had status 1 Error in (function (...) : wrong length for argument
  • removing 'D:/R-4.3.2/library/basilisk'

AlbertSL98 avatar Dec 07 '23 21:12 AlbertSL98

Nothing comes to mind, I'm afraid. basilisk or basilisk.utils never (directly) runs:

system2(file.path(R.home("bin"), "Rcmd.exe"), c("config", x), ...)

so I think there might be something else going on with your installation. Indeed, basilisk shouldn't be running anything at all during its installation unless you have the BASILISK_USE_SYSTEM_DIR environment variable set.

LTLA avatar Dec 11 '23 06:12 LTLA