sudo: Permission denied.

chuoqiu

macrumors newbie
Original poster
Jul 30, 2010
2
0
Hi! c:
I'm trying to configure MacPorts to install Wine. According to this site:
http://davidbaumgold.com/tutorials/wine-mac/
I need to enter the command

echo export PATH=/opt/local/bin:/opt/local/sbin:\$PATH$'\n'export MANPATH=/opt/local/man:\$MANPATH | sudo tee -a /etc/profile

but this just gets me the error message:

sudo: can't open /private/etc/sudoers: Permission denied

I only have one account on this computer, so it is an admin account.
I'm not really familiar with Terminal, so any help in simple terms would be greatly appreciated.
Thanks in advance!
 

Morod

macrumors 68000
Jan 1, 2008
1,633
254
On The Nickel, over there....
Be careful with Terminal!

Sorry I can't help you with your problem.
Just be careful in Terminal as that is one place you can really mess up your computer!
Best of luck to you.
 

LPZ

macrumors 65816
Jul 11, 2006
1,221
1
Hi! c:
I'm trying to configure MacPorts to install Wine. According to this site:
http://davidbaumgold.com/tutorials/wine-mac/
I need to enter the command

echo export PATH=/opt/local/bin:/opt/local/sbin:\$PATH$'\n'export MANPATH=/opt/local/man:\$MANPATH | sudo tee -a /etc/profile

but this just gets me the error message:

sudo: can't open /private/etc/sudoers: Permission denied

I only have one account on this computer, so it is an admin account.
I'm not really familiar with Terminal, so any help in simple terms would be greatly appreciated.
Thanks in advance!
My guess is that the website you are using is old. I would ignore it. Simply install MacPorts and then enter the following in Terminal:

sudo port -v install wine

This should install wine-1.2, all configured and ready to use. If problems arise, I'd ask them at MacPorts.

(By the way, I've built wine many times directly from source, without even using MacPorts.)
 

chuoqiu

macrumors newbie
Original poster
Jul 30, 2010
2
0
My guess is that the website you are using is old. I would ignore it. Simply install MacPorts and then enter the following in Terminal:

sudo port -v install wine

This should install wine-1.2, all configured and ready to use. If problems arise, I'd ask them at MacPorts.

(By the way, I've built wine many times directly from source, without even using MacPorts.)
Well, since the problem is with sudo, that command doesn't work.
When I enter that in, I get the same thing:

sudo: can't open /private/etc/sudoers: Permission denied
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.