-
Notifications
You must be signed in to change notification settings - Fork 61
Description
System: Microsoft Windows 11 Enterprise
McStas Version: McStas 3.5.40 on Windows 64 bit Intel systems
Below I have copied the first two line-instructions provided by McStas when installing using the new recommended system.
I have added my comments/fixes in Highlighted Text
Recommended:
-
Install Visual Studio including c/c++ support. Any recent version of Visual Studio itself should work. Use the "Visual Studio Installer" and modify settings to selecect at minumum "Desktop development with c++" specifying to include VS2019 build tools and CLI support. (It is OK to include build tools such as VS2022 or VS2026, but VS2019 must be present also.
This line-instruction claims any recent version of Visual Studio will work. However, when I followed the provided link for downloading Visual Studio then I ended up on the Visual Studio 2026 Download page. This version did not work (or at least the Community version did not.) You may want to point explicitly to the 2022 version which can be found on the older downloads page: https://visualstudio.microsoft.com/vs/older-downloads/ -
Use the mcstas-conda batch script to install the latest mcstas from conda-forge
Not sure about other facilities, but where I am at miniforge/microbamba installations are firewalled if you try to pull directly from anaconda.org. Something to do with mitigating the risk of downloading license-encumbered resources (which should not be a problem for the conda-forge channel, but I don't make the rules!). I just changed the micromamba call in the mcstas-conda.bat file to point to the conda-forge mirror that is built and maintained by the developers of micromamba. Namely, I changed:
@.\micromamba.exe create -n mcstas mcstas -c conda-forge -c nodefaults -y
to be
@.\micromamba.exe create -n mcstas mcstas -c https://repo.prefix.dev/conda-forge -c nodefaults -y
I'm not sure if you want to deal directly with institution specific firewall issues, but thought I would at least mention the issue in case it becomes generally problematic.