-
Notifications
You must be signed in to change notification settings - Fork 30
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
On Mac - ERROR: LoadError: could not load symbol "gzopen64": dlsym(0xfff147d636b0, gzopen64): symbol not found #90
Comments
I don't think this is fixed. The Apple-provided libz for whatever reason does not provide
In https://github.com/JuliaIO/GZip.jl/blob/57cff17fe791e6befdb544922fecc0601144c513/src/gz.jl#L158C34-L158C34 there is a check if the But it's no use, because here https://github.com/JuliaIO/GZip.jl/blob/57cff17fe791e6befdb544922fecc0601144c513/src/lib/aarch64-apple-darwin20.jl#L481C24-L481C24 The result is that GZip fails on macOS:
Workaround is installing |
Julia should really be using its own gzip and not the apple provided one. Are you using the latest GZip.jl? I don't have this problem and I have the same architecture. Do you have some other env variables that are interfering perhaps? Now that we are building arch-specific binaries, we should not need the first check - and get rid of the Just for fun, I have a branch to try out zlib-ng, which may be a better solution. |
Possible since we have os/arch specific wrappers now.
@linearray Can you try the latest master? Also, we explicitly use This works fine on my arm64 mac. |
I run GZip.jl 0.6.0, installed julia 1.9.2 from homebrew and don't use any relevant envvars.
Apparently the problem sits deeper. What it the value of |
This is what it should be for everyone using official binaries/build process:
Are you using Julia binaries that are provided by homebrew (not cask) which links to system zlib? |
Correct, I just did So is this in fact a homebrew bug? |
Yes, homebrew likes to build Julia differently than the official distribution, reusing libraries built by homebrew and system libraries. I would recommend using We could possibly add a check for this case and perhaps issue a warning. The other possibility is to use |
Per here: JuliaML/MLDatasets.jl#86 it looks like this is failing on macOS Monterey. If I run
test GZip
in Julia 1.6 I get the same error as I got in the issue linked above:The text was updated successfully, but these errors were encountered: