Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-23-2009, 02:32 PM
|
#1
|
LQ Newbie
Registered: Dec 2009
Posts: 6
Rep:
|
PATH environment variable
First of all: hi, everyone!
Now to my problem:
Whenever I try to run pcsx, it outputs
Quote:
The command could not be located because '/usr/games' is not included in the PATH environment variable.
|
As far as i know, it is in the PATH environment variable.
Quote:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
|
Then what else could be the cause for that issue?
I'm using Ubuntu Karmic, if that helps.
edit: needless to say, running it from the menu doesn't help aswell.
|
|
|
12-23-2009, 02:36 PM
|
#2
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
The path line you posted seems to be a cut and paste of where you set the path. Did you check that your path has not been changed? Eg, try
Evo2.
|
|
|
12-23-2009, 02:36 PM
|
#3
|
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
|
What's the output from
Code:
pcsx
env | grep PATH
|
|
|
12-23-2009, 02:37 PM
|
#4
|
Senior Member
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833
Rep: 
|
When you type:
What do you get?
Try typing:
Code:
export PATH=$PATH:/usr/games
echo $PATH
Then try running it, post up results.
|
|
|
12-23-2009, 02:39 PM
|
#5
|
LQ Newbie
Registered: Dec 2009
Posts: 22
Rep:
|
Does the application has rights to be executed? When you give "ls -l" you should get a "x" permission for your user/group.
|
|
|
12-23-2009, 02:43 PM
|
#6
|
LQ Newbie
Registered: Dec 2009
Posts: 6
Original Poster
Rep:
|
Strange. What I pasted into the first post was the PATH variable located in /etc/environment.
Code:
export PATH=$PATH:/usr/games
seems to have fixed it,
now ouputs
Code:
PATH=/bin:/usr/bin:/usr/local/bin:/usr/bin/X11:/usr/games
Which "other" path does it address?
Anyhow, thanks for the rapid responses
edit: it does run from a Terminal now, but still not if executed from a menu...
Last edited by Storken; 12-23-2009 at 02:45 PM.
|
|
|
12-23-2009, 02:59 PM
|
#7
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Any number of different login scripts may be setting/resetting your path. Eg .bash_profile .bashrc etc.
Evo2.
|
|
|
12-23-2009, 05:48 PM
|
#8
|
Member
Registered: Feb 2008
Location: Texas
Distribution: Slackware
Posts: 92
Rep:
|
Remember storken, exporting your path variable dose not make your PATH persistent acrost reboots, in order to do this, you must edit your ~/.bashrc or its equivlent if using a nonlogin shell, if using a login shell you must edit the /etc/profile file. 
|
|
|
All times are GMT -5. The time now is 12:56 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|