Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

make - which version

Status
Not open for further replies.

apocalypse11

Technical User
Jan 11, 2001
77
AU
I have installed gnu make on my server...
when I do a which make it tells me /sbin/make (which is the old version)
how do I tell it that I want to use the make in /usr/bin when building packages? Because this is the new version.
 
When you execute a command, the shell will search the directories in your $PATH variable until it finds the first match. If its finding /sbin/make before /usr/bin/make, you can do a few things. One is to change the order that directories are searched in your $PATH.

echo $PATH
/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin

export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin

echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin



If you don't need /sbin/make anymore, you can either delete it, rename it, or make it a symlink to /usr/bin/make. If you don't need it anymore, I would suggest...

mv /sbin/make /sbin/make.old
ln -s /usr/bin/make /sbin/make



ChrisP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top