Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mbeijen opened this issue Nov 14, 2017 · 2 comments
Labels

Comments

@mbeijen
Copy link
Contributor

mbeijen commented Nov 14, 2017

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.
@dveeden
Copy link
Collaborator

dveeden commented Dec 17, 2024

related: #24

@dveeden
Copy link
Collaborator

dveeden commented Dec 17, 2024

Looks like these are the commits that introduced this, and fixed it:
b8e8798 Makefile.PL ignores environment variables on Win32
02e27f1 2009-06-18 Patrick Galbraith [email protected] (4.012)

@dveeden dveeden closed this as completed Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants