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.


In reply to Re: Help on how to compile/install module DBD::MariaDB/Mysql on Windows using Strawberry Perl by pryrt
in thread Help on how to compile/install module DBD::MariaDB/Mysql on Windows using Strawberry Perl by gosseyn

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.