Sunday, April 28, 2024
8
rated 0 times [  8] [ 0]  / answers: 1 / hits: 35669  / 3 Years ago, fri, september 24, 2021, 9:22:35

I'm trying to install Euler expert system following these instructions. To add the environment variable I edited my /etc/environment to become as follows:



 PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:
/home/mohammad/Desktop/eye"
EYE_HOME = "/home/mohammad/Desktop/eye"


But when I use printenv PATH I don't see the new directory added to my path.



What am I doing wrong here?


More From » environment-variables

 Answers
1

I don't know the reason why PATH wasn't changed (after relogin), but



EYE_HOME = "/home/mohammad/Desktop/eye"
--------^-^


those spaces prevent EYE_HOME to be set.



It should be noted that /etc/environment is not a script file, but a kind of assignment file that is read by PAM. OTOH such spaces are not allowed in script files like /etc/profile and ~/.profile either.



If you use a script file, you need to export the variables as shown in Avinash Raj's answer.



Please note that while ~/.bashrc works if you start your program from a terminal window, it may not work if you start it from the graphical environment, since it's not sourced by the display manager.


[#27950] Saturday, September 25, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
steaocyte

Total Points: 345
Total Questions: 122
Total Answers: 121

Location: Spain
Member since Wed, Nov 23, 2022
1 Year ago
steaocyte questions
;