JuliaIO / GZip.jl

A Julia interface for gzip functions in zlib
https://juliaio.github.io/GZip.jl/dev
MIT License
39 stars 30 forks source link

Fails when try to use the zlib on OSX 10.11.5 (64 bits) #53

Closed ecolell closed 1 year ago

ecolell commented 8 years ago

I was using the library on OSX 10.11.5 and it failed when trowed to access the zlib library (64 bits and version 1.2.8). It throw the next error:

ERROR: ccall: could not find function gzopen64 in library libz
 in gzopen at /Users/eloy/.julia/v0.4/GZip/src/GZip.jl:249

To go through it, I've modified the file ~/.julia/v0.4/GZip/src/GZip.jl from the lines 222 to 225. To go from this:

222         const _gzopen = :gzopen64
223         const _gzseek = :gzseek64
224         const _gztell = :gztell64
225         const _gzoffset = :gzoffset64

to this:

222         const _gzopen = :gzopen
223         const _gzseek = :gzseek
224         const _gztell = :gztell
225         const _gzoffset = :gzoffset  

Thanks for the library and I hope this solution helps to someone else...