DBD-mysql icon indicating copy to clipboard operation
DBD-mysql copied to clipboard

Makefile.PL should not require rw access to mysql directories on MSWin32 [rt.cpan.org #95752]

Open mbeijen opened this issue 8 years ago • 0 comments
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.

mbeijen avatar Nov 14 '17 19:11 mbeijen