Problem using sudo on cygwin

0

I am trying to install the python-brisa framework on Linux. When I try to use the sudo command, it gives me the error "command not found".

I am running the following commands:

$ cd file
$ sudo python setup.py install

What am I doing wrong?

user597293

Posted 2011-01-31T19:29:17.750

Reputation:

2just cd file then enter, and after that you can run the sudo command. – None – 2011-01-31T19:30:22.737

The text was on one line because of a formatting issue, not because it was one line of text – Gareth – 2011-01-31T19:32:03.297

After editing his post, I could see that it seems he did it already. – None – 2011-01-31T19:32:10.503

2which linux are you using, some distro's use su instead of sudo – None – 2011-01-31T19:32:27.287

I also did the same way....cd python-brisa and then enter...and then type the next line and hit enter....then error appears – None – 2011-01-31T19:32:40.823

1I am using Cygwin – None – 2011-01-31T19:33:25.597

2Looking at the last question posted by the OP, it looks like the OP is on Windows? Have you installed linux? This question should be moved to another stack exchange site as this isn't programming but administration. EDIT: OP added comment before I finished mine =) – Quaternion – 2011-01-31T19:35:25.750

1yes...i installed linux -cygwin for windows so that I can run my code on windows also. – None – 2011-01-31T19:36:46.000

Ubuntu has a very user friendly installer, why not give it a shot? – Quaternion – 2011-01-31T19:37:41.757

You may be able to install the framework but I see that their applications "Media Server" and "Media Renderer" require dbus so if you need these applications it'll be pretty tricky to use windows. – Quaternion – 2011-01-31T19:47:29.677

I dont have any other option...do you know any other framework that can be run on windows via cygwin – None – 2011-01-31T19:48:21.877

1I need to use only python – None – 2011-01-31T19:48:39.473

what is ubuntu??would it work with python brisa?? – None – 2011-01-31T19:49:17.540

sir...where u gone??please suggest me what to do? – None – 2011-01-31T19:52:53.387

Yes Ubuntu should work, if you need a linux distribution at this time it is probably the best bet for you. It can install along side windows in such a way you can use the winodws add/remove programs to uninstall. I think due to performance reasons you may want a more typical install. See: www.ubuntu.com but please do a little research to know what it is that you need to do and what this will get you! – Quaternion – 2011-01-31T20:03:08.797

but? what would happen then?/ – None – 2011-01-31T20:04:21.760

What would happen, you'd be able to use python brisa... Ubuntu is a distribution (a collection of software to keep it simple) of Linux. It's very simple to install from there you'll need to investigate. Further questions should be directed to forums which specialize in this line of questions (Ubuntu forums or an appropriate stack exchange site). – Quaternion – 2011-01-31T20:15:06.060

ok..bit it can work on windows ...right? – None – 2011-01-31T20:16:14.577

It is an operating system. Generally on a system with multiple OS's you pick the one you want to start from a list. Or you could load Linux in something like Virtual box, so it would be a window in windows... Or you could load windows in a window in Linux... So you could say 'in' or 'beside' but not really 'on'. As an OS is typically viewed as a platform. Really now Google is your friend. – Quaternion – 2011-01-31T20:30:18.953

Answers

5

You cannot use sudo on Cygwin. Cygwin is restricted to the rights of the security context in which it is executed.

You likely don't need superuser rights to install the package. Simply run the command without sudo and it will probably work.

If you truly need administrator rights, you will need to right-click on the Cygwin icon and choose Run as administrator to run Cygwin with administrative privileges.

Patches

Posted 2011-01-31T19:29:17.750

Reputation: 14 078

0

Patches is right of course, there is no "sudo". But you can make one as shown by answers to many other similar questions. For example this answer. Personally I use an alias:

alias sudo="cygstart --action=runas"

Works as a charm for external programs (not shell built-ins, though):

sudo chown User:Group <file>

thoni56

Posted 2011-01-31T19:29:17.750

Reputation: 163