python mysqlclient のインストール時 ld: library not found for -lzstd となる時

投稿者: ytyng 2 年, 4 ヶ月 前

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

と出るなら

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"


https://stackoverflow.com/questions/67767255/error-when-install-mysqlclient-using-pip-to-macos-bigsur

現在未評価

コメント

アーカイブ

2024
2023
2022
2021
2020
2019
2018
2017
2016
2015
2014
2013
2012
2011