Installing php from source and mysql cant find the header files
<p>i have read some of the existing topics and have not found the answer. I am trying to install php from source. I wish there was just a rmp package i could install but i have not found one.  </p>

<p>So i have to build the install.  I have all the dependencies installed (finally lol) however i am having an issue with the configuration finding the mysql header files.  </p>

<p>I am using webmin, but i am doing the submit right from the ssh box on another monitor so its not a webmin issue. </p>

<p>Here are the packages i have installed </p>

<p>mysql-community-client 5.7.14-1.el6 </p>

<p>mysql-community-common 5.7.14-1.el6 </p>

<p>mysql-community-devel 5.7.14-1.el6</p>

<p>mysql-community-libs 5.7.14-1.el6</p>

<p>mysql-community-libs-compat 5.7.14-1.el6</p>

<p>mysql-community-server 5.7.14-1.el6</p>

<p>mysql57-community-release el6-8 </p>

<p>i am on linux CentOs6 64bit dedi server and here is the message i am getting. </p>

<p>configure: error: Cannot find MySQL header files under /usr/include/mysql
Note that the MySQL client library is not bundled anymore!</p>

<p>i have tried:</p>

<p>/usr/include/mysql</p>

<p>/usr/local/mysql</p>

<p>/usr/bin/mysql</p>

<p>/var/run/mysqld</p>

<p>here is my command: </p>

<pre><code>  ./configure --with-apxs2=/usr/sbin/apxs \
        --with-mysql=/usr/bin/mysql \
        --with-zlib --enable-mbstring \
        --with-curl
</code></pre>

<p>i assume the header files are .h files right?  There are alot of those in the /usr/include/mysql but i tried that, same thing.  </p>

<p>should i try /var/lib64 instead of lib?</p>

<p>Can anyone please tell me where to find the header files and maybe even give me a sample header file name so i can do a locate on that one name to see if it exists?  If so then that will help me find the others. </p>

<p>Or can anyone see what im doing wrong that knows now to do this? </p>

<p>Thanks so much. </p>