Skip to content

Instantly share code, notes, and snippets.

@niftynei
Last active September 22, 2015 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niftynei/4a7ad4c5ecf0bb4cf257 to your computer and use it in GitHub Desktop.
Save niftynei/4a7ad4c5ecf0bb4cf257 to your computer and use it in GitHub Desktop.
sudo but sudon't
$ which python
/usr/bin/python
$ sudo which python
/usr/bin/python
$ python -c "import cairo; print cairo.version"
1.10.0
$ sudo python -c "import cairo; print cairo.version"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/lib/python2.7/site-packages/cairo/__init__.py", line 1, in <module>
from _cairo import *
ImportError: libcairo.so.2: cannot open shared object file: No such file or directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment