Reputation: 711
I am not sure why I am getting this error. Any help would be appreciated.
ld: library not found for -lSystem
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang' failed with exit status 1
Upvotes: 1
Views: 2359
Reputation: 4367
On a Mac, assuming you are using Homebrew, type:
brew install Homebrew/python/pillow
Pillow is basically the same as PIL.
Try following 2 commands if python has trouble locating the package.
mkdir -p ~/Library/Python/2.7/lib/python/site-packages
echo '/usr/local/lib/python2.7/site-packages' > ~/Library/Python/2.7/lib/python/site-packages/homebrew.pth
Upvotes: 1
Reputation: 91
I somewhat remember this exact problem. Have you installed the Xcode command line tools? That cured my headaches.
You can find it here.. https://developer.apple.com/xcode/
From Xcode's Preferences menu, install the Command Line Tools (Downloads/Components tab).
supporting references: gcc-4.2 failed with exit status 1 I can't install 'pip install pil' in Osx
Upvotes: 0