sbilly / docker-zerotier-controller

Dockernized ZeroTierOne Controller
https://hub.docker.com/r/sbilly/zerotier-controller
MIT License
240 stars 85 forks source link

最新 截至当前编译报错 版本号242b7db #10

Open chenxudong2020 opened 2 years ago

chenxudong2020 commented 2 years ago

image 版本 https://github.com/sbilly/docker-zerotier-controller/commit/242b7db3c2a453ee3020e8dfb4cb3ad1bfd8e10a centos 7.8版本 试过github Action自动构建同样的错误

jradxl commented 2 years ago

I've just found the same! @chenxudong2020 Can you edit the title of this Issue so to say, libpq-fe.h not found

weiyideai520 commented 2 years ago

me too

JJput commented 2 years ago

+1 @sbilly

lcylgs commented 2 years ago

g++版本要大于17的文可以通过编辑Dockerfile 加上CXXFLAGS="-std=c++17",改成如下。

Downloading and build latest libpqxx

RUN LIBPQXX_VERSION=curl --silent "https://api.github.com/repos/jtv/libpqxx/releases" | jq -r ".[0].tag_name" && \ curl https://codeload.github.com/jtv/libpqxx/tar.gz/refs/tags/${LIBPQXX_VERSION} --output /tmp/libpqxx.tar.gz && \ mkdir -p /src && \ cd /src && \ tar fxz /tmp/libpqxx.tar.gz && \ mv /src/libpqxx-* /src/libpqxx && \ rm -rf /tmp/libpqxx.tar.gz && \ cd /src/libpqxx && \ /src/libpqxx/configure CXXFLAGS="-std=c++17" --disable-documentation --with-pic && \ make && \ make install

不过这个地方不保存后,编译ZeroTierOne报错,源码语法有问题