2014-02-25 248 views
2

我正在嘗試使用rdiff關閉碼頭集裝箱的備份解決方案。我有蟒蛇安裝和蟒蛇-dev的包,但是當我運行安裝命令:在碼頭集裝箱上安裝rdiff

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 
+0

您是否安裝了rsync的開發包或源代碼? – HAL

+0

這是我安裝apt-get install python-dev的軟件包 – user3001829

回答

2

您的容器需要librsync-dev包。