{"id":1264,"date":"2014-06-25T15:27:00","date_gmt":"2014-06-25T15:27:00","guid":{"rendered":"https:\/\/rawbytes.org\/?p=1264"},"modified":"2025-11-24T03:00:22","modified_gmt":"2025-11-24T03:00:22","slug":"osx-mavericks%e3%81%a7pillow%e3%81%aepng%e3%82%b5%e3%83%9d%e3%83%bc%e3%83%88%e3%82%92%e6%9c%89%e5%8a%b9%e3%81%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%ae%e8%a6%81%e7%82%b9%e3%81%a0%e3%81%91","status":"publish","type":"post","link":"https:\/\/rawbytes.org\/?p=1264","title":{"rendered":"OSX Mavericks\u3067Pillow\u306ePNG\u30b5\u30dd\u30fc\u30c8\u3092\u6709\u52b9\u306b\u3059\u308b\u65b9\u6cd5\u306e\u8981\u70b9\u3060\u3051\uff08blockdiag\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff09"},"content":{"rendered":"<p>OSX Mavericks\u74b0\u5883\u3067blockdiag\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u601d\u3044\u3001pip\u3092\u4f7f\u3063\u3066Pillow\u3092\u305d\u306e\u307e\u307e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068PNG\u30b5\u30dd\u30fc\u30c8\u304c\u7121\u52b9\u306a\u307e\u307e\u306e\u69d8\u3067\u3042\u308b\u3002\u3053\u308c\u3092\u89e3\u6c7a\u3057\u305f\u306e\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30e1\u30e2\u3002<\/p>\n<p><!--more--><br \/>\n\u5177\u4f53\u7684\u306b\u306f\u3001blockdiag\u306a\u3069\u3067PNG\u3092\u66f8\u304d\u51fa\u3059\u6642\u306b<\/p>\n<blockquote class=\"tr_bq\"><p>\n$ blockdiag sample.diag<br \/>\nERROR: encoder zip not available<\/p><\/blockquote>\n<p>\u2026\u3068\u3044\u3046\u98a8\u306b\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u3002\u3053\u308c\u306fPillow\u306ePNG\u30b5\u30dd\u30fc\u30c8\u304c\u7121\u52b9\u306a\u72b6\u614b\u3067\u30d3\u30eb\u30c9\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u539f\u56e0\u306e\u3088\u3046\u3067\u3042\u308b\u3002\u3053\u3093\u306a\u611f\u3058\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d\u8868\u793a\u3055\u308c\u305f\u3089PNG\u51fa\u529b\u304c\u3067\u304d\u306a\u3044\uff1a<\/p>\n<blockquote class=\"tr_bq\"><p>\n$ pip install Pillow<br \/>\n\uff08\u7565\uff09<br \/>\n&nbsp; &nbsp; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n&nbsp; &nbsp; PIL SETUP SUMMARY<\/p><\/blockquote>\n<blockquote class=\"tr_bq\"><p>\n&nbsp; &nbsp; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n&nbsp; &nbsp; version&nbsp; &nbsp; &nbsp; Pillow 2.4.0<br \/>\n&nbsp; &nbsp; platform &nbsp; &nbsp; darwin 2.7.7 (default, Jun 14 2014, 23:12:13)<br \/>\n&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)]<br \/>\n&nbsp; &nbsp; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n&nbsp; &nbsp; &#8212; TKINTER support available<br \/>\n&nbsp; &nbsp; &#8212; JPEG support available<br \/>\n&nbsp; &nbsp; *** OPENJPEG (JPEG2000) support not available<br \/>\n&nbsp; &nbsp; *** ZLIB (PNG\/ZIP) support not available<br \/>\n&nbsp; &nbsp; &#8212; LIBTIFF support available<br \/>\n&nbsp; &nbsp; &#8212; FREETYPE2 support available<br \/>\n&nbsp; &nbsp; *** LITTLECMS2 support not available<br \/>\n&nbsp; &nbsp; *** WEBP support not available<br \/>\n&nbsp; &nbsp; *** WEBPMUX support not available<br \/>\n&nbsp; &nbsp;&nbsp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p><\/blockquote>\n<p>\u203b\u3061\u306a\u307f\u306bPillow\u3068\u3044\u3046\u306e\u306fPIL\u306e\u30d5\u30a9\u30fc\u30af\u3067\u3042\u3063\u3066\u3001\u672c\u5bb6\u306ePIL\u306e\u958b\u767a\u304c\u7d42\u4e86\u3057\u3066\u3044\u308b\u305f\u3081\u306bfork\u3055\u308c\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u307f\u305f\u3044\u3002<\/p>\n<p>PNG\u30b5\u30dd\u30fc\u30c8\u3092\u6709\u52b9\u306b\u3059\u308b\u305f\u3081\u306b\u306f\u3001Pillow\u306esetup.py\u304c\/usr\/local\/include\/\u914d\u4e0b\u306ezlib.h\u3092\u63a2\u3057\u306b\u884c\u304f\u306e\u3067\u3001\u3053\u3053\u306b\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u8cbc\u3063\u3066\u3042\u3052\u308c\u3070\u826f\u3044\u3002\u3053\u308c\u306fXcode\u306e\u4e2d\u306b\u3042\u308bzlib.h\u3092\u30ea\u30f3\u30af\u3057\u3066\u4e0a\u3052\u308b\u306e\u304c\u826f\u3044\u307f\u305f\u3044\u3002<\/p>\n<blockquote class=\"tr_bq\"><p>\n&nbsp;<span class=\"comment-copy\" style=\"border: 0px;color: #444444;font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;font-size: 13px;line-height: 17.280000686645508px;margin: 0px;padding: 0px;vertical-align: baseline\"><code style=\"border: 0px;font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;margin: 0px;padding: 1px 5px;vertical-align: baseline\">ln -s \/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/MacOSX.platform\/Developer\/S\u200c\u200bDKs\/MacOSX10.9.sdk\/usr\/include\/zlib.h \/usr\/local\/include\/<\/code><\/span><span style=\"background-color: #fafafa;color: #444444;font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;font-size: 13px;line-height: 17.280000686645508px\">&nbsp;<\/span><\/p><\/blockquote>\n<blockquote class=\"tr_bq\"><p>\nhttp:\/\/stackoverflow.com\/questions\/19532125\/cant-install-pil-after-mac-os-x-10-9<\/p><\/blockquote>\n<p>\u30ea\u30f3\u30af\u3057\u305f\u3042\u3068\u3001\u3082\u3057\u65e2\u306bPillow\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u3067\u3042\u308c\u3070\u4e00\u5ea6\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<blockquote class=\"tr_bq\"><p>\n&nbsp;$ pip uninstall Pillow<\/p><\/blockquote>\n<p>\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305f\u3089\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<blockquote class=\"tr_bq\"><p>\n&nbsp;$pip install Pillow<\/p><\/blockquote>\n<blockquote class=\"tr_bq\"><p>\n\uff08\u7565\uff09&nbsp;<\/p><\/blockquote>\n<blockquote class=\"tr_bq\"><p>\n&nbsp; &nbsp; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n&nbsp; &nbsp; PIL SETUP SUMMARY<br \/>\n&nbsp; &nbsp; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n&nbsp; &nbsp; version&nbsp; &nbsp; &nbsp; Pillow 2.4.0<br \/>\n&nbsp; &nbsp; platform &nbsp; &nbsp; darwin 2.7.7 (default, Jun 14 2014, 23:12:13)<br \/>\n&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)]<br \/>\n&nbsp; &nbsp; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n&nbsp; &nbsp; &#8212; TKINTER support available<br \/>\n&nbsp; &nbsp; &#8212; JPEG support available<br \/>\n&nbsp; &nbsp; *** OPENJPEG (JPEG2000) support not available<br \/>\n&nbsp; &nbsp; &#8212; ZLIB (PNG\/ZIP) support available<br \/>\n&nbsp; &nbsp; &#8212; LIBTIFF support available<br \/>\n&nbsp; &nbsp; &#8212; FREETYPE2 support available<br \/>\n&nbsp; &nbsp; *** LITTLECMS2 support not available<br \/>\n&nbsp; &nbsp; *** WEBP support not available<br \/>\n&nbsp; &nbsp; *** WEBPMUX support not available<br \/>\n&nbsp; &nbsp;&nbsp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&nbsp;<\/p><\/blockquote>\n<p>\u3053\u306e\u3088\u3046\u306bZLIB(PNG\/ZIP) support available\u3068\u51fa\u308c\u3070\u826f\u3044\u3002 \u3053\u306e\u3042\u3068\u305f\u3068\u3048\u3070blockdiag\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f<\/p>\n<blockquote class=\"tr_bq\"><p>\n$ pip install blockdiag<\/p><\/blockquote>\n<p>\u3057\u3066\u3042\u3052\u308c\u3070\u826f\u3044\u3002<\/p>\n<p>\uff08\u8ffd\u8a18\uff09<br \/>\nPillow\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f freetype2\u304c\u5165\u3063\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308b\u304b\u3082\u77e5\u308c\u306a\u3044\u3002\u3053\u308c\u306fHomebrew\u304b\u3089freetype\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3067\u554f\u984c\u306a\u3055\u305d\u3046\u3060\u3063\u305f\u3002<\/p>\n<blockquote class=\"tr_bq\"><p>\n$ brew info freetype<br \/>\nfreetype: stable 2.5.3 (bottled)<br \/>\nhttp:\/\/www.freetype.org<br \/>\n\/usr\/local\/Cellar\/freetype\/2.5.0.1 (59 files, 2.6M)<br \/>\n&nbsp; Poured from bottle<br \/>\n\/usr\/local\/Cellar\/freetype\/2.5.3_1 (60 files, 2.6M) *<br \/>\n&nbsp; Poured from bottle<br \/>\nFrom: https:\/\/github.com\/Homebrew\/homebrew\/blob\/master\/Library\/Formula\/freetype.rb<br \/>\n<span class=\"s1\">==&gt;<\/span> Dependencies<br \/>\nRequired: libpng <span class=\"s2\">\u2714<\/span><span class=\"s1\">==&gt;<\/span> Options<br \/>\n&#8211;universal<br \/>\nBuild a universal binary<br \/>\n&#8211;without-subpixel<br \/>\nDisable sub-pixel rendering (a.k.a. LCD rendering, or ClearType)<\/p><\/blockquote>\n<p>zlib\u3082Homebrew\u306bFormula\u304c\u3042\u3063\u305f\u3051\u3069\u3053\u308c\u3092\u30ea\u30f3\u30af\u3057\u305f\u3089\u306a\u305c\u304bPillow\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u3002<\/p>\n<p>\uff08\u8ffd\u8a18\uff09<br \/>\nHomebrew\u304b\u3089zlib.h\u3068zconf.h\u306e\u4e21\u65b9\u3092\u30ea\u30f3\u30af\u3057\u305f\u3089Pillow\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305f\u3002Xcode\u306e\u5834\u5408\u306fzlib.h\u3060\u3051\u3067\u5927\u4e08\u592b\u3060\u3063\u305f\u306e\u304c\u306a\u3093\u3067\u304b\u306f\u8b0e\u3002Xcode\u306b\u5165\u3063\u3066\u305f\u306e\u306f1.2.5\u3067Homebrew\u304c1.2.8\u3060\u3063\u305f\u3002<\/p>\n<blockquote class=\"tr_bq\"><p>\n$ ln -s \/usr\/local\/opt\/zlib\/include\/zlib.h \/usr\/local\/include\/<br \/>\n$ ln -s \/usr\/local\/opt\/zlib\/include\/zconf.h \/usr\/local\/include\/<\/p><\/blockquote>\n<p>\n\uff08\u8ffd\u8a18\uff09<br \/>Homebrew\u3092\u4f7f\u3046\u306a\u3089\u3001Homebrew\/python\u304b\u3089Pillow\u3092\u5165\u308c\u308c\u3070\u826f\u3044\u3089\u3057\u3044\u3002\u3053\u308c\u306fXcode.app\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4e2d\u306ezlib.h\u3092\u6307\u5b9a\u3057\u3066ZLIB\u30b5\u30dd\u30fc\u30c8\u304c\u6709\u52b9\u306a\u72b6\u614b\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u308c\u308b\u307f\u305f\u3044\u3002<\/p>\n<blockquote class=\"tr_bq\"><p>\n$ brew tap Homebrew\/python<br \/>$ brew install pillow&nbsp;<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>OSX Mavericks\u74b0\u5883\u3067blockdiag\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u601d\u3044\u3001pip\u3092\u4f7f\u3063\u3066Pillow\u3092\u305d\u306e\u307e\u307e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068PNG\u30b5\u30dd\u30fc\u30c8\u304c\u7121\u52b9\u306a\u307e\u307e\u306e\u69d8\u3067\u3042\u308b\u3002\u3053\u308c\u3092\u89e3\u6c7a\u3057\u305f\u306e\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30e1\u30e2\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,21,32],"tags":[],"class_list":["post-1264","post","type-post","status-publish","format-standard","hentry","category-develop","category-howto","category-python"],"_links":{"self":[{"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/posts\/1264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rawbytes.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1264"}],"version-history":[{"count":1,"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/posts\/1264\/revisions"}],"predecessor-version":[{"id":1265,"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/posts\/1264\/revisions\/1265"}],"wp:attachment":[{"href":"https:\/\/rawbytes.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rawbytes.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rawbytes.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}