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.
ERROR: LoadError: LoadError: error compiling top-level scope: could not load library “zlib1”
copy of this post
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:
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:
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
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 on the github repo for GZip. This seems to be a somewhat common problem.