User Tools

Site Tools


tools:matlab:setenviroment

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tools:matlab:setenviroment [2021/07/05 13:50] – created - external edit 127.0.0.1tools:matlab:setenviroment [2026/10/31 12:30] (current) – removed 216.73.217.11
Line 1: Line 1:
-====== How to set the required environment variable for Matlab. ====== 
- 
-(Please note that uppercase and lowercase letters in the value of Variable are significant.) 
- 
-====== * Linux ====== 
- 
-1) You can write in "~/.bashrc" (or in "~/.profile"): 
-**export LM_PROJECT=RSiM** 
- 
-The changes in the file "~/.bashrc" (or in "~/.profile") can be carried out without restarting the bash by the following command:  
-<code>source ~/.bashrc </code> 
- 
-or 2) You can write (as root/sudo) in the directory "/etc/profile.d" a file "matlab" with the content 
- 
-<code> 
-export LM_PROJECT=RSiM</code> 
- 
-or 3) add (as root/sudo)in the file "/etc/profile" 
- 
-<code> 
-export LM_PROJECT=RSiM 
-</code> 
- 
-You can check this by checking your environmental listing : 
- 
-<code> 
-printenv | grep LM_PROJECT 
-</code> 
- 
-====== * Mac OS X ====== 
- 
-* 1. OS X 10.9 (Mavericks) and earlier. Add in the file "/etc/launchd.conf" 
- 
-<code> 
- setenv LM_PROJECT RSiM 
-</code> 
- 
-Save the file and reboot the machine. 
- 
-* 2. OS X 10.10 (Yosemite) and later. See [[http://stackoverflow.com/questions/25385934/yosemite-launchd-conf-no-longer-work|http://stackoverflow.com/questions/25385934/yosemite-launchd-conf-no-longer-work]] 
- 
-Create a script and save it as App. Script-Editort: do shell script "launchctl setenv LM_PROJECT AeS" and save it as document (p. Example as "setosx.scp"). Export it as app (p. Example as "setosx.app") and close script-editor. and Insert app in login items the user. ( >Apple >System Setting > Users & Groups> Your User> Login Items> > + > Documents> setosx.app > Adding> Quit > close System Settings> Logout> Login) 
- 
-====== * Windows ====== 
- 
-  - Windows 7/8: system Settings. 
- 
-> Windows File Explorer > [ Right Mouse Button ] Computer > Properties > Advanced System Settings> Advanced> Environment Variables > User Variables OR > System variables > New 
- 
-<code> 
-Variable Name : LM_PROJECT 
-Value of the variable : RSiM 
-</code> 
- 
-  - Windows 7/8: setx (Prompt) 
- 
-(See: [[http://technet.microsoft.com/de-de/library/cc755104(v=ws.10).aspx|http://technet.microsoft.com/de-de/library/cc755104(v=ws.10).aspx]] and Help: > setx / ?)  
-1. Put variable for User: 
- 
-<code> 
- setx LM_PROJECT RSiM 
-</code> 
- 
-2. Set system variable : > Run command prompt as an administrator 
- 
-<code> 
- setx LM_PROJECT RSiM /M 
-</code> 
- 
-( Note: Blank front / M ) 
- 
-**Please note that uppercase and lowercase letters in the value of Variable are significant!!!!** 
- 
  
tools/matlab/setenviroment.1625485802.txt.gz · Last modified: by 127.0.0.1