Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using a Macintosh with OS X 10.5.7. Unsure how to operate terminal, and trying to install Wine using Mac ports. Unfortunately the sudo command doesn't perform as expected.

******-imac:~ James$ sudo port install wine
-bash: sudo: command not found
******-imac:~ James$

Question: how to install Wine in OS X using the sudo command in the terminal?

share|improve this question

migrated from Jul 29 '10 at 13:07

This question came from our site for system and network administrators.

Does /usr/bin/sudo work?

share|improve this answer

I agree with David M. Williams. If sudo were found, the response you get would be different than what you're seeing.

The issue is not that "port" is not found. Here's the error you get in that case (and I'm also using bash):

[02:04] Ailsie:data: $ sudo port install wine
sudo: port: command not found
share|improve this answer

What is your $PATH variable? This is the variable that tells your computer where to look for executables. It's likely set incorrectly. Please type the following into Terminal, hit Enter, and paste the results in:

echo $PATH


share|improve this answer

You most likely have a PATH problem.

What is the output of "echo $PATH" in

share|improve this answer

Are you an admin or a normal user? This could possibly be the problem.

share|improve this answer

You must log in to answer this question.