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

Release with statically linked binaries #14

Open
david50407 opened this issue Dec 5, 2022 · 0 comments
Open

Release with statically linked binaries #14

david50407 opened this issue Dec 5, 2022 · 0 comments

Comments

@david50407
Copy link
Member

Apple Silicon Macs can run x86_64 prebuilt binaries via Rosetta, but dependencies in x86_64 variant may not provided on the machine. (see log below)

It is better to release prebuilt binary statically linked and users can re-build in arm64 manually later they installed crystal binaries.

> ./crystal-build_refs.tags.v0.1.6_macOS-amd64
dyld[78079]: Library not loaded: /usr/local/opt/[email protected]/lib/libssl.1.1.dylib
  Referenced from: <3385D316-84E8-3534-B308-F139397EE54B> /Users/davy/Downloads/crystal-build_refs.tags.v0.1.6_macOS-amd64
  Reason: tried: '/usr/local/opt/[email protected]/lib/libssl.1.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/[email protected]/lib/libssl.1.1.dylib' (no such file), '/usr/local/opt/[email protected]/lib/libssl.1.1.dylib' (no such file), '/usr/local/lib/libssl.1.1.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/lib/libssl.1.1.dylib' (no such file, not in dyld cache)
fish: Job 1, '/Users/davy/Downloads/crystal-b…' terminated by signal SIGABRT (Abort)
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

1 participant