DBD-mysql
DBD-mysql copied to clipboard
Makefile.PL should not require rw access to mysql directories on MSWin32 [rt.cpan.org #95752]
trafficstars
Migrated from rt.cpan.org#95752 (status was 'new')
Requestors:
From [email protected] on 2014-05-18 12:17:00:
It seems to me that you should be able to install DBD::mysql without having read/write access to the Mysql directories.
Makefile.PL actually writes over an existing mysql_config.pl that has the correct values (but uses VC++ style flags) with one that has incorrect values (but uses gcc style flags). This can be a problem if the MySQL development files are being used by other tools. I was able to work around that with this patch:
https://github.com/perl5-dbi/DBD-mysql/pull/24
Makefile.PL also tries to copy the .lib files that it needs to .a files. For me this silently fails because it thinks the lib files are in $MYSQL/lib/opt, but they are really in $MYSQL/lib for me.