Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] Hi, I am trying to install on a Ubunut VPS and I am getting this issue when running the cmake comman

[DiscordArchive] Hi, I am trying to install on a Ubunut VPS and I am getting this issue when running the cmake comman

[DiscordArchive] Hi, I am trying to install on a Ubunut VPS and I am getting this issue when running the cmake comman

rektbyfaith
Administrator
0
08-31-2025, 12:05 PM
#1
Archived author: Exlex • Posted: 2025-08-31T12:05:52.858000+00:00
Original source

Hi, I am trying to install on a Ubunut VPS and I am getting this issue when running the cmake command:

```
cmake ../ -DCMAKE_INSTALL_PREFIX=$AC_CODE_DIR/env/dist/ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DWITH_WARNINGS=1 -DTOOLS_BUILD=all -DSCRIPTS=static -DMODULES=static
```

```
CMake Error in src/server/database/CMakeLists.txt:
Imported target "mysql" includes non-existent path

"MYSQL_INCLUDE_DIR-NOTFOUND"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

* The path was deleted, renamed, or moved to another location.

* An install or uninstall procedure did not complete successfully.

* The installation package was faulty and references files it does not
provide.
```

I've tried to manually set the `MYSQL_INCLUDE_DIR` variable to `/var/lib/mysql/` but i still get the same error. Am I missing something obvious?
rektbyfaith
08-31-2025, 12:05 PM #1

Archived author: Exlex • Posted: 2025-08-31T12:05:52.858000+00:00
Original source

Hi, I am trying to install on a Ubunut VPS and I am getting this issue when running the cmake command:

```
cmake ../ -DCMAKE_INSTALL_PREFIX=$AC_CODE_DIR/env/dist/ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DWITH_WARNINGS=1 -DTOOLS_BUILD=all -DSCRIPTS=static -DMODULES=static
```

```
CMake Error in src/server/database/CMakeLists.txt:
Imported target "mysql" includes non-existent path

"MYSQL_INCLUDE_DIR-NOTFOUND"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

* The path was deleted, renamed, or moved to another location.

* An install or uninstall procedure did not complete successfully.

* The installation package was faulty and references files it does not
provide.
```

I've tried to manually set the `MYSQL_INCLUDE_DIR` variable to `/var/lib/mysql/` but i still get the same error. Am I missing something obvious?

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)