lschult2 has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks, I'm trying to setup mod_perl on my new Apple silicon mac, and I'm getting errors running ModPerl::Registry. I'm using the default Apache, with mod_perl.so enabled in httpd.conf. But even simply running a test.pl file from the command line containing just use ModPerl::Registry (); generates an error:
Can't load '/System/Library/Perl/Extras/5.30/darwin-thread-multi-2leve +l/auto/APR/APR.bundle' for module APR: dlopen(/System/Library/Perl/Ex +tras/5.30/darwin-thread-multi-2level/auto/APR/APR.bundle, 0x0009): sy +mbol not found in flat namespace '_apr_bucket_alloc' at /System/Libra +ry/Perl/5.30/darwin-thread-multi-2level/DynaLoader.pm line 197. at /System/Library/Perl/Extras/5.30/darwin-thread-multi-2level/APR/Ta +ble.pm line 23. Compilation failed in require at /System/Library/Perl/Extras/5.30/darw +in-thread-multi-2level/APR/Table.pm line 23. BEGIN failed--compilation aborted at /System/Library/Perl/Extras/5.30/ +darwin-thread-multi-2level/APR/Table.pm line 23. Compilation failed in require at /System/Library/Perl/Extras/5.30/darw +in-thread-multi-2level/ModPerl/RegistryCooker.pm line 39. BEGIN failed--compilation aborted at /System/Library/Perl/Extras/5.30/ +darwin-thread-multi-2level/ModPerl/RegistryCooker.pm line 39. Compilation failed in require at /System/Library/Perl/5.30/base.pm lin +e 137. ...propagated at /System/Library/Perl/5.30/base.pm line 159. BEGIN failed--compilation aborted at /System/Library/Perl/Extras/5.30/ +darwin-thread-multi-2level/ModPerl/Registry.pm line 27. Compilation failed in require at /wineinsight/tools/test.pl line 1. BEGIN failed--compilation aborted at /wineinsight/tools/test.pl line 1 +.
I checked the version of ModPerl::Registry, ModPerl::RegstryCooker, APR::Table, and APR that came installed, and it all are current. Any suggestions?

Replies are listed 'Best First'.
Re: mod_perl on MacOS Ventura (AArch64)
by Anonymous Monk on Apr 07, 2023 at 11:50 UTC
    Trouble shoot with ldd otool... Adjust appropriate path