# MYSQL-DEVEL is not available

**URL:** <https://forums.rockylinux.org/t/mysql-devel-is-not-available/11939>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-9\
**Created:** [November 21, 2023, 2:41pm UTC](https://forums.rockylinux.org/t/mysql-devel-is-not-available/11939 "2023-11-21T14:41:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AMD](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@AMD](https://forums.rockylinux.org/u/AMD)\
**Post date:** [November 21, 2023, 2:41pm UTC](https://forums.rockylinux.org/t/mysql-devel-is-not-available/11939/1 "2023-11-21T14:41:20Z")

</div>

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](https://stackoverflow.com/questions/76585758/mysqlclient-cannot-install-via-pip-cannot-find-pkg-config-name-in-ubuntu), 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!

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [November 21, 2023, 4:00pm UTC](https://forums.rockylinux.org/t/mysql-devel-is-not-available/11939/2 "2023-11-21T16:00:06Z")

</div>

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

```auto
crb enable

```

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

```auto
dnf install pkgconf pkgconf-pkg-config

```

---

<div class="post-metadata">

**Author:** ![AMD](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@AMD](https://forums.rockylinux.org/u/AMD)\
**Post date:** [November 22, 2023, 11:52am UTC](https://forums.rockylinux.org/t/mysql-devel-is-not-available/11939/3 "2023-11-22T11:52:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [January 21, 2024, 11:53am UTC](https://forums.rockylinux.org/t/mysql-devel-is-not-available/11939/4 "2024-01-21T11:53:01Z")

</div>

Closed on January 21, 2024, 11:53am UTC

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