# 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:** 26

<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 23, 2020, 2:16am UTC](https://discourse.mc-stan.org/t/error-when-running-rstan-with-update/13792/26 "2020-03-23T02:16:23Z")

</div>

> [@bgoodri](#):
>
> library(rstan) example(stan\_model, run.dontrun = TRUE)

No, because when I do

```no-highlight
install.packages("rstan", type = "source")

```

I get this:

```no-highlight
trying URL 'https://cran.rstudio.com/src/contrib/rstan_2.19.3.tar.gz'
Content type 'application/x-gzip' length 922337 bytes (900 KB)
==================================================
downloaded 900 KB

* installing *source* package ‘rstan’ ...
** package ‘rstan’ successfully unpacked and MD5 sums checked
** using staged installation
** libs

clang++ -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"../inst/include" -I"." -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/StanHeaders/include/src" -DBOOST_DISABLE_ASSERTS -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/RcppEigen/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/BH/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/StanHeaders/include" -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fPIC -Wall -g -O2 -c chains.cpp -o chains.o
In file included from chains.cpp:19:
In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/StanHeaders/include/stan/math/prim/mat/fun/mean.hpp:4:
In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/StanHeaders/include/stan/math/prim/arr/err/check_nonzero_size.hpp:4:
In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/StanHeaders/include/stan/math/prim/meta.hpp:4:
In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/StanHeaders/include/stan/math/prim/arr/meta/get.hpp:4:
In file included from /usr/local/clang7/include/c++/v1/cstdlib:86:
In file included from /usr/local/clang7/include/c++/v1/stdlib.h:94:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:66:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/wait.h:110:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/resource.h:72:
/usr/local/include/stdint.h:7:10: fatal error: 'zzip/conf.h' file not found
#include <zzip/conf.h> 
         ^ ~~~~~~~~~~~~
1 error generated.
make: *** [chains.o] Error 1
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/Rtmpl7K1K6/downloaded_packages’

```

---

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