LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 06-06-2007, 02:01 PM   #1
joelcomp1
LQ Newbie
 
Registered: Mar 2004
Distribution: Ubuntu 7.04/ Fedora Core 6
Posts: 19

Rep: Reputation: 0
PATH help


I am trying to configure my GNAT GPL compiler to look at the right gnatmake location I use the:

export PATH="/(location of gnat)/bin"

and that works but as soon as I shut down the terminal i loose the path, how do I make it stay?
 
Old 06-06-2007, 02:24 PM   #2
Centinul
Member
 
Registered: Jun 2005
Distribution: Gentoo
Posts: 552

Rep: Reputation: 30
add the following lines (or modify them if they don't already exist) to your .bash_profile file:

Code:
PATH=$PATH:/(location of gnat)/bin"
export PATH
This will add that directory to your path every time you log in to your machine.

HTH,

Centinul
 
Old 06-06-2007, 03:02 PM   #3
joelcomp1
LQ Newbie
 
Registered: Mar 2004
Distribution: Ubuntu 7.04/ Fedora Core 6
Posts: 19

Original Poster
Rep: Reputation: 0
ok awesome, but where is the .bash_profile located?
Joel
 
Old 06-06-2007, 03:12 PM   #4
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
In your home directory.
 
Old 06-07-2007, 06:35 AM   #5
Centinul
Member
 
Registered: Jun 2005
Distribution: Gentoo
Posts: 552

Rep: Reputation: 30
I apologize for not presenting the solution clearly enough
 
  


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
export Path=/usr/java:$Path does not seem to work lumix Linux - Newbie 1 03-19-2007 04:11 PM
Do you add to the path line or make a new path in /etc/profile? M$ISBS Linux - Newbie 2 12-13-2006 03:14 PM
script to change unix path to windows path in all files csross Programming 8 04-29-2006 02:05 PM
Why is the value of $PATH in console mode different from the $PATH in xterm emulator? Akhran Debian 9 03-09-2006 07:10 PM
How to Chnage Python's module search path (sys.path)? lramos85 Linux - Software 1 05-02-2004 07:10 PM


All times are GMT -5. The time now is 06:57 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