I find myself annoyed when building something that more things are needed than what the instructions say.
The build steps: https://github.com/facebook/mysql-5.6/wiki/Build-Steps
You follow these steps and are stuck at cmake which complains about out of source builds. Wtf does that mean. Then you get past that and now you need to install more libraries. UGH. After that it complains about needing BOOST 1.77 which is already in the directory. Finally you get to make and now hamstrung by some perl build error! I don't know wtf is going on sometimes.
Install Dependencies
sudo yum install -y cmake gcc-c++ bzip2-devel libaio-devel bison \
zlib-devel snappy-devel boost-devel gflags-devel readline-devel ncurses-devel \
openssl-devel lz4-devel gdb git libtirpc-devel rpcgen
Checkout MyRocks repo
git clone https://github.com/facebook/mysql-5.6.git
myrocks cd myrocks git submodule update --init --recursive
Build
mkdir build
cd build
cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_SSL=system -DWITH_ZLIB=bundled -DMYSQL_MAINTAINER_MODE=0 -DENABLED_LOCAL_INFILE=1 -DENABLE_DTRACE=0 -DCMAKE_CXX_FLAGS="-march=native" -DWITH_ZSTD=/usr
cd ..
make -j$(nproc)
Ok, go back to following the original steps!