Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

migrated from serverfault.com Jul 29 '10 at 13:07

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

5 Answers

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

Thanks.

share|improve this answer
add comment

Does /usr/bin/sudo work?

share|improve this answer
add comment

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
add comment

You most likely have a PATH problem.

What is the output of "echo $PATH" in Terminal.app?

share|improve this answer
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.