WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Perl DBD::mysql installation problem - mysql_config  (Read 3277 times)

Offline vbs

  • Newbie
  • *
  • Posts: 21
Perl DBD::mysql installation problem - mysql_config
« on: June 08, 2014, 07:35:50 AM »
I am using TC 5.3 and I am trying to install the Perl module "DBD::mysql" using "cpan install DBD::mysql". Thats the output:
http://pastebin.com/ggJZ3DLJ

Its basically saying that it cannot find "mysql_config". Usually it seems this binary is coming with the mysql or with the mysql-dev package. It turned out that MySQL has been replaced by MariaDB in TinyCore so I installed both packages mariadb-clients.tcz and mariadb-lib.tcz. But still cpan states that it cannot find "mysql_config". It is possible to provide a manual path for mysql_config but I cannot find it on the filesystem either. As far as I have read MariaDB can replace MySQL completely in a binary compatible way so I thought it should work with MariaDB.

Any hints please where am I doing wrong or what I could try? Thanks!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14794
Re: Perl DBD::mysql installation problem - mysql_config
« Reply #1 on: June 08, 2014, 09:05:47 AM »
You could try the mysql/mysql-dev extensions from the tc-4.x repo - if they work with tc-5.x they can be copied over.

Offline vbs

  • Newbie
  • *
  • Posts: 21
Re: Perl DBD::mysql installation problem - mysql_config
« Reply #2 on: June 08, 2014, 03:44:07 PM »
Great, thank you! That worked. I copied mysql-dev from TC4 and then I could install DBD::mysql. Afterwards I could remove mysql-dev again and installed mariadb-lib to make it run.

But, according to this stackoverflow question, MariaDB comes with a compatible mysql_config by itself: http://stackoverflow.com/questions/22949654/mysql-config-not-found-when-installing-mysqldb-python-interface-for-mariadb-10-u
Maybe that could be included into the TC MariaDB extension.