# Julia 1.3 missing windows dependency, ERROR: LoadError: LoadError: error compiling top-level scope: could not load library “zlib1”

**URL:** https://discourse.julialang.org/t/julia-1-3-missing-windows-dependency-error-loaderror-loaderror-error-compiling-top-level-scope-could-not-load-library-zlib1/31102
**Category:** General Usage
**Tags:** question, windows, error, travis
**Created:** [November 14, 2019, 9:35pm UTC](https://discourse.julialang.org/t/julia-1-3-missing-windows-dependency-error-loaderror-loaderror-error-compiling-top-level-scope-could-not-load-library-zlib1/31102 "2019-11-14T21:35:23Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![vlandau](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vlandau/32/8986_2.png) [@vlandau](https://discourse.julialang.org/u/vlandau)
#### Post date: [November 14, 2019, 9:35pm UTC](https://discourse.julialang.org/t/julia-1-3-missing-windows-dependency-error-loaderror-loaderror-error-compiling-top-level-scope-could-not-load-library-zlib1/31102/1 "2019-11-14T21:35:23Z")

</div>

Hi All,

I’m running into an error trying to test my package on windows in Julia 1.3 via Travis. Everything works fine in Julia 1.2 but I’m confronted with this error when testing in Julia 1.3.

```julia-auto
ERROR: LoadError: LoadError: error compiling top-level scope: could not load library “zlib1”

```

I also posted to the travis forum [here](https://travis-ci.community/t/error-loaderror-loaderror-error-compiling-top-level-scope-could-not-load-library-zlib1/5944) .

Here’s the [full output](https://travis-ci.org/Circuitscape/Omniscape.jl/jobs/612073548) from Travis. Might this be something on the travis side, or could it be something with Julia?

Thanks for any help or insight!

### EDIT

I found a potential solution [here](https://github.com/JuliaIO/GZip.jl/issues/7#issuecomment-21271313), but I’m not sure what the full path of the julia/lib folder is.

### EDIT #2

Found the location of `julia/lib`. [Where is julia/lib located when using the windows OS in travis? - #2 by native-api - Julia - Travis CI Community](https://travis-ci.community/t/where-is-julia-lib-located-when-using-the-windows-os-in-travis/5947/2?u=vlandau)

- Vincent

---

<div class="post-metadata">

### Author: ![vlandau](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vlandau/32/8986_2.png) [@vlandau](https://discourse.julialang.org/u/vlandau)
#### Post date: [November 15, 2019, 1:11am UTC](https://discourse.julialang.org/t/julia-1-3-missing-windows-dependency-error-loaderror-loaderror-error-compiling-top-level-scope-could-not-load-library-zlib1/31102/2 "2019-11-15T01:11:48Z")

</div>

## Update

copy of [this post](https://travis-ci.community/t/error-loaderror-loaderror-error-compiling-top-level-scope-could-not-load-library-zlib1/5944/4)  
Turns out downloading the .dll didn’t work. After downloading it and placing it in /julia/bin (placing it in julia/lib did nothing), I got the following error:

```julia-auto
ERROR: LoadError: LoadError: error compiling top-level scope: could not load library "zlib1"
%1 is not a valid Win32 application.

```

Which is slightly different than what I got before:

```julia-auto
ERROR: LoadError: LoadError: error compiling top-level scope: could not load library "zlib1"
%1 is not a valid Win32 application.

```

This is the code I added to my yaml file to download the .dll

```julia-auto
before_install:
  - if ["$TRAVIS_OS_NAME" = "windows"]; 
    then wget -O zlib-1.2.3-bin.zip http://managedway.dl.sourceforge.net/project/gnuwin32/zlib/1.2.3/zlib-1.2.3-bin.zip;
    unzip zlib-1.2.3-bin.zip;
    mv bin/zlib1.dll C:/julia/bin/zlib1.dll;
    fi

```

Not sure if that means I have the wrong .dll. I posted [an issue](https://github.com/JuliaIO/GZip.jl/issues/83) on the github repo for GZip. This seems to be a somewhat common problem.
