{"id":739,"date":"2012-09-23T13:02:34","date_gmt":"2012-09-23T13:02:34","guid":{"rendered":"http:\/\/www.omniweb.com\/wordpress\/?p=739"},"modified":"2012-09-23T13:04:54","modified_gmt":"2012-09-23T13:04:54","slug":"installing-dbd","status":"publish","type":"post","link":"https:\/\/www.omniweb.com\/wordpress\/?p=739","title":{"rendered":"Installing DBD"},"content":{"rendered":"<p>Trying to install DBD::mysql from CPAN and the install failed,<br \/>\nhere are the steps I follow:<\/p>\n<p>cpan> <strong>install DBI<\/strong><br \/>\n&#8230;<br \/>\nAppending installation info to \/usr\/lib64\/perl5\/5.8.8\/x86_64-linux-thread-multi\/perllocal.pod<br \/>\n  \/usr\/bin\/make install  &#8212; OK<\/p>\n<p>cpan> <strong>install DBD::mysql<\/strong><br \/>\n&#8230;<br \/>\nCan&#8217;t exec &#8220;mysql_config&#8221;: No such file or directory at Makefile.PL line 83.<br \/>\n  Make had some problems, maybe interrupted? Won&#8217;t install<\/p>\n<p>cpan> <strong>quit<\/strong><br \/>\n# <strong>cd  \/root\/.cpan\/build\/DBD-mysql-4.022\/<\/strong><br \/>\n# <strong>perl Makefile.PL<\/strong><br \/>\nCan&#8217;t exec &#8220;mysql_config&#8221;: No such file or directory at Makefile.PL line 83.<br \/>\n# <strong>yum install mysql<\/strong><br \/>\n# <strong>perl Makefile.PL<\/strong><br \/>\n&#8230;<br \/>\nWriting Makefile for DBD::mysql<br \/>\nWriting MYMETA.yml and MYMETA.json<br \/>\n# <strong>make<\/strong><br \/>\n&#8230;<br \/>\nerror: mysql.h: No such file or directory<br \/>\n&#8230;<br \/>\ndbdimp.c:5144: warning: assignment makes integer from pointer without a cast<br \/>\nmake: *** [dbdimp.o] Error 1<\/p>\n<p>The solution is to install mysql-devel<br \/>\n# <strong>yum install mysql-devel<\/strong><\/p>\n<p>Then DBD-mysql-4.022 was able to make &#038;&#038; make install.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Trying to install DBD::mysql from CPAN and the install failed, here are the steps I follow: cpan> install DBI &#8230; Appending installation info to \/usr\/lib64\/perl5\/5.8.8\/x86_64-linux-thread-multi\/perllocal.pod \/usr\/bin\/make install &#8212; OK cpan> install DBD::mysql &#8230; Can&#8217;t exec &#8220;mysql_config&#8221;: No such file or &hellip; <a href=\"https:\/\/www.omniweb.com\/wordpress\/?p=739\">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\/739"}],"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=739"}],"version-history":[{"count":3,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/739\/revisions"}],"predecessor-version":[{"id":749,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/739\/revisions\/749"}],"wp:attachment":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=739"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}