操作系统版本
$ cat /etc/redhat-release
CentOS Linux release 7.8.2003 (Core)
环境搭建
mysql
$ docker run --name mysql --net=host \
-e MYSQL_ROOT_PASSWORD='root@appinside' -d -p 3306:3306 \
-v /opt/mysql-data:/var/lib/mysql mysql:5.7
cmake
通过yum安装的cmake版本为2.8,不满足tars依赖需求
$ yum install -y cmake
$ cmake --version
cmake version 2.8.12.2
从官网下载最新版本cmake并安装
$ cd /tmp \
wget https://github.com/Kitware/CMake/releases/download/v3.18.4/cmake-3.18.4-Linux-x86_64.sh \
chmod +x cmake-3.18.4-Linux-x86_64.sh \
./cmake-3.18.4-Linux-x86_64.sh --prefix=/opt/app/cmake
$ vim /etc/profile
export CMAKE_HOME=/opt/app/cmake/cmake-3.18.4-Linux-x86_64
export PATH=.:$CMAKE_HOME/bin:$PATH
$ source /etc/profile
参考资料
CMake相关:
MySQL相关:
Tars相关: