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)

沒有留言:

Obsidian 插件介紹:Text Generator

Text Generator 是 Obsidian 的一個插件,它可以根據給定的提示自動生成文本。這個插件使用 GPT-3 語言模型,能夠產生類似人類的文本,非常適合編寫故事、文章、電子郵件和其他類型文本。 主要功能: **生成文本:**根據提示生成各種長度的...