JuliaStats / RDatasets.jl

Julia package for loading many of the data sets available in R
GNU General Public License v3.0
159 stars 56 forks source link

CodecZlib isssue prevents "using RDatasets" #74

Closed Otterman1024 closed 5 years ago

Otterman1024 commented 5 years ago

`Julia Version 1.1.1 Commit 55e36cc308 (2019-05-16 04:10 UTC) Platform Info: OS: Linux (x86_64-pc-linux-gnu) - Ubuntu 18.04 CPU: Intel(R) Core(TM) i7-6850K CPU @ 3.60GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-6.0.1 (ORCJIT, broadwell)


julia> using RDatasets [ Info: Precompiling RDatasets [ce6b1742-4840-55fa-b093-852dadbb1d8b] 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 /home/jerry/.julia/packages/CodecZlib/9jDi1/src/CodecZlib.jl:34 [3] include at ./boot.jl:326 [inlined] [4] include_relative(::Module, ::String) at ./loading.jl:1038 [5] include(::Module, ::String) at ./sysimg.jl:29 [6] top-level scope at none:2 [7] eval at ./boot.jl:328 [inlined] [8] eval(::Expr) at ./client.jl:404 [9] top-level scope at ./none:3 in expression starting at /home/jerry/.julia/packages/CodecZlib/9jDi1/src/CodecZlib.jl:33 ERROR: LoadError: Failed to precompile CodecZlib [944b1d66-785c-5afd-91f1-9de20f533193] to /home/jerry/.julia/compiled/v1.1/CodecZlib/1TI30.ji. Stacktrace: [1] error(::String) at ./error.jl:33 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1197 [3] _require(::Base.PkgId) at ./loading.jl:960 [4] require(::Base.PkgId) at ./loading.jl:858 [5] require(::Module, ::Symbol) at ./loading.jl:853 [6] include at ./boot.jl:326 [inlined] [7] include_relative(::Module, ::String) at ./loading.jl:1038 [8] include(::Module, ::String) at ./sysimg.jl:29 [9] top-level scope at none:2 [10] eval at ./boot.jl:328 [inlined] [11] eval(::Expr) at ./client.jl:404 [12] top-level scope at ./none:3 in expression starting at /home/jerry/.julia/packages/RData/y6mA8/src/RData.jl:3 ERROR: LoadError: Failed to precompile RData [df47a6cb-8c03-5eed-afd8-b6050d6c41da] to /home/jerry/.julia/compiled/v1.1/RData/idMMA.ji. Stacktrace: [1] error(::String) at ./error.jl:33 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1197 [3] _require(::Base.PkgId) at ./loading.jl:960 [4] require(::Base.PkgId) at ./loading.jl:858 [5] require(::Module, ::Symbol) at ./loading.jl:853 [6] include at ./boot.jl:326 [inlined] [7] include_relative(::Module, ::String) at ./loading.jl:1038 [8] include(::Module, ::String) at ./sysimg.jl:29 [9] top-level scope at none:2 [10] eval at ./boot.jl:328 [inlined] [11] eval(::Expr) at ./client.jl:404 [12] top-level scope at ./none:3 in expression starting at /home/jerry/.julia/packages/RDatasets/67RP7/src/RDatasets.jl:2 ERROR: Failed to precompile RDatasets [ce6b1742-4840-55fa-b093-852dadbb1d8b] to /home/jerry/.julia/compiled/v1.1/RDatasets/JyIbx.ji. Stacktrace: [1] error(::String) at ./error.jl:33 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1197 [3] _require(::Base.PkgId) at ./loading.jl:960 [4] require(::Base.PkgId) at ./loading.jl:858 [5] require(::Module, ::Symbol) at ./loading.jl:853

julia> using Pkg

julia> Pkg.build("CodecZlib") Building CodecZlib → ~/.julia/packages/CodecZlib/9jDi1/deps/build.log ┌ Error: Error building CodecZlib: │ ERROR: LoadError: LibraryProduct(nothing, ["libz"], :libz, "Prefix(/home/jerry/.julia/packages/CodecZlib/9jDi1/deps/usr)") is not satisfied, cannot generate deps.jl! │ Stacktrace: │ [1] error(::String) at ./error.jl:33 │ [2] #write_deps_file#165(::Bool, ::Bool, ::Function, ::String, ::Array{LibraryProduct,1}) at /home/jerry/.julia/packages/BinaryProvider/A0sDa/src/Products.jl:419 │ [3] (::getfield(BinaryProvider, Symbol("#kw##write_deps_file")))(::NamedTuple{(:verbose,),Tuple{Bool}}, ::typeof(write_deps_file), ::String, ::Array{LibraryProduct,1}) at ./none:0 │ [4] top-level scope at /home/jerry/.julia/packages/CodecZlib/9jDi1/deps/build.jl:93 │ [5] include at ./boot.jl:326 [inlined] │ [6] include_relative(::Module, ::String) at ./loading.jl:1038 │ [7] include(::Module, ::String) at ./sysimg.jl:29 │ [8] include(::String) at ./client.jl:403 │ [9] top-level scope at none:0 │ in expression starting at /home/jerry/.julia/packages/CodecZlib/9jDi1/deps/build.jl:78 └ @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Operations.jl:1075 `

Otterman1024 commented 5 years ago

I did the following to resolve: ` bash: sudo apt-get install libxml2 libxml2-dev

Julia: (v1.1) pkg> remove BinaryProvider (v1.1) pkg> remove RDatasets (v1.1) pkg> add RDatasets julia> using Pkg julia> Pkg.build("CodecZlib") julia> using RDatasets`

... Now julia gives no complaint