---
slug: "mysqlclient-install-clang-error-lzstd"
title: "python mysqlclient のインストール時 ld: library not found for -lzstd となる時"
description: "python mysqlclient のインストール時 ld: library not found for -lzstd となる時 brew install openssl など行いましょう。"
url: "https://www.ytyng.com/blog/mysqlclient-install-clang-error-lzstd"
publish_date: "2021-11-27T09:07:48Z"
created: "2021-11-27T09:07:48Z"
updated: "2026-02-27T10:43:46.686Z"
categories: []
keywords: ""
featured_image_url: "https://media.ytyng.com/resize/20230812/3bf9b70556a640e6846747f2659f4bb5.png.webp?width=768"
has_video: false
has_music: false
video_urls: []
music_urls: []
lang: "ja"
---

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

<p>mysqlclient のインストール時</p>
<pre>[pipenv.exceptions.InstallError]: ld: warning: directory not found for option '-L/usr/local/opt/openssl/lib/'<br />[pipenv.exceptions.InstallError]: ld: library not found for -lzstd<br />[pipenv.exceptions.InstallError]: clang: error: linker command failed with exit code 1 (use -v to see invocation)<br />[pipenv.exceptions.InstallError]: error: command 'clang' failed with exit status 1</pre>
<p>と出るなら</p>
<pre>brew install openssl</pre>
<pre>BREW_PREFIX=$(brew --prefix)<br />export LDFLAGS="-L${BREW_PREFIX}/lib -L${BREW_PREFIX}/opt/openssl/lib"<br />export CPPFLAGS="-I${BREW_PREFIX}/include -I${BREW_PREFIX}/opt/openssl/include"</pre>
<p><br /><a href="https://stackoverflow.com/questions/67767255/error-when-install-mysqlclient-using-pip-to-macos-bigsur">https://stackoverflow.com/questions/67767255/error-when-install-mysqlclient-using-pip-to-macos-bigsur</a></p>
<p></p>
