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

Error building DBDs on Monterey macOS #107

Open
turnstep opened this issue Mar 5, 2023 · 1 comment
Open

Error building DBDs on Monterey macOS #107

turnstep opened this issue Mar 5, 2023 · 1 comment

Comments

@turnstep
Copy link

turnstep commented Mar 5, 2023

Opening here, as this involves failure of the Driver_xst.h compilation step, and the same error occurs on both DBD::Pg and DBD::Sqlite:

DBD::Pg:
bucardo/dbdpg#110

DBD::SQLite:
DBD-SQLite/DBD-SQLite#106

Summary of error on both when running perl Makefile.PL:

"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- SQLite.bs blib/arch/auto/DBD/SQLite/SQLite.bs 644
make: *** No rule to make target /System/Library/Perl/Extras/5.30/darwin-thread-multi-2level/auto/DBI/Driver_xst.h', needed by SQLite.xsi'. Stop.

@dveeden
Copy link
Contributor

dveeden commented Nov 16, 2023

This also happened with DBD::mysql. This only happened when using system Perl /usr/bin/perl and not when using Perl installed via brew /usr/local/bin/perl.

The default Perl installation seems to have a weirdly looking DBI installation. Re-installing DBI via cpanm seems to work to solve at least part of this.

However it seems like most people advise against using system Perl in general.

The Xcode commandline SDKs seem to include some of the DBI parts like DBIXS.h. Maybe this is just a case of setting the right path?

See also perl5-dbi/DBD-mysql#403

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants