in reply to Help on how to compile/install module DBD::MariaDB/Mysql on Windows using Strawberry Perl

You didn't say which version of Strawberry Perl you installed. But since you implied it was installed recently, I am going to assume 5.40.

Your post Re^2: Help on how to compile/install module DBD::MariaDB/Mysql on Windows using Strawberry Perl was at 20:46 UTC, whereas there was a comment on the the SO post at 18:51 UTC, saying to look at syphilis's Re^3: MySQL/MariaDB DBD install problem here. Did you try that? Since you never commented in either location that you'd tried that, I am assuming not. So despite the fact that I don't have MariaDB server installed, I tried following those instructions.

Specifically, I looked at syphilis's post, and used that as the basis for the following steps, which I ran, with the results as described:

  1. Download and install the MariaDB C Connectors at https://mariadb.com/downloads/connectors/ to get the header files in the right spot
    -- I don't know if that's a required step if you've already got MariaDB server installed
    -- For me, it installed some libraries into c:\Program Files\MariaDB\MariaDB Connector C 64-bit\lib\ and some headers into c:\Program Files\MariaDB\MariaDB Connector C 64-bit\include\, so if the server didn't install anything into those directories, you might need to separately install the C Connectors.
  2. Since Strawberry Perl 5.40 doesn't come with the mysql_config.bat or some of the associated libraries, but syphilis pointed out in the other conversation that Strawberry Perl 5.38 does, I downloaded the zipfile for StrawberryPerl 5.38 Portable edition.
  3. Per syphilis's instructions, copy the 4 files from the specific directories in the 5.38 zipfile into your main StrawberryPerl 5.40 installation. That's easy to do by opening the zipfile in one Windows Explorer window, and your c:\strawberry\ (or wherever you installed 5.40) in a second Windows Explorer window -- obviously putting each file into the correct directory relative to that main directory, as per the instructions.
  4. At the command line, where your installed StrawberryPerl 5.40 is available, run cpanm DBD::MariaDB
    -- For me, it tried to install v1.24 of the module, but I got the same undefined reference to `__imp___pioinfo' as was mentioned for v1.23 in the other discussion.
    -- Thus, I tried to force the earlier v1.22 instead, using cpanm DBD::MariaDB@1.22 : this command was able to install DBD::MariaDB for me, in my Strawberry Perl 5.40. SUCCESS.

Again, I don't know if having MariaDB server already installed will eliminate the first step or not. And you probably don't need to waste your time with the first cpanm DBD::MariaDB , and should probably go straight to cpanm DBD::MariaDB@1.22 . But this worked to get it installed for me (obviously, whether it will work with a server is something I cannot test). But if you haven't tried this sequence yet, you probably should.

  • Comment on Re: Help on how to compile/install module DBD::MariaDB/Mysql on Windows using Strawberry Perl
  • Select or Download Code