ApsaraDB / PolarDB-for-PostgreSQL

A cloud-native database based on PostgreSQL developed by Alibaba Cloud.
https://apsaradb.github.io/PolarDB-for-PostgreSQL/zh/
Apache License 2.0
2.89k stars 480 forks source link

编译安装报错:fatal error: paxos.h: No such file or directory #37

Closed ThinkBlue1991 closed 3 years ago

ThinkBlue1991 commented 3 years ago

环境:centos 7.6.1810 问题:编译安装执行 ./onekey.sh all时,报错如下:

/home/polardb/PolarDB-for-PostgreSQL-master/src/backend/polar_dma/libconsensus/polar_wrapper/polar_consensus_log.cc:21:19: fatal error: paxos.h: No such file or directory
 #include "paxos.h"
ghost commented 3 years ago

环境:centos 7.6.1810 问题:编译安装执行 ./onekey.sh all时,报错如下:

/home/polardb/PolarDB-for-PostgreSQL-master/src/backend/polar_dma/libconsensus/polar_wrapper/polar_consensus_log.cc:21:19: fatal error: paxos.h: No such file or directory
 #include "paxos.h"

The script for the project was very badly written, and I looked at the project, It should first compile for here. Generating the corresponding xxx.h file and should be copied to some path, I'm still looking for the problem, the mindset exploded!

A lot of files, like easy_log.h, if you don't compile here, you won't get these files.

You should copy the files of the path 'consensus/include' to the path libconsensus/polar_wrapper/include.

But other errors will be found :) :-)

I choose to wait...

mengborong commented 3 years ago

@EthanDBer you can pull latest code. And just run build.sh in source code directory. If you get some errors, please post it here.

ThinkBlue1991 commented 3 years ago

latest code has fixed the bug, Closed!