1

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
Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
user2216194
  • 691
  • 3
  • 17
  • 27

3 Answers3

1

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 
PaulG
  • 13,871
  • 9
  • 56
  • 78
Mathieu Borderé
  • 4,357
  • 2
  • 16
  • 24
1

xcode-select --install

may be can help you.

iamct
  • 394
  • 5
  • 9
0

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

Community
  • 1
  • 1
fchaubard
  • 91
  • 4
  • I DO have the Xcode command line tools installed. That's why it's bugging me. My colleagues are using osx 10.7 and there not having any issues. It might be something to do with this version – user2216194 Aug 28 '13 at 18:12