View Full Version : [all variants] Should you alias, add to path, or symbolic link?
Marupio
December 2nd, 2009, 08:09 PM
I just installed a program in /usr/local/bin (Eclipse C++ IDE) and now I have to link to it. Should I:
alias eclipse=/usr/local/bin/eclipse/eclipse
or
Add /usr/local/bin/eclipse to the PATH
or
rename the eclipse directory and add a symbolic link in /usr/local/bin?
Which is best? Any other suggestions?
lloyd_b
December 3rd, 2009, 05:17 AM
I just installed a program in /usr/local/bin (Eclipse C++ IDE) and now I have to link to it. Should I:
alias eclipse=/usr/local/bin/eclipse/eclipse
or
Add /usr/local/bin/eclipse to the PATH
or
rename the eclipse directory and add a symbolic link in /usr/local/bin?
Which is best? Any other suggestions?
Personally, I'd go with the alias, since that has the least possible affect on your system.
I would avoid the move-and-symlink solution, as the program may be looking for that particular directory (Ideally, it shouldn't, but if they aren't smart enough to put the binary in a default location all bets are off).
Adding it to the PATH could have side effects - if there's a executable in that directory with the same name as a standard executable, then which one will run? It depends on where in the PATH you add that directory.
Lloyd B,
Marupio
December 3rd, 2009, 04:46 PM
Done. Thanks!
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.