Giter Site home page Giter Site logo

您好,我在编译的时候遇到了一些问题,下面是我的步骤,请问您知道哪一步有问题吗? about phxpaxos HOT 2 CLOSED

tencent avatar tencent commented on May 16, 2024
您好,我在编译的时候遇到了一些问题,下面是我的步骤,请问您知道哪一步有问题吗?

from phxpaxos.

Comments (2)

lynncui00 avatar lynncui00 commented on May 16, 2024

protobuf和leveldb都需要先单独编译,编译成功后这些include或lib目录会自动创建。如何编译protobuf和leveldb网上应该有很多资料。

from phxpaxos.

qiaojialin avatar qiaojialin commented on May 16, 2024

非常感谢您的指导!终于弄好了

为其他人提供参考,步骤如下:
git clone --recursive https://github.com/tencent-wechat/phxpaxos.git

但是这个clone下来的protobuf好像编译不通过。
需要单独clone一下protobuf项目,编译安装,网上有教程,安好后默认在/usr/local下,把/usr/local下的bin include lib目录拷贝到protobuf根目录下,再把整个protobuf替换掉third_party下的protobuf就好了

再编译一下leveldb, 网上的教程有个问题,make完后libleveldb.a文件在 out-static目录下,这个注意一下就好了,还是把/usr/local下的 include和lib拷贝到leveldb下

这时可能会提示glog有问题,再编译一下glog就行了,glog编译也有问题,在git上glog的issue的52号问题有解答

弄好这些就可以了

from phxpaxos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.