# Compilation Error

**URL:** <https://discourse.mc-stan.org/t/compilation-error/34382>\
**Category:** RStan\
**Tags:** rstan\
**Created:** [March 7, 2024, 4:51pm UTC](https://discourse.mc-stan.org/t/compilation-error/34382 "2024-03-07T16:51:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fortunato](https://avatars.discourse-cdn.com/v4/letter/f/ecccb3/32.png) [@fortunato](https://discourse.mc-stan.org/u/fortunato)\
**Post date:** [March 7, 2024, 4:51pm UTC](https://discourse.mc-stan.org/t/compilation-error/34382/1 "2024-03-07T16:51:48Z")

</div>

Hi,  
relatively new to Stan here. windows 11, rstudio.  
So here’s the thing, i’m not able to install Rtools 4.3 on ‘c:’ in this pc, because of corporative issue, so i installed it in program files. i have an enviromental variable named RTOOLS43\_HOME with path set to ‘C:\Program Files\rtools43’

When running

library(rstan)  
example(stan\_model, run.dontrun = TRUE)

i get 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: → .shlib\_internal → systemEjecución interrumpida

thanks in advance

---

<div class="post-metadata">

**Author:** ![Bob\_Carpenter](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/bob_carpenter/32/9230_2.png) [@Bob\_Carpenter](https://discourse.mc-stan.org/u/Bob_Carpenter)\
**Post date:** [March 25, 2024, 9:31pm UTC](https://discourse.mc-stan.org/t/compilation-error/34382/2 "2024-03-25T21:31:28Z")

</div>

> [@fortunato](#):
>
> ‘make’ not found

You need to put all the utilities on your path. I’m not entirely sure how to do that in Windows, but if you pull up a terminal, you should be able to execute `make --version` and get output.
