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?

link|improve this question
feedback

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

This question came from our site for system administrators and desktop support professionals.

6 Answers

Does /usr/bin/sudo work?

link|improve this answer
feedback

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
link|improve this answer
feedback

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.

link|improve this answer
feedback

You most likely have a PATH problem.

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

link|improve this answer
feedback

@benjy i really suck at this web site but this is the stuff /opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:

link|improve this answer
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown