搭建编译环境
系统初始化
关闭 SELinux 和防火墙:
shell
setenforce 0
sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config
systemctl stop firewalld
systemctl disable firewalld创建目录和用户
shell
mkdir -p compile_path
chmod 755 -R compile_path
useradd user_name
passwd user_password
chown -R user_name:user_name compile_path安装必要依赖
shell
yum install -y libaio-devel openssl openssl-devel ndctl-devel perl \
ncurses ncurses-devel libtirpc-devel expect ant bison iputils rpm-build \
iproute wget make gcc gcc-c++ gdb gdb-gdbserver python3 python3-devel \
git net-tools cmake automake byacc libtool lz4-devel patch \
--skip-broken unixODBC unixODBC-devel要求: cmake 版本在 3.12 及以上; lz4 版本在 1.8.3 以上。