If I want to install a unix program so that when I type in the command in the terminal, the program runs, in which directory should the file be saved? I am running version 10.4
Installing Unix Programs on Mac OS X?
Unless the program has been built in such a way that it expects to be in a certain place, it doesn't matter.
Put it anywhere.
If you don't want to type an explicit path to it each time, then put it in one of the directories in your $PATH. Type echo $PATH to find out what they are.
Reply:Normally user installed programs are installed in /usr/bin or usr/local/bin directory. Those paths are usually in your $PATH variable.
But, you can really install it anywhere you want to, including a USB drive or removable storage. You simply add the full path of the install directory to your $PATH invironment variable and export it. That way, all you have to do is type the name of the executable.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment