- Install dependencies Prerequisites Packages
yum groupinstall "Development Tools"
yum install cmake openssl-devel ncurses-devel rpcgen
yum install gcc-toolset-12-gcc gcc-toolset-12-gcc-c++ gcc-toolset-12-binutils gcc-toolset-12-annobin-annocheck gcc-toolset-12-annobin-plugin-gcc
dnf install zlib zstd
dnf --enablerepo=crb install libtirpc-devel
- Install
boost librrary. Mysql version 8.4.0 is include that so if you use this version, you do not need do this step
wget https://archives.boost.io/release/1.77.0/source/boost_1_77_0.tar.gz
tar -xvf boost_1_77_0.tar.gz
cd boost_1_77_0
./bootstrap.sh
./b2 headers
- Build binary
wget https://github.com/mysql/mysql-server/archive/refs/tags/mysql-8.4.0.tar.gz
tar -xvf mysql-8.4.0.tar.gz
cd mysql-server-mysql-8.4.0/
mkdir bld && cd bld
cmake ..
make
make install DESTDIR="/opt/mysql"