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.56k stars 366 forks source link

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

Open fisher-j opened 8 months ago

fisher-j commented 8 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