# Problem with cmdstan unpacking

**URL:** <https://discourse.mc-stan.org/t/problem-with-cmdstan-unpacking/29041>\
**Category:** CmdStan\
**Tags:** installation\
**Created:** [October 5, 2022, 7:44pm UTC](https://discourse.mc-stan.org/t/problem-with-cmdstan-unpacking/29041 "2022-10-05T19:44:21Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![andrjohns](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/andrjohns/32/15297_2.png) [@andrjohns](https://discourse.mc-stan.org/u/andrjohns)\
**Post date:** [October 6, 2022, 12:07pm UTC](https://discourse.mc-stan.org/t/problem-with-cmdstan-unpacking/29041/5 "2022-10-06T12:07:16Z")

</div>

I believe this might be due to some makeflags missing when working with RTools42, can you try running this:

```r
cpp_options <- list(
  "CXXFLAGS += -Wno-nonnull",
  "TBB_CXXFLAGS= -U __MSVCRT_VERSION__ -D __MSVCRT_VERSION__ =0x0E00"
)

cmdstanr::cmdstan_make_local(cpp_options = cpp_options)
cmdstanr::rebuild_cmdstan()

```

---

_[View the full topic](https://discourse.mc-stan.org/t/problem-with-cmdstan-unpacking/29041)._
