Precompiling RDatasets returns LoadError on CodecZlib.jl

I installed RDatasets but when I am calling it; it complains CodecZlib is not installed properly but even after I rebuild the CodecZlib ( Pkg.build("CodecZlib")), the error remains the same

using RDatasets

┌ Info: Precompiling RDatasets [ce6b1742-4840-55fa-b093-852dadbb1d8b]
└ @ Base loading.jl:1260
ERROR: LoadError: CodecZlib.jl is not installed properly, run Pkg.build("CodecZlib") and restart Julia.

Stacktrace:

 [1] error(::String) at ./error.jl:33
 [2] top-level scope at /Users/me/.julia/packages/CodecZlib/5t9zO/src/CodecZlib.jl:34
 [3] include(::Module, ::String) at ./Base.jl:377
 [4] top-level scope at none:2
 [5] eval at ./boot.jl:331 [inlined]
 [6] eval(::Expr) at ./client.jl:449
 [7] top-level scope at ./none:3
in expression starting at /Users/me/.julia/packages/CodecZlib/5t9zO/src/CodecZlib.jl:33
ERROR: LoadError: LoadError: Failed to precompile CodecZlib [944b1d66-785c-5afd-91f1-9de20f533193] to /Users/me/.julia/compiled/v1.4/CodecZlib/1TI30_GhbIn.ji.

Stacktrace:

 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1272
 [3] _require(::Base.PkgId) at ./loading.jl:1029
 [4] require(::Base.PkgId) at ./loading.jl:927
 [5] require(::Module, ::Symbol) at ./loading.jl:922
 [6] include(::Module, ::String) at ./Base.jl:377
 [7] include(::String) at /Users/me/.julia/packages/RData/7cjT6/src/RData.jl:1
 [8] top-level scope at /Users/me/.julia/packages/RData/7cjT6/src/RData.jl:34
 [9] include(::Module, ::String) at ./Base.jl:377
 [10] top-level scope at none:2
 [11] eval at ./boot.jl:331 [inlined]
 [12] eval(::Expr) at ./client.jl:449
 [13] top-level scope at ./none:3
in expression starting at /Users/me/.julia/packages/RData/7cjT6/src/decompression.jl:1
in expression starting at /Users/me/.julia/packages/RData/7cjT6/src/RData.jl:34
ERROR: LoadError: Failed to precompile RData [df47a6cb-8c03-5eed-afd8-b6050d6c41da] to /Users/me/.julia/compiled/v1.4/RData/idMMA_GhbIn.ji.

Stacktrace:

 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1272
 [3] _require(::Base.PkgId) at ./loading.jl:1029
 [4] require(::Base.PkgId) at ./loading.jl:927
 [5] require(::Module, ::Symbol) at ./loading.jl:922
 [6] include(::Module, ::String) at ./Base.jl:377
 [7] top-level scope at none:2
 [8] eval at ./boot.jl:331 [inlined]
 [9] eval(::Expr) at ./client.jl:449
 [10] top-level scope at ./none:3
in expression starting at /Users/me/.julia/packages/RDatasets/WIQKI/src/RDatasets.jl:2

same one for me :confused: if u have a solution

What version of Julia are you using? What version of CodecZlib did you get? You can see it

]st -m CodecZlib

(the ] key is to enter the Pkg mode in the REPL). The latest version of the package is v0.7.0 and is not using the code path leading to the error above, so you’re likely on a older release