Dirk Eddelbuettel
2022-Jun-13 18:36 UTC
[R-sig-Debian] Trying to install r-stan without using rocker
On 13 June 2022 at 14:25, Jesse McMullen-Crummey wrote: | Hi All, | | I?ve followed Dirk?s advice and am now starting from: | | FROM eddelbuettel/r2u:22.04 | While installing rstan using | RUN Rscript -e 'install.packages(c("rstan", "stringr", "gtools", "tidyr"))' (BTW I would actually use RUN install.r rstan stringr gtools tidyr which is more idiomatic _for me_ using littler, but equivalent <wink> ) | I can now get my lambda function running, Nice! | but it throws an error when opening my Stan model, namely: | "C++ compiler not found on system.? | | I would have thought that it would be part of this base image. Indeed. That r2u image has g++-11. So (r)stan may be configured differently / may have seen / expected a different compiler? I would check its docs. You should be able to square that. Dirk -- dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
Elizabeth Tighe
2022-Jun-13 20:01 UTC
[R-sig-Debian] Trying to install r-stan without using rocker
I'm not an expert, but I do use rstan on Ubuntu. The install instructions here: https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started include info on configuring the C++ Toolchain with a link for configuring on linux here: ?https://github.com/stan-dev/rstan/wiki/Configuring-C-Toolchain-for-Linux in case this helps ... Best, Liz Tighe On 6/13/2022 2:36 PM, Dirk Eddelbuettel wrote:> On 13 June 2022 at 14:25, Jesse McMullen-Crummey wrote: > | Hi All, > | > | I?ve followed Dirk?s advice and am now starting from: > | > | FROM eddelbuettel/r2u:22.04 > | While installing rstan using > | RUN Rscript -e 'install.packages(c("rstan", "stringr", "gtools", "tidyr"))' > > (BTW I would actually use > > RUN install.r rstan stringr gtools tidyr > > which is more idiomatic _for me_ using littler, but equivalent <wink> ) > > | I can now get my lambda function running, > > Nice! > > | but it throws an error when opening my Stan model, namely: > | "C++ compiler not found on system.? > | > | I would have thought that it would be part of this base image. > > Indeed. That r2u image has g++-11. > > So (r)stan may be configured differently / may have seen / expected a > different compiler? I would check its docs. You should be able to square > that. > > Dirk >