| Installation Guide | |
|---|---|
| This article is a part of the Installation Guide. You can read it alone or click the previous link to easily move between the steps. | |
| << Start: Installation Guide | Step 2: Core Installation >> |
| MySQL |
| Boost ≥ 1.74 |
| OpenSSL ≥ 3.0.x |
| CMake ≥ 3.16 |
| OS |
| GCC / CLang |
sudo apt-get update && sudo apt-get install git cmake make gcc g++ clang libstdc++-16-dev default-libmysqlclient-dev libssl-dev libbz2-dev libreadline-dev libncurses-dev mysql-server libboost-all-dev
Remember that if you are using the root user, it is not necessary to use sudo.
Ubuntu 26.04 already provides supported MySQL packages through the default repositories, so the command above is enough.
libstdc++-16-dev is needed because clang 21 (the default on 26.04) links against the GCC 16 toolchain, while the default g++ is GCC 15 and only brings the GCC 15 C++ development files. Without it, CMake fails with cannot find -lstdc++ (ACE00068). If a future Ubuntu update changes the GCC version clang picks, run clang++ -v and install the libstdc++-<version>-dev matching the Selected GCC installation line.
sudo apt-get update && sudo apt-get install git cmake make gcc g++ clang libssl-dev libbz2-dev libreadline-dev libncurses-dev libboost-all-dev lsb-release gnupg wget
Remember that if you are using the root user, it is not necessary to use sudo.
Ubuntu 24.04 does not ship the recommended MySQL release in its default repositories. After installing the base packages above, follow the Install MySQL steps below to install MySQL 8.4 LTS.
apt-get update && apt-get install -y git cmake make gcc g++ clang libssl-dev libbz2-dev libreadline-dev libncurses-dev libboost-all-dev lsb-release gnupg wget screen
Remember that if you are using the root user, it is not necessary to use sudo.
Note: By using the option -y, it will start installing without the need for you to confirm.
export MYSQL_APT_CONFIG_VERSION=0.8.36-1
wget https://dev.mysql.com/get/mysql-apt-config_${MYSQL_APT_CONFIG_VERSION}_all.deb
wget "https://dev.mysql.com/downloads/gpg/?file=mysql-apt-config_${MYSQL_APT_CONFIG_VERSION}_all.deb&p=37" -O mysql-apt-config_${MYSQL_APT_CONFIG_VERSION}_all.deb.asc
gpg --keyserver pgp.mit.edu --recv-keys A8D3785C
gpg --verify mysql-apt-config_${MYSQL_APT_CONFIG_VERSION}_all.deb.asc mysql-apt-config_${MYSQL_APT_CONFIG_VERSION}_all.deb
rm -v mysql-apt-config_${MYSQL_APT_CONFIG_VERSION}_all.deb.asc
DEBIAN_FRONTEND="noninteractive" to install the latest MYSQL-LTS release, e.g. mysql-8.4-lts without any user prompts showing up.sudo DEBIAN_FRONTEND="noninteractive" dpkg -i ./mysql-apt-config_${MYSQL_APT_CONFIG_VERSION}_all.deb
rm -v ./mysql-apt-config_${MYSQL_APT_CONFIG_VERSION}_all.deb
unset MYSQL_APT_CONFIG_VERSION
sudo apt-get update
sudo DEBIAN_FRONTEND="noninteractive" apt-get install -y mysql-server libmysqlclient-dev
clang --version
Your clang version MUST be equal or higher than the required version listed on the top of this page.
cmake --version
Your cmake version MUST be equal or higher than the required version listed on the top of this page.
openssl version
Your openssl version MUST be equal or higher than the required version listed on the top of this page.
--
If you are still having problems, check:
| Installation Guide | |
|---|---|
| This article is a part of the Installation Guide. You can read it alone or click the previous link to easily move between the steps. | |
| << Start: Installation Guide | Step 2: Core Installation >> |