user2216194
user2216194

Reputation: 711

Error installing PIL on Mac OS 10.8.4

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

Answers (3)

iamct
iamct

Reputation: 404

xcode-select --install

may be can help you.

Upvotes: 1

Mathieu Borderé
Mathieu Borderé

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

fchaubard
fchaubard

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

Related Questions