Using Dataframes error


#1

julia> using DataFrames
INFO: Precompiling module DataFrames…
ERROR: LoadError: LoadError: error compiling anonymous: could not load library "libz"
libz: cannot open shared object file: No such file or directory
while loading /home/mario/.julia/v0.4/GZip/src/zlib_h.jl, in expression starting on line 11
while loading /home/mario/.julia/v0.4/GZip/src/GZip.jl, in expression starting on line 77
ERROR: LoadError: Failed to precompile GZip to /home/mario/.julia/lib/v0.4/GZip.ji
while loading /home/mario/.julia/v0.4/DataFrames/src/DataFrames.jl, in expression starting on line 16
ERROR: Failed to precompile DataFrames to /home/mario/.julia/lib/v0.4/DataFrames.ji
in compilecache at ./loading.jl:400


#2

I’d start with downloading the latest Julia release (which is v0.5 at the moment) from the official site. Julia v0.4 is quite outdated now.

If this doesn’t automagically resolve the problem, try installing libz as indicated in the error. E.g. on Ubuntu you can run:

 sudo apt-get install zlib1g-dev

from a terminal.