foppa
01-05-2001, 11:00 PM
I'm getting the hang of compiling and installing software from source. So far, everything is going into /usr/local/foo - because I don't know any better, and it's easy to delete and try again when something goes wrong.
After getting tired of having to type /usr/local/foo/bin/program to run a program, I tried to find information on adding things to my $PATH. The method I'm using right now is taken from the compiling software NHF, in which you add 2 lines to the bottom of /etc/profile for each program.
This seems very cumbersome. Is there a more elegant & efficient way? Since most programs seem to go into /usr/local/program, is it possible to use a wildcard in your $PATH? Something like /usr/local/*/bin? Would that work for /usr/local/foo/bin as well as /usr/local/bar/bin?
Is there a man page or how-to for this issue? I couldn't find anything, but I'm sure it's only because I wasn't looking in the right place.
Thanks
After getting tired of having to type /usr/local/foo/bin/program to run a program, I tried to find information on adding things to my $PATH. The method I'm using right now is taken from the compiling software NHF, in which you add 2 lines to the bottom of /etc/profile for each program.
This seems very cumbersome. Is there a more elegant & efficient way? Since most programs seem to go into /usr/local/program, is it possible to use a wildcard in your $PATH? Something like /usr/local/*/bin? Would that work for /usr/local/foo/bin as well as /usr/local/bar/bin?
Is there a man page or how-to for this issue? I couldn't find anything, but I'm sure it's only because I wasn't looking in the right place.
Thanks