Open iigmir opened 4 years ago
You need libssl-dev.
Perhaps this help you: "How to install libssl-dev ,libffi-dev on Mac os?"
brew link openssl --force
does not work since it's macOS build-in software:
Warning: Refusing to link macOS-provided software: openssl@1.1
If you need to have openssl@1.1 first in your PATH run:
echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> ~/.zshrc
For compilers to find openssl@1.1 you may need to set:
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
For pkg-config to find openssl@1.1 you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
Therefore, you need to do following steps:
$ export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
$ export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
$ export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
The compilers can detect libssl
now.
Unfortunately, dyld
cannot find newer libssl
library:
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /***/***/tg/bin/tl-parser
Reason: image not found
make: *** [auto/scheme.tlo] Abort trap: 6
$ ls /usr/local/opt/openssl/lib
engines-1.1 libcrypto.a libssl.1.1.dylib libssl.dylib
libcrypto.1.1.dylib libcrypto.dylib libssl.a pkgconfig
Perhaps this help: "dyld: Library not loaded error on macOS (OpenSSL missing)"
Some parts of
config.log
:Looks like Tg-cli doesn't support LibreSSL. I can't find any other useful information even searching
'openssl/ssl.h' file not found
.Any ideas?
Reference: #1488