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

Instead of using a relative path like .\mariadb_config.pl, try using the full path (e.g. c:\System\Roaming\Secret Folder\Apps\mariadb_config.pl). Also, if the path contains spaces, quoting might be needed.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
  • Comment on Re: Help on how to compile/install module DBD::MariaDB/Mysql on Windows using Strawberry Perl
  • Select or Download Code

Replies are listed 'Best First'.
Re^2: Help on how to compile/install module DBD::MariaDB/Mysql on Windows using Strawberry Perl
by gosseyn (Initiate) on Jul 22, 2025 at 16:31 UTC
    Changing the call to "--mariadb_config="C:\Program Files\MariaDB 11.8\bin\mariadb_config.pl"
    I get the same kind of error : "Specified mysql configuration script 'C:\PROGRA~1\MariaDB 11.8\bin\mariadb_config.pl' doesn't exist.
    Please check path/permissions."
    Now that I have put the mariadb_config.pl into the 'C:\PROGRA~1\MariaDB 11.8\bin', which is on the path, I have ran the Makefile.pl without the "--mariadb_config" option, and it finds the script by itself. I have, then, another error :

    "Checking if libs and header files are available for compiling...
    Can't link/include C library 'windows.h', 'winsock.h', 'mysql.h', 'mysqlclient', aborting."

    However it finds the parameters from the mariadb_config.pl script :
    cflags (User's choice) = -IC:\Program Files\MariaDB 11.8\inc +lude\mysql libs (User's choice) = -LC:\Program Files\MariaDB 11.8\lib + -lmysqlclient requireembsup (default ) = 0 testauthplugin (default ) = testdb (User's choice) = test testembdatadir (default ) = testemboptions (default ) = testhost (default ) = testpassword (default ) = testport (default ) = testsocket (default ) = testuser (User's choice) = perl
    mysql.h is found in directory C:\Program Files\MariaDB 11.8\include\mysql, but not the other 3 required files. I don't where they can be...

    --
    Gosseyn
Re^2: Help on how to compile/install module DBD::MariaDB/Mysql on Windows using Strawberry Perl
by gosseyn (Initiate) on Jul 22, 2025 at 15:24 UTC
    Thanks Choroba,

    I have tried the full path, it doesn't work.
    I have also tried with double quotes, with just the name mariadb_config.pl without the directory "./" but it doesn't work. I have learned that the file must be in the PATH. On Windows, the current directory is always in the PATH. So I don't understand. Next step : I can replace the original script which is in the path and does not work with mine which works well.

    Best,
    --
    Gosseyn