Tag: gcc

在Docker容器上安装rdiff

我正在尝试使用rdiffclosuresDocker容器的备份解决scheme。 我有python安装和python-dev包,但是当我运行安装命令时: 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

如何编译在Docker中使用内核函数的C代码并在容器中使用pci设备?

我有一个Makefile使用PCI设备的一些C ++代码 all: g++ -o executable main.cpp dragon.pb.cc -std=c++11 -O3 -I/usr/include/postgresql -I/usr/include/hiredis -lzmq -lprotobuf -lpthread -lpq -lhiredis clean: rm executable 它依赖于这个使用内核函数的C库。 这个libraby的Makefile是 # dist and build are folders, not phony targets .PHONY: all package clean all: dragon.pb.cc dragon_pb2.py package dragon.pb.cc: dragon.proto protoc –cpp_out=. dragon.proto dragon_pb2.py: dragon.proto protoc –python_out=. dragon.proto package: build clean: rm -f dragon.pb.* […]