MacのPython環境にuWSGIをインストールしようとしたところ、
# Xcodeのバージョン確認 $ xcodebuild -version Xcode 8.1 Build version 8B62 # pipでインストール $ pip install uwsgi ... *** uWSGI linking *** ... ld: file not found: /usr/lib/system/libsystem_symptoms.dylib for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) *** error linking uWSGI *** ...
というエラーになったため、メモを残します。
環境
対応
uWSGIのGitHubにIssueがありました。
Error in pip install uwsgi in macos x · Issue #1364 · unbit/uwsgi
そこに記載されていた通り実行したところ、
# Issueの手順に従う $ brew unlink libxml2 $ brew uninstall libxml2 $ brew install --with-python libxml2 $ brew link libxml2 --force # 再度インストール $ pip install uwsgi ... Successfully installed uwsgi-2.0.14
インストールできました*1。