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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

make command work

Status
Not open for further replies.

jimberger

Programmer
Jul 5, 2001
222
GB
hi everyone,

when i type make install when i'm in as root its says make: command not found. however when i log in as myself this command works? why is this?

cheers
jim
 
Hi,

Sounds a bit unlikely but I guess it could happen. Each user has various environment variables including PATH. If you invoke a command like 'make' it will only work if the directory containing the command is within the user's path.

Do the command 'which make' to find the full path to where it is (e.g. /usr/bin/make). Using this info, do the command 'env' to display the environment varaibles including PATH to see if the relevant directory is included. If not you could edit /root/.bash_profile to add it.

This shouldn't be an issue anyway if you just logon as a regular user and use 'su' to change temporarily to root. If you do it that way (versus 'su-') your existing environment variables remain, i.e. it would still be in your path.

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top