I’m having trouble installing rstanarm on my Ubuntu 20.04.3 system. I’ve tried both the CRAN version (2.21.1) via install.packages('rstanarm')
as well as the dev version via remotes::install_github('stan-dev/rstanarm')
(and also remotes::install_github('stan-dev/rstanarm',INSTALL_opts="--no-multiarch",force=T)
). I have gcc 9.3.0 installed, and my ~/.R/Makefile
is empty. Any suggestions?
Here’s the final bit of output from the CRAN-version attempt:
Error: package or namespace load failed for ‘rstanarm’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/mike/R/x86_64-pc-linux-gnu-library/4.1/00LOCK-rstanarm/00new/rstanarm/libs/rstanarm.so':
/home/mike/R/x86_64-pc-linux-gnu-library/4.1/00LOCK-rstanarm/00new/rstanarm/libs/rstanarm.so: undefined symbol: _ZN24model_binomial_namespace24csr_matrix_times_vector2IN5Eigen3MapINS1_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi0ENS1_6StrideILi0ELi0EEEEES4_EENS3_IN5boost4math5tools12promote_argsIN4stan10value_typeIT_vE4typeENSD_IT0_vE4typeEffffE4typeELin1ELi1ELi0ELin1ELi1EEERKiSO_RKSE_RKSt6vectorIiSaIiEESV_RKSH_PSo
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/mike/R/x86_64-pc-linux-gnu-library/4.1/rstanarm’
Warning in install.packages :
installation of package ‘/home/mike/Downloads/rstanarm_2.21.1.tar.gz’ had non-zero exit status
> SessionInfo()
Error in SessionInfo() : could not find function "SessionInfo"
> sessionInfo()
R version 4.1.1 (2021-08-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.3 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/liblapack.so.3
locale:
[1] LC_CTYPE=en_CA.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_CA.UTF-8 LC_COLLATE=en_CA.UTF-8
[5] LC_MONETARY=en_CA.UTF-8 LC_MESSAGES=en_CA.UTF-8
[7] LC_PAPER=en_CA.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods
[7] base
loaded via a namespace (and not attached):
[1] compiler_4.1.1 tools_4.1.1 rstudioapi_0.13