Sample Header Ad - 728x90

Can not set PATH permanently in order to launch MATLAB system wide

0 votes
2 answers
308 views
I have the following issue: I recently installed MATLAB R2018a in my artix linux (runit). I can launch matlab from the location where the launcher is, i.e., /usr/local/MATLAB/R2018a/bin, but if I try to launch it from another location I can't. So I tried to append the mentioned directory to PATH with different methods: PATH=$PATH:/usr/local/MATLAB/R2018a/bin export PATH If I check with echo PATH, it shows the directory, but after reboot the directory is not in PATH anymore. As the above method failed, I edited ~/.bashrc: export MATLAB_HOME=/usr/local/MATLAB/R2018a/bin export PATH=$PATH:$MATLAB_HOME then I sourced the file. If I check with echo $PATH it shows the directory, but after reboot the directory is not in $PATH anymore. The last method failed too, so I edited ~/.config/shell/profile the same result as before. Can anybody tell what I am doing wrong? I am new to artix runit so maybe I made a big mistake. Thanks in advance!
Asked by Arturo (3 rep)
Jan 15, 2021, 05:30 PM
Last activity: Feb 3, 2021, 04:54 PM