Can not set PATH permanently in order to launch MATLAB system wide
by blackbirdsr71 from LinuxQuestions.org on (#5CWXT)
Hi to all,
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:
i) PATH=$PATH:/usr/local/MATLAB/R2018a/bin
export PATH
If i check with echo PATH it schows the directory, but after reboot the directory is not in PATH anymore.
ii) As the before method failed i edited ~/.bashrc:
export MATLAB_HOME=/usr/local/MATLAB/R2018a/bin
export PATH=$PATH:$MATLAB_HOME
then i source the file.
If i check with echo PATH it schows the directory, but after reboot the directory is not in PATH anymore.
iii) 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!


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:
i) PATH=$PATH:/usr/local/MATLAB/R2018a/bin
export PATH
If i check with echo PATH it schows the directory, but after reboot the directory is not in PATH anymore.
ii) As the before method failed i edited ~/.bashrc:
export MATLAB_HOME=/usr/local/MATLAB/R2018a/bin
export PATH=$PATH:$MATLAB_HOME
then i source the file.
If i check with echo PATH it schows the directory, but after reboot the directory is not in PATH anymore.
iii) 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!