LoginSignup
11
10

More than 5 years have passed since last update.

MarvericksにしてPILのインストールがコケる件

Posted at

あまり詳細は詳しくないので概要のみですが。

$ sudo pip install PIL

とかしたら下記のエラーログ。

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/clude/tk.h:78:11: fatal error: 'X11/Xlib.h' file not found

#       include <X11/Xlib.h>

                ^

1 error generated.

error: command 'cc' failed with exit status 1

MacをMarvericksにアップデートしたらPythonのライブラリが行方不明になっちゃっていたので、入れなおしていたら、こんな状況でPILが入りませんでした。

色々ググってみつけたのが、このあたりのstack overflow

$ xcode-select --install

してからやれば大丈夫だって。

なるほど。OSアップデートした時にXcodeのコマンドラインツールが消えちゃうのかも。なので入れなおすと大丈夫になるぽい。

11
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
10