Multiple definition problem - example stan_model won't run

I can install StanHeaders from source, but not rstan. I get the following when I try to do so:

devtools::install_local(".../rstan_2.21.2.zip", type="source")
Installing package into ‘C:/SLAFolder/R’
(as ‘lib’ is unspecified)
* installing *binary* package 'rstan' ...
cp: unknown option -- )
Try '/usr/bin/cp --help' for more information.
ERROR: installing binary package failed
* removing 'C:/SLAFolder/R/rstan'
* restoring previous 'C:/SLAFolder/R/rstan'
Error: Failed to install 'rstan' from local:
  (converted from warning) installation of package ‘...AppData/Local/Temp/Rtmpe4qWWq/remotes3b1478cf52fa/rstan’ had non-zero exit status

I can install rstan like this:

install.packages("rstan", repos = "https://cloud.r-project.org/", dependencies = TRUE)

Afterward, I get this error message:

example(stan_model, package = "rstan", run.dontrun = TRUE)
stn_md> stancode <- 'data {real y_mean;} parameters {real y;} model {y ~ normal(y_mean,1);}'
stn_md> mod <- stan_model(model_code = stancode, verbose = TRUE)
TRANSLATING MODEL '73fc79f8b1915e8208c736914c86d1a1' FROM Stan CODE TO C++ CODE NOW.
successful in parsing the Stan model '73fc79f8b1915e8208c736914c86d1a1'.
COMPILING THE C++ CODE FOR MODEL '73fc79f8b1915e8208c736914c86d1a1' NOW.
OS: x86_64, mingw32; rstan: 2.21.2; Rcpp: 1.0.5; inline: 0.3.17 
Error in cleanup_makevar(old) : 
  argument "RMU" is missing, with no default

I read here (New error: cleanup_makevar(old) : argument "RMU" is missing, with no default - #16 by HCOKSTATE) that the solution is to rollback to withr 2.2.0. I tried that with the following:
devtools::install_version(“withr”, version=“2.2.0”) But upon doing so, get the same multiple definitions error as previously encountered:

Error in compileCode(f, code, language = language, verbose = verbose) : 
  C:/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/SLAFolder/R/rstan/lib/x64/libStanServices.a(stan_fit.o):stan_fit.cpp:(.data$_ZZN5boost4math6detail9bessel_j0IeEET_S3_E2P1[_ZZN5boost4math6detail9bessel_j0IeEET_S3_E2P1]+0x0): multiple definition of `boost::math::detail::bessel_j0<long double>(long double)::P1'; file1f1066413716.o:file1f1066413716.cpp:(.rdata$_ZZN5boost4math6detail9bessel_j0IeEET_S3_E2P1[_ZZN5boost4math6detail9bessel_j0IeEET_S3_E2P1]+0x0): first defined hereC:/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/SLAFolder/R/rstan/lib/x64/libStanServices.a(stan_fit.o):stan_fit.cpp:(.data$_ZZN5boost4math6detail9bessel_j0IeEET_S3_E2QS[_ZZN5boost4math6detail9bessel_j0IeEET_S3_E2QS]+0x0): multiple definition of `boost::math::detail::bessel_j0<long double>(long double)::QS'; file1f1066413716.o:file1f1066413716.cpp:(.rdata$_ZZN5boost4math6detail9bessel_j0IeEET_S3_