[SOLVED] Compile wth mysql.h?

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] Compile wth mysql.h?

Postby janpihlgren » Feb 25th, '20, 12:16

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>
Last edited by janpihlgren on Feb 27th, '20, 01:14, edited 2 times in total.
User avatar
janpihlgren
 
Posts: 294
Joined: Mar 30th, '11, 12:23
Location: Marsta, Sweden

Re: Compile wth mysql.h?

Postby jiml8 » Feb 25th, '20, 18:05

That will be a mariadb developer package. I don't know the exact name, but you should be able to find it easily enough.
jiml8
 
Posts: 1254
Joined: Jul 7th, '13, 18:09

Re: Compile wth mysql.h?

Postby doktor5000 » Feb 25th, '20, 23:57

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Compile wth mysql.h?

Postby janpihlgren » Feb 26th, '20, 05:47

Thanks doktor5000! :)
This
Code: Select all
urpmf 'mysql.h$
helped me to find the missing package,
Code: Select all
 lib64mariadb-devel
User avatar
janpihlgren
 
Posts: 294
Joined: Mar 30th, '11, 12:23
Location: Marsta, Sweden


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron