标签:
$ wget --no-check-certificate https://pypi.python.org/packages/source/p/pathlib/pathlib-1.0.1.tar.gz $ wget --no-check-certificate https://bitbucket.org/JanKanis/python-inotify/get/2193c8bdeb3b.zip
python2.7.6
gcc4.8.2
$ cd pathlib-1.0.1 $ sudo python setup.py install
$ cd JanKanis-python-inotify-2193c8bdeb3b $ sudo python setup.py install
$ cd JanKanis-python-inotify-2193c8bdeb3b/examples $ python simple.py
python2.7.9
gcc-4.4.7
# cd pathlib-1.0.1 # python setup.py install
# cd JanKanis-python-inotify-2193c8bdeb3b # python setup.py install
出现错误, 在inotify/_inotify.c的开头添加下面的代码:
/* Exclude events on unlinked objects. */
#ifndef IN_EXCL_UNLINK
# define IN_EXCL_UNLINK 0x04000000
#endif
标签:
原文地址:http://blog.csdn.net/ubuntu64fan/article/details/45168547