Linux, 工作, 生活, 家人

Linux

multichase on Centos 8 Compile Issue

muttichase is a google open source tool which can run latency, bandwidth and loader-latency tool,
it can support both x86 and ARM64 platforms.
but it will have compile error on CentOS 8

root cause is this package needs static lib support, but regular CentOS doesn’t have it.

# make                                                                             cc -g -O3 -static -pthread  multichase.o permutation.o arena.o util.o  -lrt -lm -o multichase
/usr/bin/ld: cannot find -lrt                                                                                 /usr/bin/ld: cannot find -lm                                                                                  /usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -lc                                                                                  collect2: error: ld returned 1 exit status                                                                    make: *** [<builtin>: multichase] Error 1

Install necessary package and download the source code

# Install necessary package
yum install git
yum groupinstall "Development Tools"

# Download source code
git clone https://github.com/google/multichase

# Install epel
dnf config-manager --set-enabled powertools
dnf install epel-release epel-next-release

# Install static library 
yum install glibc-static

ref.
Extra Packages for Enterprise Linux (EPEL)

發佈留言