Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Mage agner tell about using sudo if superuser privileges are required #152

Open
mcandre opened this Issue Feb 26, 2011 · 3 comments

Comments

Projects
None yet
2 participants

mcandre commented Feb 26, 2011

At least on Mac OS X / Linux / Unix, Agner needs superuser privileges to install packages. So when I run "agner install cecho", Agner downloads cecho, compiles cecho, then fails with an obscure "badarg" error.

I should have run "sudo agner install cecho", but Agner did not tell me that. I, and other noobs, would benefit greatly from agner detecting if it has the appropriate privileges before it tries to install packages, and warning the user to use "sudo agner " in this case.

Owner

yrashk commented Feb 26, 2011

it would make sense, yes — especially since oneliner does that autodetection of /usr/local writeability. This is a different place and different method will be needed, but yes, I agree with you.

Owner

yrashk commented Feb 26, 2011

Also, for the record, on my OS X installations, /usr/local is writeable to my user. This is homebrew if often used, too

mcandre commented Feb 26, 2011

Only /usr/local/etc is user-writable on my installation. Curious. Nevertheless, some Mac users don't have everything in /usr/local writable, so it's good to check first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment