K Leo:  thank you so much.  I am on a fresh 16.04.2 with Julia 0.4.5 from 
"$ sudo apt-get install julia" and had exactly your error:  your fix worked 
for me too.

On Sunday, 17 April 2016 13:15:35 UTC+1, K leo wrote:
>
> Run my julia code for the first time after setting julia up on Ubuntu 
> 16.04, I got the following errors:
>
> 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/xxx/.julia/v0.4/GZip/src/zlib_h.jl, in expression 
> starting on line 8
> while loading /home/xxx/.julia/v0.4/GZip/src/GZip.jl, in expression 
> starting on line 75
> ERROR: LoadError: Failed to precompile GZip to 
> /home/xxx/.julia/lib/v0.4/GZip.ji
> while loading /home/xxx/.julia/v0.4/DataFrames/src/DataFrames.jl, in 
> expression starting on line 15
> ERROR: LoadError: LoadError: LoadError: Failed to precompile DataFrames to 
> /home/xxx/.julia/lib/v0.4/DataFrames.ji
>  in compilecache at ./loading.jl:400
>
>
> After some searching, I found that I had to install lib32z1 and 
> lib32z1-dev on Ubuntu.  Not sure why these are missing with the new Ubuntu.
>

Reply via email to