LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   PATH help (https://www.linuxquestions.org/questions/linux-newbie-8/path-help-559666/)

joelcomp1 06-06-2007 01:01 PM

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?

Centinul 06-06-2007 01:24 PM

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

joelcomp1 06-06-2007 02:02 PM

ok awesome, but where is the .bash_profile located?
Joel

forrestt 06-06-2007 02:12 PM

In your home directory.

Centinul 06-07-2007 05:35 AM

I apologize for not presenting the solution clearly enough :(


All times are GMT -5. The time now is 01:41 AM.