Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problems with my PATH
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
h3nk
n00b
n00b


Joined: 14 Apr 2006
Posts: 25

PostPosted: Fri Oct 27, 2006 10:26 am    Post subject: problems with my PATH Reply with quote

hello,
i have a problem with kde-apps like kmail or kview. the thing is, that i cannot execute them by typing "kmail" for example, but when i cd to /usr/kde/3.5/bin i can execute them by "./kmail". so i guess the problem lies in the PATH-line in my profile.env, but there is already /usr/kde/3.5/bin.

what else could solve my problem ?

thank you very much for your answers !
Back to top
View user's profile Send private message
gauthma
n00b
n00b


Joined: 19 Jun 2005
Posts: 13

PostPosted: Fri Oct 27, 2006 11:10 am    Post subject: Reply with quote

Could you post your PATH variable here? One easy way of doing this is using the command "echo $PATH" (without double quotes) on a bash session.

Regards
_________________
"Talk is cheap. Show me the code."
--Linus Torvalds
Back to top
View user's profile Send private message
h3nk
n00b
n00b


Joined: 14 Apr 2006
Posts: 25

PostPosted: Fri Oct 27, 2006 11:46 am    Post subject: Reply with quote

here it is, thx for hint, btw. :)

Code:
trashcan ~ # echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin:/opt/vmware/workstation/bin


[edit]
i noticed, this problem only exists for me as user, as root i can execute everything as it should be, maybe this gives somebody a clue :)
Back to top
View user's profile Send private message
gauthma
n00b
n00b


Joined: 19 Jun 2005
Posts: 13

PostPosted: Sat Oct 28, 2006 10:35 am    Post subject: Reply with quote

For I can tell, the PATH you've posted is the PATH of the root user. And that does include the relevant KDE directories, thus enabling you to start KDE apps as root. Post the PATH for your normal (i.e non-root) user, as it is likely to be the one that is not properly set up.
_________________
"Talk is cheap. Show me the code."
--Linus Torvalds
Back to top
View user's profile Send private message
h3nk
n00b
n00b


Joined: 14 Apr 2006
Posts: 25

PostPosted: Sat Oct 28, 2006 11:28 am    Post subject: Reply with quote

okay, and where do i fand that PATH ?
Back to top
View user's profile Send private message
gauthma
n00b
n00b


Joined: 19 Jun 2005
Posts: 13

PostPosted: Sat Oct 28, 2006 11:41 am    Post subject: Reply with quote

You do the same thing you did to get the root PATH, but in a shell where you are logged as the normal user, not the root :wink:
_________________
"Talk is cheap. Show me the code."
--Linus Torvalds
Back to top
View user's profile Send private message
h3nk
n00b
n00b


Joined: 14 Apr 2006
Posts: 25

PostPosted: Sun Oct 29, 2006 6:10 pm    Post subject: Reply with quote

Code:
h3nk@trashcan ~ $ echo $PATH
/bin:/usr/bin:/usr/X11R6/bin


okay, that's it, where can i modify this entry ?

btw., could there be an association to my problem with gnome only starting when i choose "failsafe" in gdm ?

greetz and thanks and apologies for my bad english
Back to top
View user's profile Send private message
h3nk
n00b
n00b


Joined: 14 Apr 2006
Posts: 25

PostPosted: Fri Nov 03, 2006 3:31 pm    Post subject: Reply with quote

hello ?
has nobody here an idea how to solve this ?

i changed the $path in /etc/profile but this changed nothing, i'm helpless
Back to top
View user's profile Send private message
Shadow Skill
Veteran
Veteran


Joined: 04 Dec 2004
Posts: 1023

PostPosted: Sat Nov 04, 2006 7:02 am    Post subject: Reply with quote

Put something like the following into your ~/.bashrc

Code:
PATH=$PATH:~/Ruby\ stuff:/opt:/opt/mozilla/bin:/usr/local/bin:/usr/lib:/usr/local/lib:/opt/kde/bin:/usr/bin
export PATH
log out and then log back in and then you should be able to launch kde programs as your regular user with no problem.
_________________
Ware wa mutekinari.
Wa ga kage waza ni kanau mono nashi.
Wa ga ichigeki wa mutekinari.

"First there was nothing, so the lord gave us light. There was still nothing, but at least you could see it."
Back to top
View user's profile Send private message
h3nk
n00b
n00b


Joined: 14 Apr 2006
Posts: 25

PostPosted: Sun Nov 05, 2006 11:31 am    Post subject: Reply with quote

that didn't work for me either, i still guess it's got something to do with gnome, which i have to start in failsafe mode with gdm. when i try to start gnome normal it just stops loading after a few seconds. so i start in failsafe mode, and it works, but there is a warning message telling me, that startup script will not be executed and this is why i think there could be a relation between the two problems

greetz
Back to top
View user's profile Send private message
Shadow Skill
Veteran
Veteran


Joined: 04 Dec 2004
Posts: 1023

PostPosted: Wed Nov 08, 2006 12:53 am    Post subject: Reply with quote

Does the startup script have execution rights? Do you have another window manager or desktop environment you can log into to see if you can type kmail to get kmail to launch as opposed to going into the directory the kmail command is actually in?
_________________
Ware wa mutekinari.
Wa ga kage waza ni kanau mono nashi.
Wa ga ichigeki wa mutekinari.

"First there was nothing, so the lord gave us light. There was still nothing, but at least you could see it."
Back to top
View user's profile Send private message
h3nk
n00b
n00b


Joined: 14 Apr 2006
Posts: 25

PostPosted: Wed Nov 08, 2006 7:55 am    Post subject: Reply with quote

hey, thanks for your answer, i made /etc/profile and /etc/profiles.env executable, but still gnome doesn't start in normal mode and i can't execute my kde-apps.

i started kde to test, whether it's working there and under kde it all worked well just as it should.

what other startup-scripts does gnome have ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum