MYSQL-DEVEL is not available

Hello everyone,

I’m trying to install mysql in a Rocky Linux server, which will work as database for my Django application. I have managed to install mysql-server on the server, but the installation fails when I try to install mysqlclient on my virtual machine.

Following the answer of Mircea Cristian in this forum, I saw that a possible solution involves the installation of mysql-devel. However, I can’t find it in the repositories. Has the package been removed?

By the way, when I try to install mysql client on my virtual machine, using pip install mysqlclient, I run in this error:

  Exception: Can not find valid pkg-config name.
  Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually

Does anyone have a hint to find a solution to this error?

Thanks!

The mysql-devel package is in CRB repository so make sure you have enabled that.

crb enable

as for the other error, pkg-config is provided by pkgconf-pkg-config so you need to install that.

dnf install pkgconf pkgconf-pkg-config

Thanks a lot, @iwalker ! It solved my problem.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.