问题
I know this may be an easy question but How can I setup MCR_CACHE_ROOT in Windows? Can you provide me with the detailed steps. And where should I point the path to MCR_CACHE_ROOT to speed up my compiled application startup time?
回答1:
For Windows 7, you set it as an environment variable as follows:
- Click Start then right-click on Computer and choose Properties from the menu.
- In the System window, click Advanced system settings in the left panel.
- In the System properties dialog, select the Advanced tab and click the Environment variables button.
- To add for all users, click New under the System variables window.
For Windows XP it's very similar and is described here.
Then you can enter MCR_CACHE_ROOT
as the variable name, and the required path to variable value. Ok everything and it's done.
You can set the path wherever you like, but it's probably better to create a folder e.g. C:\MATLAB Cache
and set it there.
来源:https://stackoverflow.com/questions/16432673/how-to-setup-mcr-cache-root-in-windows