Slackware This Forum is for the discussion of Slackware Linux.
|
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.
|
 |
04-06-2004, 09:23 PM
|
#1
|
Member
Registered: May 2003
Posts: 598
Rep:
|
PATH instructions no working
I followed the suggestions here for setting the PATH but it doesn't work. I created .bash_profile, .bash-profile and .bashrc and put the same lines in each in my efforts to set a path to OpenOffice so I wouldn't have to type /home/mooreted/OpenOffice.org1.1.1/program/ every time I wanted to create menus in blackbox. Here are the lines I added:
PATH=$PATH:/home/mooreted/OpenOffice.org1.1.1/program/
export PATH
But echo $PATH just shows the global path that Slack set up by itself and typing swriter at the cli does not work.
There must be a way to set the path.
Ted.
|
|
|
04-07-2004, 11:48 AM
|
#2
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Did you parse the newly created files (or logged out and in)??
Untill you do, the new PATH variable will not be set automatically.
Hope this helps.
|
|
|
04-07-2004, 12:43 PM
|
#3
|
Member
Registered: May 2003
Posts: 598
Original Poster
Rep:
|
Yeah, I even tried rebooting. No matter, I put the path at the end of the PATH command in /etc/profile
Thanks for the help.
|
|
|
04-07-2004, 12:59 PM
|
#4
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
PATH=$PATH:/home/mooreted/OpenOffice.org1.1.1/program
export PATH
These 2 lines should be at/near the end of your /etc/profile (global). Even better is putting it in ~/.profile (local), just leave the other stuff the way it was.
Is your syntax correct? If you want you can post the part you added/edited.
Btw: You don't need the last / (after /program).
|
|
|
04-08-2004, 08:48 AM
|
#5
|
Member
Registered: May 2003
Posts: 598
Original Poster
Rep:
|
Thanks. I didn't know you could have more than one PATH command. That would be handy.
PATH=$PATH:/home/mooreted/OpenOffice.org1.1.1/program/
export PATH
That is copied and pasted from the ~.bash-profile I created.
|
|
|
06-11-2004, 03:55 PM
|
#6
|
LQ Newbie
Registered: Feb 2004
Location: portland
Distribution: Debian
Posts: 22
Rep:
|
I'm having the same problem with not being able to change my PATH. All im trying to do is add ' ./ ' to the PATH so that i don't have to type ./a.out all the time. I went to /etc/profile and included ' ./ ' in the PATH. I've restarted the terminal, rebooted my machine and no matter it won't add ' ./ ' to the PATH.
here is /etc/profile
PATH="./:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
if [ "$PS1" ]; then
if [ "$BASH" ]; then
PS1='\u@\h:\w\$ '
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi
export PATH
umask 022
am i doing something wrong or do i have to change something else to get it working? Thanks for your help.
|
|
|
06-11-2004, 04:03 PM
|
#7
|
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,804
|
try PATH="$PWD:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
see if it works
[edit]
but do no append this sort of things to a system config do this in ~/.bashrc instead
and this can also be done by simply :
export PATH="$PWD:$PATH"
in ~/.bashrc
Last edited by keefaz; 06-11-2004 at 04:08 PM.
|
|
|
06-11-2004, 04:16 PM
|
#8
|
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,804
|
Quote:
That is copied and pasted from the ~.bash-profile I created.
|
I assume you did a typo error (~/.bash_profile). For properly configure system I used to have a ~/.bash_profile like this :
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
that's all, all the stuff is in ~/.bashrc
|
|
|
06-16-2004, 07:45 PM
|
#9
|
LQ Newbie
Registered: Feb 2004
Location: portland
Distribution: Debian
Posts: 22
Rep:
|
thanks, i edited .bashrc and it works just fine
|
|
|
All times are GMT -5. The time now is 03:50 AM.
|
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
|
|