{"id":1026,"date":"2013-02-05T20:07:16","date_gmt":"2013-02-05T11:07:16","guid":{"rendered":"https:\/\/ecoop.net\/memo\/?p=1026"},"modified":"2018-11-21T18:44:33","modified_gmt":"2018-11-21T09:44:33","slug":"mac-os-x-pkg-config-error","status":"publish","type":"post","link":"https:\/\/www.ecoop.net\/memo\/archives\/mac-os-x-pkg-config-error.html","title":{"rendered":"Mac OS X \u3067 pkg-config\u3067\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f"},"content":{"rendered":"<p>\u666e\u6bb5\u304b\u3089 OS X\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u306b\u306f Homebrew \u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\nHomebrew \u306b\u542b\u307e\u308c\u308b\u4e00\u90e8\u30d1\u30c3\u30b1\u30fc\u30b8(pango)\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u5909\u3048\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u3001\u81ea\u5206\u3067\u30d3\u30eb\u30c9\u3057\u3066\u307f\u3088\u3046\u3068\u601d\u3063\u305f\u3068\u3053\u308d\u3059\u3063\u304b\u308a\u306f\u307e\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<h3>\u767a\u751f\u3057\u305f\u75c7\u72b6<\/h3>\n<p>Homebrew \u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8(cairo)\u306b\u4f9d\u5b58\u3057\u3066\u3044\u308b\u7b87\u6240\u3067\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306b\u306f .\/configure \u306e\u5b9f\u884c\u4e2d\u306b pkg-config \u3067\u4f9d\u5b58\u3057\u3066\u3044\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u306e.pc \u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3057\u306a\u3044\u3068\u6012\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# config.log\r\npkg-config --cflags --print-errors cairo \r\n\r\nPackage xcb-shm was not found in the pkg-config search path.\r\nPerhaps you should add the directory containing `xcb-shm.pc&#039;\r\nto the PKG_CONFIG_PATH environment variable\r\nPackage &#039;xcb-shm&#039;, required by &#039;cairo&#039;, not found\r\n<\/pre>\n<h3>\u89e3\u6c7a\u3059\u308b\u306b\u306f\uff1f<\/h3>\n<p>\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3069\u304a\u308a\u3001\u74b0\u5883\u5909\u6570 PKG_CONFIG_PATH\u306e\u901a\u308b\u3068\u3053\u308d\u306b .pc \u30d5\u30a1\u30a4\u30eb\u3092\u914d\u7f6e\u3059\u308b\u304b\u3001\u74b0\u5883\u5909\u6570\u306b\u30d1\u30b9\u3092\u8ffd\u52a0\u3057\u3066\u518d\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u89e3\u6c7a\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>PKG_CONFIG_PATH\u304c\u7a7a\u306e\u5834\u5408\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306f<\/p>\n<p>\/usr\/local\/lib\/pkgconfig<\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f \/opt\/X11\/lib\/pkgconfig\/ \u306e\u4e2d\u306b\u4f9d\u5b58\u3057\u3066\u3044\u308b .pc\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u30d1\u30b9\u8ffd\u52a0\u3067\u5bfe\u5fdc\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ export PKG_CONFIG_PATH=\/usr\/local\/lib\/pkgconfig:\/opt\/X11\/lib\/\r\n<\/pre>\n<p>\u518d\u5b9f\u884c\u3057\u3001\u30a8\u30e9\u30fc\u304c\u51fa\u306a\u304f\u306a\u308b\u306e\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ pkg-config --cflags --print-errors cairo\r\n<\/pre>\n<p>\u3042\u3068\u306f\u901a\u5e38\u901a\u308a\u3001.\/configure, make \u306a\u3069\u3092\u5b9f\u884c\u3059\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<p>OS X \u3067\u306f(Homebrew\u3067\u306f\uff1f) X11 \u95a2\u4fc2\u306e pkgconfig\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u60c5\u5831\u30d5\u30a1\u30a4\u30eb(.pc\u30d5\u30a1\u30a4\u30eb)\u306f \/opt\/X11\/lib\/pkgconfig\/ \u306b\u3042\u308b\u306e\u3067\u3059\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u666e\u6bb5\u304b\u3089 OS X\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u306b\u306f Homebrew \u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002 Homebrew \u306b\u542b\u307e\u308c\u308b\u4e00\u90e8\u30d1\u30c3\u30b1\u30fc\u30b8(pango)\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u5909\u3048\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u3001\u81ea\u5206\u3067\u30d3\u30eb\u30c9\u3057\u3066\u307f\u3088\u3046\u3068\u601d\u3063\u305f\u3068\u3053\u308d\u3059\u3063 &hellip; <a href=\"https:\/\/www.ecoop.net\/memo\/archives\/mac-os-x-pkg-config-error.html\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Mac OS X \u3067 pkg-config\u3067\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[102,94],"class_list":["post-1026","post","type-post","status-publish","format-standard","hentry","category-mac-2","tag-homebrew","tag-mac"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/1026","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/comments?post=1026"}],"version-history":[{"count":0,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/1026\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/media?parent=1026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/categories?post=1026"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/tags?post=1026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}