# Precompiling RDatasets returns LoadError on CodecZlib.jl

**URL:** https://discourse.julialang.org/t/precompiling-rdatasets-returns-loaderror-on-codeczlib-jl/40829
**Category:** General Usage
**Tags:** question, package
**Created:** [June 5, 2020, 7:13pm UTC](https://discourse.julialang.org/t/precompiling-rdatasets-returns-loaderror-on-codeczlib-jl/40829 "2020-06-05T19:13:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![aebk2015](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@aebk2015](https://discourse.julialang.org/u/aebk2015)
#### Post date: [June 5, 2020, 7:13pm UTC](https://discourse.julialang.org/t/precompiling-rdatasets-returns-loaderror-on-codeczlib-jl/40829/1 "2020-06-05T19:13:32Z")

</div>

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`

```julia
┌ 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

```

---

<div class="post-metadata">

### Author: ![cocobenzey](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cocobenzey/32/30089_2.png) [@cocobenzey](https://discourse.julialang.org/u/cocobenzey)
#### Post date: [October 20, 2021, 10:08am UTC](https://discourse.julialang.org/t/precompiling-rdatasets-returns-loaderror-on-codeczlib-jl/40829/2 "2021-10-20T10:08:25Z")

</div>

same one for me 😕 if u have a solution

---

<div class="post-metadata">

### Author: ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)
#### Post date: [October 20, 2021, 10:30am UTC](https://discourse.julialang.org/t/precompiling-rdatasets-returns-loaderror-on-codeczlib-jl/40829/3 "2021-10-20T10:30:06Z")

</div>

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

```julia
]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
