Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error messages when running example(stan_model, package = "rstan", run.dontrun = TRUE) #1103

Open
ndcn0002 opened this issue Nov 13, 2023 · 2 comments

Comments

@ndcn0002
Copy link

Hi All,

I'm new to rstan. I just installed rstan by:

  install.packages("rstan", repos = c("https://mc-stan.org/r-packages/", getOption("repos")))

Once it was installed, I loaded libraries StanHeaders and rstan

  library(StanHeaders)
  library(rstan)

Then I ran:

  example(stan_model, package = "rstan", run.dontrun = TRUE)

which gave me a lot of messages (400 lines) which ended with the following:

  Compilation ERROR, function(s)/method(s) not created!
  Error in compileCode(f, code, language = language, verbose = verbose) : 
  Error in system(paste(MAKE, p1(paste("-f", shQuote(makefiles))), "compilers"),  :   'make' not foundCalls: <Anonymous> -> 
  .shlib_internal -> systemExecution halted

So I assumed I did something wrong or missed some installation steps. Any advice would be very much appreciated

Thanks!

@ChenghuFeng
Copy link

Maybe you should install rstan following this website https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started

@rosgori
Copy link

rosgori commented Dec 24, 2023

If you still have problems, try these instructions: https://discourse.mc-stan.org/t/rstan-2-30/30415/2?u=rosgori

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants