Keep It Simple, Stupid | |
PerlMonks |
Re^5: DBD:Mysql compilation failed on windowsby syphilis (Archbishop) |
on Mar 17, 2022 at 11:04 UTC ( [id://11142167]=note: print w/replies, xml ) | Need Help?? |
You have somehow managed to generate a Makefile written for dmake ... but then that Makefile gets processed by nmake, and nmake doesn't understand Makefiles that were written for dmake.
You have a perl that specifies that perl -V:cc is cl and that perl -V:make is nmake. If you wish to use a mingw compiler to build a DBD module for that perl then the first thing you must do is to install ExtUtils::FakeConfig. And the second thing you must do is to Next you check that perl -V:make reports dmake and that perl -V:cc reports gcc. (If that's not happening, then something is not right.) Then you have a chance of success ... or we'll at least start seeing helpful error messages. I know this is something that can work. I actually think that if you were to instead use your MS compiler && provide correct command line arguments to the perl Makefile.PL ... command, then you might achieve what you want. But I don't know if this is something that can work. In my opinion, the simplest solution is to just install one of the later "portable" editions of Strawberry Perl, where both DBD::MySQL and DBD::MariaDB are already installed, and can be updated using the cpan command if an upgrade of those modules is needed. This is also something that can work. Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|