This issue arises because MySQL Workbench depends on libpcrecpp, a library that may not be installed by default on your system. In this guide, we’ll walk you through resolving this dependency issue. The error indicates that the Perl-Compatible Regular Expressions (PCRE) library (libpcrecpp
) is missing or not installed. This is a common dependency for MySQL Workbench, and the solution involves installing or enabling the required version of PCRE.
While installing MySQL Workbench on Linux, you might encounter the following error:
Error “libpcrecpp is needed by mysql-workbench-community-8.x.x”
Install PCRE Library Using Package Manager
On Ubuntu/Debian-based Systems:
Update the package list:
sudo apt update
sudo apt install libpcre3 libpcrecpp0v5 -y
On Fedora-based Systems:
sudo dnf update -y
sudo dnf install pcre pcre-cpp -y
Resolve MySQL Workbench Dependencies Using RPM (Fedora)
If you’re on Fedora and using an RPM package for MySQL Workbench, try forcing installation with dependencies resolved.
Enable EPEL repository (if not already enabled):
sudo dnf install epel-release -y
Install MySQL Workbench with missing dependencies:
sudo dnf install mysql-workbench-community --skip-broken
Verify Installation
ldconfig -p | grep pcrecpp
Manual Installation on fedora.
First install the following package:
sudo dnf install pcre-cpp
Then install the mysql workbench community 8
sudo rpm -ivf mysql-workbench-community-8.0.23-1.fc33.x86_64.rpm
By following the steps in this guide, you should be able to install the necessary dependencies and successfully set up MySQL Workbench on your Linux system