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

problem loading module PDL::GSL::INTEG due to system policy error #1

Open
m-t-sargent opened this issue Sep 8, 2024 · 3 comments
Open

Comments

@m-t-sargent
Copy link

Using SciPDL v2.088, installed via the dmg installer https://github.com/PDLPorters/SciPDL/releases/download/v2.088/SciPDL-v2.088-arm64.dmg, I got the following error when loading the module PDL::GSL::INTEG for the first time (other GSL modules, e.g. PDL::GSL::INTERP, worked fine from the outset):

Can't load '/Applications/PDL/lib/perl5/site_perl/5.38.2/darwin-2level/auto/PDL/GSL/INTEG/INTEG.bundle' for module PDL::GSL::INTEG: dlopen(/Applications/PDL/lib/perl5/site_perl/5.38.2/darwin-2level/auto/PDL/GSL/INTEG/INTEG.bundle, 0x0001): tried: '/Applications/PDL/lib/perl5/site_perl/5.38.2/darwin-2level/auto/PDL/GSL/INTEG/INTEG.bundle' (code signature in '/Applications/PDL/lib/perl5/site_perl/5.38.2/darwin-2level/auto/PDL/GSL/INTEG/INTEG.bundle' not valid for use in process: library load disallowed by system policy), '/System/Volumes/Preboot/Cryptexes/OS/Applications/PDL/lib/perl5/site_perl/5.38.2/darwin-2level/auto/PDL/GSL/INTEG/INTEG.bundle' (no such file), '/Applications/PDL/lib/perl5/site_perl/5.38.2/darwin-2level/auto/PDL/GSL/INTEG/INTEG.bundle' (code signature in '/Applications/PDL/lib/perl5/site_perl/5.38.2/darwin-2level/auto/PDL/GSL/INTEG/INTEG.bundle' not valid for use in process: library load disallowed by system policy) at /Applications/PDL/lib/perl5/5.38.2/darwin-2level/DynaLoader.pm line 210.
at (eval 66) line 4.
Compilation failed in require at (eval 66) line 4.
BEGIN failed--compilation aborted

My operating system is macOS Sonoma 14.5, on a MacBook Air (v2023, with an Apple M2 chip).

This issue was solved by doing 'xattr -d com.apple.quarantine /Applications/PDL/lib/perl5/site_perl/5.38.2/darwin-2level/auto/PDL/GSL/INTEG/INTEG.bundle'. (The output of 'xattr -l' on INTEG.bundle was: "com.apple.quarantine: 0181;669994fa;Vivaldi;" .)

@karlglazebrook
Copy link
Member

This one beats me and I can not reproduce (tried two Sonoma machines) so any thoughts from the community would be greatly appreciated!

@mohawk2
Copy link
Member

mohawk2 commented Sep 10, 2024

Just thinking in terms of dumb bodges: is there any downside to blindly doing the xattr command in an install script for SciPDL (with the right path)?

@mohawk2
Copy link
Member

mohawk2 commented Sep 10, 2024

Also, is the whole of SciPDL including all its .bundle files definitely signed? https://stackoverflow.com/questions/66983242/security-issues-downloading-application-for-macos-library-load-disallowed-by

This shows how to check such signatures: https://forums.developer.apple.com/forums/thread/716918

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

3 participants