在docker容器上安装rdiff

时间:2014-02-25 12:03:52

标签: python gcc docker librsync

我正在尝试使用rdiff从docker容器中创建备份解决方案。我有python install和python-dev包但是当我运行install命令时:

python ./setup.py install 

我收到以下错误

running install
running build
running build_py
running build_ext
building 'rdiff_backup._librsync' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/python2.7 -c _librsyncmodule.c -o build/temp.linux-x86_64-2.7/_librsyncmodule.o
_librsyncmodule.c:25:22: fatal error: librsync.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1

1 个答案:

答案 0 :(得分:2)

您的容器需要librsync-dev包。