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)
沒有留言:
張貼留言