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)

沒有留言:

如何下載Facebook 相簿跟影片

影片:透過chrome plug-in : Video Downloader for Facebook<sup>TM</sup> 相簿: 透過chrome plug-in : Tampermonkey 搭配script : Facebo...