2018年8月1日 星期三

Failed to install python-saml on MAC

Recently I tried to install python-saml on my mac, but I encountered the error which claimed

ld: file not found: /usr/lib/system/libsystem_symptoms.dylib for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'gcc' failed with exit status 1.  The root cause was “Mac OS X EI Capitan 10.11 missing

lib system_symptoms.dylib in Xcode8. You can fix it by the below script command.

After fixed it, you can use pip install python-saml without error

## fix script

#!/bin/bash

sudo /usr/bin/sed -i.backup -E -e 's@/usr/lib/system/libsystem_symptoms.dylib(, )?@@' \
$(grep -ril /usr/lib/system/libsystem_symptoms.dylib \
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/lib)

沒有留言:

demo_article

使用 msty.app 和 Knowledge Stacks 建立個人知識庫系統 說明 嘗試利用local llm自動從文字檔轉成影音檔 利用AI自動對文件檔產生影音檔案 - YouTube 引言 在資訊爆炸的時代,我們每天接收大量的資訊,但如何有效地管理...