When Installing python mysqlclient, ld: library not found for -lzstd Error Occurs
2021-11-27 09:07 (4 years ago)

When installing mysqlclient
[pipenv.exceptions.InstallError]: ld: warning: directory not found for option '-L/usr/local/opt/openssl/lib/'
[pipenv.exceptions.InstallError]: ld: library not found for -lzstd
[pipenv.exceptions.InstallError]: clang: error: linker command failed with exit code 1 (use -v to see invocation)
[pipenv.exceptions.InstallError]: error: command 'clang' failed with exit status 1
If you encounter this error
brew install openssl
BREW_PREFIX=$(brew --prefix)
export LDFLAGS="-L${BREW_PREFIX}/lib -L${BREW_PREFIX}/opt/openssl/lib"
export CPPFLAGS="-I${BREW_PREFIX}/include -I${BREW_PREFIX}/opt/openssl/include"
Please rate this article (No signup or login required)
Currently unrated
Related posts
Fix: symbol not found in flat namespace '_mysql_affected_rows' when importing MySQLdb on Apple Silicon
Fix: pip install mysqlclient fails with ld: library not found for -lzlib on M2 Mac (MYSQLCLIENT_LDFLAGS)
When Setting the Path for mysql-client Installed via Homebrew on macOS, It Automatically Follows Version Changes
Installing Cryptography (cffi) on M1 Mac
The author runs the application development company Cyberneura.
We look forward to discussing your development needs.
We look forward to discussing your development needs.