apache / apache/brpc

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

Open
#2,906 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
17.6k
Forks
4.1k
Avg merge
2d 12h
Merged PRs (30d)
69

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](https://github.com/user-attachments/files/19065258/brpc-1.3.0.log)

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

Contributor guide

Open the contributing guide

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.