{"id":1096,"date":"2014-01-20T22:34:35","date_gmt":"2014-01-20T22:34:35","guid":{"rendered":"http:\/\/www.omniweb.com\/wordpress\/?p=1096"},"modified":"2014-01-20T22:48:27","modified_gmt":"2014-01-20T22:48:27","slug":"php_pdo_mysql_int-h3120-fatal-error-mysql-h-no-such-file-or-directory","status":"publish","type":"post","link":"https:\/\/www.omniweb.com\/wordpress\/?p=1096","title":{"rendered":"php_pdo_mysql_int.h:31:20: fatal error: mysql.h: No such file or directory"},"content":{"rendered":"<p>While trying to compile PHP 5.5 with pdo support on Ubuntu 12 with the intention of trying out this <a href=\"http:\/\/medoo.in\/\">Medoo framework<\/a>, I was seeing the subject error.<\/p>\n<p>In the PHP installation folder, I edited the file <code>ext\/pdo_mysql\/php_pdo_mysql_int.h<\/code> and I changed line 31 from<br \/>\n<code>#       include &lt;mysql.h><\/code><br \/>\nto<br \/>\n<code>#       include &lt;\/usr\/include\/mysql\/mysql.h><\/code><\/p>\n<p>I don&#8217;t know why that was required, but after that configure ran&#8230; but make gives<br \/>\n<code>\/usr\/local\/src\/php-5.5.8\/ext\/pdo_mysql\/mysql_driver.c:35:26: fatal error: mysqld_error.h: No such file or directory<\/code><\/p>\n<p>argh&#8230;<br \/>\nOK I changed the PHP configure command from having<br \/>\n<code>'--with-pdo-mysql=\/usr\/bin\/mysql'<\/code><br \/>\nto just<br \/>\n<code>'--with-pdo-mysql'<\/code><\/p>\n<p>then PHP was able to compile and now &#8216;pdo_mysql&#8217; is present in the phpinfo(), but Medoo is giving a new error&#8230; it doesn&#8217;t like that our db has old passwords, but I can&#8217;t update that now, so I will move on testing the next framework&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While trying to compile PHP 5.5 with pdo support on Ubuntu 12 with the intention of trying out this Medoo framework, I was seeing the subject error. In the PHP installation folder, I edited the file ext\/pdo_mysql\/php_pdo_mysql_int.h and I changed &hellip; <a href=\"https:\/\/www.omniweb.com\/wordpress\/?p=1096\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1096"}],"collection":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1096"}],"version-history":[{"count":5,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1096\/revisions"}],"predecessor-version":[{"id":1101,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1096\/revisions\/1101"}],"wp:attachment":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}