Notification texts go here Contact Us Buy Now!

'openssl/err.h': No such file or directory

Troubleshooting 'openssl/err.h': No Such File or Directory

When using aioquic on Windows, you may encounter the 'openssl/err.h': No such file or directory error if the OpenSSL header files and libraries are not properly configured.

Solution 1: Environment Variable Configuration
  • Identify OpenSSL Installation Directories:
    • Use choco list openssl to find the installation directory. A common location is C:\ProgramData\chocolatey\lib\openssl\tools\mingw64\include.
    • Identify the library directory: C:\ProgramData\chocolatey\lib\openssl\tools\mingw64\lib.
  • Set Environment Variables:
    • Open a command prompt with administrator privileges.
    • Set the INCLUDE variable to point to the OpenSSL include directory:
    • setx INCLUDE "C:\ProgramData\chocolatey\lib\openssl\tools\mingw64\include" /M
      
    • Set the LIB variable to point to the OpenSSL library directory:
    • setx LIB "C:\ProgramData\chocolatey\lib\openssl\tools\mingw64\lib" /M
      
    • Close the command prompt and open a new one for changes to take effect.
Solution 2: Compiler Flags

If environment variables alone don't work, explicitly pass compiler flags during installation:

pip install -e . CFLAGS=-I/path/to/openssl/include LDFLAGS=-L/path/to/openssl/lib

Replace /path/to/openssl/include and /path/to/openssl/lib with actual directories.

Solution 3: Reinstall OpenSSL

Consider uninstalling and reinstalling OpenSSL using Chocolatey to ensure proper directory structure and environment variables:

choco uninstall openssl
choco install openssl

After implementing any of these solutions, try installing aioquic again with pip install -e ..

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.