# Error when running Rstan with update

**URL:** <https://discourse.mc-stan.org/t/error-when-running-rstan-with-update/13792>\
**Category:** RStan\
**Created:** [March 21, 2020, 11:37pm UTC](https://discourse.mc-stan.org/t/error-when-running-rstan-with-update/13792 "2020-03-21T23:37:08Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![jades](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/jades/32/14827_2.png) [@jades](https://discourse.mc-stan.org/u/jades)\
**Post date:** [March 22, 2020, 11:20pm UTC](https://discourse.mc-stan.org/t/error-when-running-rstan-with-update/13792/19 "2020-03-22T23:20:42Z")

</div>

I’m looking at this thread: [Error in compileCode(f, code, language = language, verbose = verbose) : Compilation ERROR, function(s)/method(s) not created!](https://discourse.mc-stan.org/t/error-in-compilecode-f-code-language-language-verbose-verbose-compilation-error-function-s-method-s-not-created/12607/20).

I tried installing stan from source: however, I get this error:

```
/bin/sh: /usr/local/clang7/bin/clang++: No such file or directory
make: *** [chains.o] Error 127
ERROR: compilation failed for package ‘rstan’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rstan’
Warning in install.packages :
  installation of package ‘rstan’ had non-zero exit status

The downloaded source packages are in
	‘/private/var/folders/5v/66f0x8953rn0b13jmqw36qnm0000gn/T/RtmpFtKGAw/downloaded_packages’

```

Should I alter the code within the Makevars folder?

---

_[View the full topic](https://discourse.mc-stan.org/t/error-when-running-rstan-with-update/13792)._
