How to resolve fatal error: 'openssl/conf.h' file not found #21413
-
While running a project, I am encountering the error: #command-line-arguments I tried some solutions mentioned by users at online forums like: Adding the path to openssl1.1 in my .zshrc file echo 'export PATH="/opt/homebrew/opt/openssl@1.1/bin:$PATH"' >> ~/.zshrc I also have set the export LDFLAGS="-L/opt/homebrew/opt/openssl@1.1/lib"
export CPPFLAGS="-I/opt/homebrew/opt/openssl@1.1/include"
export PKG_CONFIG_PATH="/opt/homebrew/opt/openssl@1.1/lib/pkgconfig" System Specifications: Can someone please help me with this? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Did you build or install OpenSSL? Several of the header files are generated and this is one. Until you build OpenSSL, this file won't exist. Unless you install it, you'll need to override the include path. |
Beta Was this translation helpful? Give feedback.
-
I did a brew install openssl and didn’t build it |
Beta Was this translation helpful? Give feedback.
-
Also verified the header file exists at the default path for new packages for MacOS but still I get the same error of the header file not being found. Would you suggest I brew uninstall and build openssl from source? |
Beta Was this translation helpful? Give feedback.
-
I'd suggest raising a bug against brew. |
Beta Was this translation helpful? Give feedback.
-
Okay, also just wanted to confirm if there are any steps mentioned anywhere to build OpenSSL on ARM macs |
Beta Was this translation helpful? Give feedback.
-
Just follow the install instructions and it should work. |
Beta Was this translation helpful? Give feedback.
Did you build or install OpenSSL?
Several of the header files are generated and this is one.
Until you build OpenSSL, this file won't exist. Unless you install it, you'll need to override the include path.