Skip to content

Instantly share code, notes, and snippets.

@horta
Last active April 28, 2021 03:12
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save horta/18a6bda81f254d6a9f8f61e82101b66b to your computer and use it in GitHub Desktop.
Save horta/18a6bda81f254d6a9f8f61e82101b66b to your computer and use it in GitHub Desktop.
ZLIB installer for Windows.
:: Attention!
:: Please, refer to the https://github.com/horta/zlib.install repository
:: for an up-to-date version of this installer.
@Omid-Asadi
Copy link

Hi
I execute this bat and a folder has been downloaded in the same directory... what should I do with the folder?

@samsantiago
Copy link

Thanks for creating this batch file. Was quite helpful to me today.

@horta
Copy link
Author

horta commented Nov 6, 2019

Thanks @samsantiago You might be interested in this link: https://github.com/horta/zlib.install
That's where I've been maintaining this installed more up-to-date.

@Omid-Asadi Just saw your comment. Sorry for not getting back to you sooner. If you still need the installer, that above link might sort out the problem: the zlib should be installed in your ProgramFiles folder.

@sgtpeppr778
Copy link

Hello @horta, thanks for your work to help make this installation easier. While I'm not new to computers, I am newer to this type of stuff. I'm installing this for use with a python script for RealTerrain by MarcoPolo to make a 3D terrain model and get this error:

Traceback (most recent call last):
File "real-terrain.py", line 11, in
from PIL import Image
ModuleNotFoundError: No module named 'PIL'

So I figured out I need to install an imaging library and stumbled across this. I clearly don't have everything set up properly. I think I added everything I need to windows PATH and got cmake installed, but it seems I'm still getting errors:

Fetching https://zlib.net/zlib1211.zip
Downloading https://zlib.net/zlib1211.zip... Exception calling "DownloadFile" with "2" argument(s): "An exception occurred during a WebClient request."
At line:10 char:1

  • (New-Object Net.WebClient).DownloadFile('https://zlib.net/zlib1211.zi ...
  •   + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
      + FullyQualifiedErrorId : WebException
    
    

done.
-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:4 (project):
Generator

NMake Makefiles

does not support platform specification, but platform

x64

was specified.

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "F:/Python/zlib.install-master/zlib-1.2.11/build/CMakeFiles/CMakeOutput.log".

Any help would be greatly appreciated.
Thanks for your time!

@horta
Copy link
Author

horta commented Dec 22, 2019

Hi @sgtpeppr778

You welcome =) I suggest you to try this repository: https://github.com/horta/zlib.install where I maintain an up-to-date version of this zlib installer.

It should work. If it doesn't, please, let me know!

@kwilliamszaf
Copy link

Hi @sgtpeppr778

You welcome =) I suggest you to try this repository: https://github.com/horta/zlib.install where I maintain an up-to-date version of this zlib installer.

It should work. If it doesn't, please, let me know!

Thanks @horta!! Saved me a headache!

@leosceint
Copy link

Hello @horta. I have a problem. When I try using https://github.com/horta/zlib.install I get error MSB1009: Project file does not exist. Which compiler should I use in Windows 10? Please, help

@horta
Copy link
Author

horta commented Apr 7, 2020

Do you have Visual studio? Try opening a develop prompt of visual studo and running it from there.

@athanggupte
Copy link

Thank you @horta for creating this batch file. It was very helpful and saved a lot of my time.

@gaet-63
Copy link

gaet-63 commented Apr 11, 2021

Dear, I have done alle the process but I can't find the software Zlib...
I don't have in the register and when i go to th location and I open the application in the folder.
I have a message : not compatible with your version of windows 64 bits

Can you help me?

@horta
Copy link
Author

horta commented Apr 11, 2021

It won't change your register: it just compile and copy the files into PROGRAMFILES folder. I would need to log file and the output from when you ran the installation script: https://github.com/horta/zlib.install

@artucera
Copy link

artucera commented Apr 23, 2021

@horta I'm sorry to bother but this thing is giving me a huge headache... I follow all the steps, install VisualStudio and Cmake but when I open the command prompt and run the code it outputs: '"powershell" not recognized as internal or external command....'
what am I doing wrong? Thanks so much for your help!

@horta
Copy link
Author

horta commented Apr 23, 2021

@artucera
Copy link

artucera commented Apr 23, 2021

@horta Thanks, unfortunately I had it already. I tried to uninstall it and install it back again but it still outputs the same stuff, I don't really know how to proceed...
the exact error message is:
powershell: The term 'powershell' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
./install_zlib.bat: The term './install_zlib.bat' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Remove-Item: Cannot find path 'C:\Users\artur\install_zlib.bat' because it does not exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment