stan-dev / stan

Stan development repository. The master branch contains the current release. The develop branch contains the latest stable development. See the Developer Process Wiki for details.
https://mc-stan.org
BSD 3-Clause "New" or "Revised" License
2.6k stars 370 forks source link

`install-tbb.bat` fails on windows #3245

Open fisher-j opened 11 months ago

fisher-j commented 11 months ago

Summary:

After building on windows, install-tbb.bat fails with an error:

ERROR: Invalid syntax. Default option is not allowed more than '2' time(s).

I think that this is due to spaces in PATH entries.

Additional Information:

Adding quotes around the argument to PATH fixed the problem for me.

Replaced this: setx Path %~dp0stan\lib\stan_math\lib\tbb;%OLD_SYSTEM_PATH%

with this: setx Path "%~dp0stan\lib\stan_math\lib\tbb;%OLD_SYSTEM_PATH%"

Current Version:

v2.33.0