LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-01-2003, 02:52 PM   #1
bmagyar
LQ Newbie
 
Registered: Aug 2003
Posts: 21

Rep: Reputation: 15
setting paths


Ok, so it seems like I go through this non-sense every time I want to install something new.

That's right path-setting!

I do the following:

PATH=$PATH:/new/directory/here

then append the same directory to the list of current paths in

.bash_profile (located in my home directory). I swear this worked before. But after making these changes, the paths *still*l aren't permenant. Logging in/out also did nothing.

What am I overlooking?
Thanks, everyone
 
Old 11-01-2003, 02:54 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
do you
export PATH
?
 
Old 11-01-2003, 02:58 PM   #3
bmagyar
LQ Newbie
 
Registered: Aug 2003
Posts: 21

Original Poster
Rep: Reputation: 15
yup. I tried exectuting the following sequence of commands
with and without the line
export PATH
in between setting the path and updating bash_profile
 
Old 11-01-2003, 03:13 PM   #4
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
export PATH
has to be in ~/.bash_profil. Do you have it there?
 
Old 11-01-2003, 03:18 PM   #5
bmagyar
LQ Newbie
 
Registered: Aug 2003
Posts: 21

Original Poster
Rep: Reputation: 15
yes
 
Old 11-01-2003, 03:26 PM   #6
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
hmm. Could you post your ~/.bash_profile? Maybe someone can see something.
 
Old 11-01-2003, 03:32 PM   #7
tokyoeye
Member
 
Registered: Oct 2003
Location: Amsterdam
Distribution: gentoo,debian
Posts: 47

Rep: Reputation: 15
Do you maybe have any strange line in /etc/profile that overwrites the users bash files after a reboot?

Maybe a silly question but do you seperate the directories in the path in your bash_profile file by a : ?
 
Old 11-01-2003, 03:40 PM   #8
bmagyar
LQ Newbie
 
Registered: Aug 2003
Posts: 21

Original Poster
Rep: Reputation: 15
hey guys,

here's my bash_profile:




# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin:/opt/JBuilder9/jdk1.4/bin:/opt/OpenOffice.org1.1.0/program
:/usr/bin/MozillaFirebird/:

export PATH
unset USERNAME
 
Old 11-01-2003, 03:56 PM   #9
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
maybe get rid of the :/ at the end of/usr/bin/MozillaFirebird/:

Don't know if this has anything to do with the problem but might worth a shot.
 
Old 11-01-2003, 04:02 PM   #10
bmagyar
LQ Newbie
 
Registered: Aug 2003
Posts: 21

Original Poster
Rep: Reputation: 15
No Luck.

And here is /etc/profile in response to the earlier post:




# /etc/profile

# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc

pathmunge () {
if ! echo $PATH | /bin/egrep -q "(^|$1($|" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}

# Path manipulation
if [ `id -u` = 0 ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi

pathmunge /usr/X11R6/bin after

unset pathmunge

# No core files by default
ulimit -S -c 0 > /dev/null 2>&1

USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"

HOSTNAME=`/bin/hostname`
HISTSIZE=1000

if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC

for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done

unset i
 
Old 11-01-2003, 05:08 PM   #11
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
silly question maybe but does your ~/.bash_profile have exec permissions?

Do you actually have a /usr/bin/MozillaFirebird directory? Seems an unusual place to have the Firebird directory.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up paths Pyro-dragon Linux - Newbie 5 03-07-2005 06:04 PM
Setting Library paths RedHAT9 (N00B) Jaykay3k Linux - Software 1 03-03-2005 01:15 AM
Setting Paths? bluelaguna Linux - Software 2 08-07-2004 02:31 PM
Automatically resolving WINDOWS paths to pre-configured Linux paths gazzy Linux - General 1 09-05-2003 10:15 PM
Setting Paths ken22 Linux - Software 1 06-19-2003 01:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration