Following our discussion with Simon about compiling MySQL 8.0.34 and 8.1.0 for OL9 (RedHat and CentOS Stream as well), see this blog post, we realized that compiling the latest MySQL 8.x on OL7 (EL7) wasn’t very simple either.
After soliciting the MySQL release engineer team, I was able to compile MySQL correctly from its src rpm.
Let me share the various steps with you.
My build machine is a VM.Standard.E4.Flex instance on OCI having
4 OCPUs and 64GB of ram with Oracle Linux 7.9. The machine has
also a block volume of 50GB attached and mounted in
/home/opc/rpmbuild
.
Getting the source RPM
To get the source RPM, you need first to install the MySQL Community’s repo:
$ sudo yum install -y …
[Read more]