2014-02-25 6 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 패키지를 필요로하는 다음과 같은 오류가 발생합니다.