Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compile MariaDB errors occur (could not find GnuTLS, but it installed)

    cmake . -DCMAKE_INSTALL_PREFIX=/root/mariadb -DDEFAULT_CHARSET=utf8 -
DDEFAULT_COLLATION=utf8_general_ci -DEXTRA_CHARSETS=all -
DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -
DWITH_FEDERATED_STORAGE_ENGINE=1 -DENABLED_LOCAL_INFILE=1 -DMYSQL_USER=mariadb

Then errors:

CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108 (message): Could NOT find GnuTLS (missing: GNUTLS_LIBRARY GNUTLS_INCLUDE_DIR) (Required is at least version "3.3.24") Call Stack (most recent call first): /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake/Modules/FindGnuTLS.cmake:61 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) libmariadb/CMakeLists.txt:291 (FIND_PACKAGE)

The below is my screenshot

enter image description here

like image 437
user8215167 Avatar asked Dec 06 '25 03:12

user8215167


1 Answers

Try installing gnutls-dev with the command:

sudo apt-get install gnutls-dev
like image 150
Stephane Avatar answered Dec 09 '25 16:12

Stephane