PhxRPC (一)环境搭建
发布日期:2021-05-10 08:37:27 浏览次数:18 分类:精选文章

本文共 1393 字,大约阅读时间需要 4 分钟。

���������������������������

���������������

���������������������������

  • phxrpc-master.zip
  • protobuf-master.zip
  • ������������

  • ���������������������������

  • ��� phxrpc-master ��������������� third_party ��������������� protobuf-master ������������������ phxrpc-master/third_party ��������������� protobuf

  • ������ phxrpc-master/third_party/protobuf ��������������� ./autoge.sh

    • ��������������� autoreconf: not found���������������������������������������
      sudo apt-get install autoconf automake libtool
    • ���������������������������������������������������������
  • ���������������������

    ./configure CXXFLAGS=-fPIC prefix=$(pwd)

    ������������������������������������������

  • ���������

    make
  • ���������

    make install
  • ��������������������� phxrpc-master/third_party/protobuf ������ bin���include ��� lib ������������������������������

  • ������������������������������������

  • ������ phxrpc-master ��������������� make

  • ��������������������������� phxrpc-master/lib ��������������������������� sterlibphxrpc.a ������

  • ������������

    1. ���������������������������

    ������ rpc/phxrpc-master/sample ������������������������

    ./search_main -c search_server.conf

    2. ���������������������������

    ������������ rpc/phxrpc-master/sample ���������������������������������������������������������������

    ./search_tool_main -c search_client.conf -f PHXEcho -s "hello"

    ������������������������������������������������������������������������

    上一篇:grpc C++开发环境安装
    下一篇:LeetCode刷题记录一(C)

    发表评论

    最新留言

    关注你微信了!
    [***.104.42.241]2025年03月31日 03时24分28秒