请问下aarch64架构的centos系统怎么安装brpc 1.3.0

Open
#2,906 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
32/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
centos, cmake, cpp

Research direction

Start by reading brpc-1.3.0.log and the configuration generated by cmake .. in the build directory. Reproduce cmake --build . -j6 on CentOS 8 aarch64 and trace the undefined google:: references to the listed dependency versions. Done means brpc 1.3.0 builds successfully with the documented dependencies.

Written by the indexing model from the issue text.

Description

centos 8 aarch64

# cat /etc/os-release
NAME="CentOS Linux"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"

参考文档运行
yum install git gcc-c++ make openssl-devel gflags-devel protobuf-devel protobuf-compiler leveldb-devel这些依赖

Installed:
  cmake-filesystem-3.20.2-4.el8.aarch64  gcc-c++-8.5.0-4.el8_5.aarch64           gflags-2.1.2-6.el8.aarch64           gflags-devel-2.1.2-6.el8.aarch64  leveldb-1.22-1.el8.aarch64  leveldb-devel-1.22-1.el8.aarch64  libstdc++-devel-8.5.0-4.el8_5.aarch64
  protobuf-3.5.0-13.el8.aarch64          protobuf-compiler-3.5.0-13.el8.aarch64  protobuf-devel-3.5.0-13.el8.aarch64

Complete!

然后用cmake执行编译
mkdir build && cd build && cmake .. && cmake --build . -j6

报错日志

brpc-1.3.0.log

很多 undefined reference to `google:: 相关的报错

Dominant language
C++
Stars
17.6k
Forks
4.2k
Avg merge
3d 17h
Merged PRs (30d)
72

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/brpc

All issues in apache/brpc

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.