Page 1 of 1

[SOLVED] Compile wth mysql.h?

PostPosted: Feb 25th, '20, 12:16
by janpihlgren
Which package do I have to install to use
Code: Select all
#include </usr/include/mysql/mysql.h>

in a C-program?

Now I get the following error:
Code: Select all
titanus-tmp.c:13:10: ödesdigert error: /usr/include/mysql/mysql.h: File or directory does not exist
 #include </usr/include/mysql/mysql.h>

Re: Compile wth mysql.h?

PostPosted: Feb 25th, '20, 18:05
by jiml8
That will be a mariadb developer package. I don't know the exact name, but you should be able to find it easily enough.

Re: Compile wth mysql.h?

PostPosted: Feb 25th, '20, 23:57
by doktor5000
You can easily find it by searching for the filename with
Code: Select all
urpmf mysql.h

As this is a search for a regular expression, that would also return all sorts of mysql.html and such.
So an exact search would be maybe better suited:
Code: Select all
urpmf 'mysql.h$'


You can also search for files with rpmdrake, see the section "3. Search mode:" at http://doc.mageia.org/mcc/7/en/content/ ... l#rpmdrake

Re: Compile wth mysql.h?

PostPosted: Feb 26th, '20, 05:47
by janpihlgren
Thanks doktor5000! :)
This
Code: Select all
urpmf 'mysql.h$
helped me to find the missing package,
Code: Select all
 lib64mariadb-devel