Environment variable settings in Ubuntu12.04LTS: 1. Set the current user environment variable (which is invalid for the root user) Open the terminal input: www.linuxidc.com @ linuxidc :~ $ Sudogedit ~ /. Bashrc [sudo] passwordforwww.linuxidc.com: Add: exportPATH =/opt/EmbedSky/4.3.3/bin: $ PATH at the end, where/op
Environment variable settings in Ubuntu 12.04 LTS:
1. Set the current user environment variable (invalid for root users)
Open the terminal and enter:
Www.linuxidc.com @ linuxidc :~ $ Sudo gedit ~ /. Bashrc
[Sudo] password for www.linuxidc.com:
Add at the end:
Export PATH =/opt/EmbedSky/4.3.3/bin: $ PATH
Where/opt/EmbedSky/4.3.3/bin is the environment variable path you need to set.
To make it effective immediately, run the following command on the terminal:
Www.linuxidc.com @ linuxidc :~ $ Source ~ /. Bashrc
Or restart your computer.
2. Set system environment variables (effective for root users)
Open the terminal and enter:
Www.linuxidc.com @ linuxidc :~ $ Sudo gedit/etc/environment
[Sudo] password for www.linuxidc.com:
Add "colon:" add "your environment variable PATH" at the end of PATH = "...".
To make it effective immediately, run the following command on the terminal:
Www.linuxidc.com @ linuxidc :~ $ Source/etc/environment
Or restart your computer.
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2