tilemill-project / tilemill

TileMill is a modern map design studio
https://tilemill-project.github.io/tilemill/
BSD 3-Clause "New" or "Revised" License
3.11k stars 527 forks source link

pkexec not available #1238

Open springmeyer opened 12 years ago

springmeyer commented 12 years ago

Testing the recommended ubuntu install route fails.

Running as root on oneric server linode instance to get a clean instance to test on.

Do we need to catch and throw if user is trying to install on a non-desktop dist?

wget https://github.com/downloads/mapbox/tilemill/install-tilemill.tar.gz
tar xvf install-tilemill.tar.gz
./._install-tilemill.sh
install-tilemill.sh
root@li330-119:~# ./install-tilemill.sh 
./install-tilemill.sh: line 28: pkexec: command not found
root@li330-119:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 11.10
Release:    11.10
Codename:   oneiric
springmeyer commented 12 years ago

I see pkexec was added in https://github.com/mapbox/tilemill/commit/fb137dc674b1ed2f3c528833dc9264bc715784fa#diff-6

springmeyer commented 12 years ago

ping @willwhite - can you comment on this? /cc @tmcw

willwhite commented 12 years ago

I was not anticipating this script being used on a server dist so I figured pkexec was acceptable. Do you think that's an ok assumption? If not, I can add a check and revert to sudo or something.

llimllib commented 12 years ago

I run tilemill on my server and just hit this issue right now (just provided as a data point).

Just for the record, in case others get here via google, sudo apt-get install policykit-1 will get you pkexec.

jasonhoekstra commented 12 years ago

+1 @llimllib, this also did the trick for me.

geohacker commented 12 years ago

I hit this right now. Wouldn't it be a great idea to switch to sudo?