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

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!latest?d=yIl2AUoC8zA latest?i=65g0ZdiyHtc:KiSXY0XfVQQ:F7zBnMy latest?i=65g0ZdiyHtc:KiSXY0XfVQQ:V_sGLiP latest?d=qj6IDK7rITs latest?i=65g0ZdiyHtc:KiSXY0XfVQQ:gIN9vFw65g0ZdiyHtc
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments