Originally Posted by AussieAndrew
Thanks for the quick reploy Evo2.
I installed ant using yum install ant.
I have located the 'bin' folder for ant under usr/bin rather than under the ant folder,
Ok that's good. /usr/bin should already be in your PATH (/usr/bin is where most system executables live).
I am now trying to edit the .bash_profile so I can keep the PATH variable like this as the root user. I've found a forum that says I should do this:
Do you agree with that?
That is basically correct. So after those three lines your path should be "A:B:C". Note however that you only need to "export" the variable once. So you can do something like
You can check the value of your path at any time with the echo command. Eg
You can do this to confirm that /usr/bin is already there. You can also confirm that the ant bin dir is in you path by running:
Which will return the full path to the ant executable (should be "/usr/bin/ant"). All this means that you should not actually have to modify your PATH variable at all.