首页 > 编程语言 > 详细

python-inotify 在linux上安装

时间:2015-04-21 14:34:47      阅读:418      评论:0      收藏:0      [点我收藏+]

python-inotify 在linux上安装

0 下载

$ 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


1 Ubuntu14.04

python2.7.6

gcc4.8.2

1.1 pathlib

$ cd pathlib-1.0.1
$ sudo python setup.py install

1.2 python-inotify

$ cd JanKanis-python-inotify-2193c8bdeb3b
$ sudo python setup.py install

1.3 测试

$ cd JanKanis-python-inotify-2193c8bdeb3b/examples
$ python simple.py

2 RHEL6.4

python2.7.9

gcc-4.4.7

2.1 pathlib

# cd pathlib-1.0.1
# python setup.py install

2.2 python-inotify

# 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


python-inotify 在linux上安装

原文:http://blog.csdn.net/ubuntu64fan/article/details/45168547

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!