mysql_config --cflags refers to wrong directory

Problems with the Linux version of XAMPP, questions, comments, and anything related.

mysql_config --cflags refers to wrong directory

Postby hakonhagland » 01. January 2021 03:24

OS: Linux
xampp version: 7.4.5

I am trying to install perl module DBD::mysql to be used by a CGI script. The module uses mysql_config --cflags to determine the location of the include file mysql.h. The problem is that mysql_config seems to be giving wrong paths:

$ /opt/lampp/bin/mysql_config --cflags
-I/opt/lampp/include/mysql -I/opt/lampp/include/mysql/mysql

But there is no directory /opt/lampp/include/mysql :

$ ls /opt/lampp/include/mysql
ls: cannot access '/opt/lampp/include/mysql': No such file or directory

However the header file is located here:

$ file /opt/lampp/include/mysql.h
/opt/lampp/include/mysql.h: C source, ASCII text
hakonhagland
 
Posts: 1
Joined: 01. January 2021 03:12
XAMPP version: 7.4.5
Operating System: Linux

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 15 guests