tkzky commented on issue #2356: URL: https://github.com/apache/brpc/issues/2356#issuecomment-1752277345
> > 把gcc升级到了8.3.0,现在的异常看起来正常了些  应该是我使用的protobuf版本不兼容的问题,但是源码来说应该是有这个文件的,为何编译之后该文件丢失了? > > 找到问题的根源了,需要先执行yum install zlib-devel,以及yum update zlib protobuf执行./configure的时候会进行一些依赖的check,比如他会check zlib的版本。但是,之后的编译不会出问题,而是直接丢弃一些相关的头文件,继续编译。 但是brpc偏偏需要这些头文件,所以导致brpc的编译出错,如果不是在protobuf的issue上看到有人提了一嘴我估计这个问题是一辈子找不出来。 请问最后的解决方案是什么呀? 升级gcc到8.3.0,然后执行yum install zlib-devel,以及yum update zlib 最后再进行 make 编译吗? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org