[root@localhost chubaofs-master]# make build
build cfs-server # github.com/chubaofs/chubaofs/vendor/github.com/tecbot/gorocksdb
/usr/bin/ld: 找不到 -lbz2
collect2: 错误:ld 返回 1
到网上查找原因,可能是已安装的包不全。
解决方法:
yum -y install bzip2-libs
yum -y install bzip2-devel