【问题标题】:Installing rdiff on docker containers在 docker 容器上安装 rdiff
【发布时间】:2014-02-25 12:03:52
【问题描述】:

我正在尝试使用 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

【问题讨论】:

  • 你有安装rsync的开发包或源码吗?
  • 这是我安装的包 apt-get install python-dev

标签: python gcc docker librsync


【解决方案1】:

您的容器需要 librsync-dev 包。

【讨论】:

    猜你喜欢
    • 2019-09-14
    • 1970-01-01
    • 2017-06-17
    • 2016-06-11
    • 1970-01-01
    • 2023-01-18
    • 2020-12-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多