title: Can't compile C program using MariaDB on CentOS
body: <p>I want to run C programs with a connection to mariaDB, for that I have installed mariaDB version: </p>
  
  <pre><code> Server:            MariaDB
   Server version:        10.1.11-MariaDB MariaDB Server
   Protocol version:  10
   Connection:        Localhost via UNIX socket
   Server characterset:   latin1
   Db     characterset:   latin1
   Client characterset:   utf8
   Conn.  characterset:   utf8
  </code></pre>
  
  <p>But I came through an article</p>
  
  <p><a href="https://i.stack.imgur.com/4Fc7J.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4Fc7J.png" alt="enter image description here"></a></p>
  
  <p>So, i didn't install C connector (due to similar nature of mysql-mariaDB) and tried this sample program from this link <a href="http://zetcode.com/db/mysqlc/" rel="nofollow noreferrer">http://zetcode.com/db/mysqlc/</a>.</p>
  
  <p>But it says:</p>
  
  <pre><code>[root@localhost Desktop]# gcc version.c -o version  `mysql_config --cflags --libs`
  bash: mysql_config: command not found...
  version.c:1:23: fatal error: my_global.h: No such file or directory
  #include &lt;my_global.h&gt;
            ^
  compilation terminated.
  </code></pre>
  
  <p>Then I tried installing <code>libmysqlclient-dev/libmariaclient-dev</code> &amp; it says no package <code>libmysqlclient-dev/libmariaclient-dev</code> available.</p>
  
  <p>Now what should I do?</p>