Windows OS

How to Install ZLIB on Windows 10/11

ZLIB is a compression-decompression library that is required by the NVIDIA cuDNN library. So, if you want to write an artificial intelligence or machine learning program with NVIDIA CUDA and NVIDIA cuDNN, you need to have the ZLIB library installed on your Windows 10/11 operating system.

In this article, we will show you how to download and install the ZLIB library on Windows 10 and Windows 11 operating systems.

Topic of Contents:

  1. Downloading ZLIB for Windows 10/11
  2. Extracting the ZLIB Archive and Moving It to the Correct Location
  3. Adding the ZLIB Folder to the Path of Windows 10/11
  4. Conclusion

Downloading ZLIB for Windows 10/11

To download ZLIB for Windows, visit http://www.winimage.com/zLibDll/ from your favorite web browser.

Once the page loads, click on “AMD64/Intel EM64T” from the “zlib123dll.zip” section as marked in the following screenshot:

A screenshot of a computer Description automatically generated

Your browser should download the ZLIB archive.

A screenshot of a computer Description automatically generated

Extracting the ZLIB Archive and Moving It to the Correct Location

Once ZLIB is downloaded, navigate to the “Downloads” folder of Windows, right-click (RMB) on the “ZLIB archive”, and click on “Extract All…” as marked in the following screenshot:

A screenshot of a computer Description automatically generated

Click on “Extract”.

A screenshot of a computer Description automatically generated

The ZLIB archive should be extracted in the “Downloads” folder of Windows. Then, copy/cut the extracted ZLIB folder.

A screenshot of a computer Description automatically generated

Paste the ZLIB folder in the C:\Program Files folder of Windows as marked in the following screenshot:

A screenshot of a computer Description automatically generated

Adding the ZLIB Folder to the Path of Windows 10/11

Before you add the ZLIB folder to the path of Windows 10/11, navigate to the ZLIB folder that you just cut/copied in the C:\Program Files folder of Windows. Then, navigate to the ZLIB “dll_x64” folder as marked in the following screenshot:

A screenshot of a computer Description automatically generated

Copy the ZLIB DLL folder path.

A screenshot of a computer Description automatically generated

Now, search for the term “environment variables” in the “Start Menu” and click on the “Edit the system environment variables” icon as marked in the following screenshot:

Click on “Environment Variables”.

A screenshot of a computer program Description automatically generated

Select the “Path” from the “System variables” section and click on “Edit”.

A screenshot of a computer Description automatically generated

Click on “New” and paste the copied ZLIB DLL path to add it to the Path system variable of Windows[1].

Once you’re done, click on “OK”[2].

A screenshot of a computer program Description automatically generated

Click on “OK”.

A screenshot of a computer Description automatically generated

Click on “OK”.

Now, NVIDIA cuDNN should be able to access the ZLIB DLL files as required.

A screenshot of a computer program Description automatically generated

Conclusion

We showed you how to download and install the ZLIB library on Windows 10 and Windows 11 operating systems so that the requirements of the NVIDIA cuDNN library are fulfilled and the NVIDIA cuDNN library can use it.

About the author

Shahriar Shovon

Freelancer & Linux System Administrator. Also loves Web API development with Node.js and JavaScript. I was born in Bangladesh. I am currently studying Electronics and Communication Engineering at Khulna University of Engineering & Technology (KUET), one of the demanding public engineering universities of Bangladesh.