{"id":2352,"date":"2017-02-18T21:49:15","date_gmt":"2017-02-18T12:49:15","guid":{"rendered":"http:\/\/daily.belltail.jp\/?p=2352"},"modified":"2017-02-18T21:49:58","modified_gmt":"2017-02-18T12:49:58","slug":"mac%e3%81%abrmagick%e3%81%8c%e5%85%a5%e3%82%89%e3%81%aa%e3%81%8f%e3%81%a6%e3%81%a4%e3%82%89%e3%81%84%e4%ba%ba%e3%81%b8","status":"publish","type":"post","link":"https:\/\/daily.belltail.jp\/?p=2352","title":{"rendered":"Mac\u306bRMagick\u304c\u5165\u3089\u306a\u304f\u3066\u3064\u3089\u3044\u4eba\u3078"},"content":{"rendered":"<p>\u5927\u578b\u6de1\u6c34\u9b5a\u306e\u30d4\u30e9\u30eb\u30af\u30fc\u306f\u3068\u3066\u3082\u7279\u5fb4\u7684\u306a\u5927\u304d\u306a\u9c57\u3092\u3082\u3061\u3001\u305d\u306e\u786c\u3055\u3082\u3042\u3063\u3066\u3001\u9774\u3079\u3089\u306a\u3069\u306b\u5229\u7528\u3055\u308c\u308b\u3053\u3068\u3055\u3048\u3042\u308b\u306e\u3060\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u3055\u3066\u3001Mac(El Capitan)\u306bGem\u3067RMagick\u3092\u5165\u308c\u3088\u3046\u3068\u3057\u305f\u3068\u304d\u3001<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n% gem install rmagick\r\n<\/pre>\n<p>\u3053\u3093\u306a\u30a8\u30e9\u30fc\u3067\u6b7b\u306b\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nGem::Ext::BuildError: ERROR: Failed to build gem native extension.\r\n\r\n    \/Users\/hogehoge\/.rbenv\/versions\/2.2.0\/bin\/ruby -r .\/siteconf20170218-46131-rbo6q5.rb extconf.rb\r\nchecking for clang... yes\r\nchecking for Magick-config... no\r\nchecking for pkg-config... yes\r\nchecking for outdated ImageMagick version (&lt;= 6.4.9)... no\r\nchecking for Ruby version &gt;= 1.8.5... yes\r\nchecking for stdint.h... yes\r\nchecking for sys\/types.h... yes\r\nchecking for wand\/MagickWand.h... no\r\n\r\nCan't install RMagick 2.15.4. Can't find MagickWand.h.\r\n *** extconf.rb failed ***\r\nCould not create Makefile due to some reason, probably lack of necessary\r\nlibraries and\/or headers.  Check the mkmf.log file for more details.  You may\r\nneed configuration options.\r\n\r\nProvided configuration options:\r\n        --with-opt-dir\r\n        --without-opt-dir\r\n        --with-opt-include\r\n        --without-opt-include=${opt-dir}\/include\r\n        --with-opt-lib\r\n        --without-opt-lib=${opt-dir}\/lib\r\n        --with-make-prog\r\n        --without-make-prog\r\n        --srcdir=.\r\n        --curdir\r\n        --ruby=\/Users\/hogehoge\/.rbenv\/versions\/2.2.0\/bin\/$(RUBY_BASE_NAME)\r\n\r\nextconf failed, exit code 1\r\n\r\nGem files will remain installed in \/Users\/hogehoge\/.rbenv\/versions\/2.2.0\/lib\/ruby\/gems\/2.2.0\/gems\/rmagick-2.15.4 for inspection.\r\nResults logged to \/Users\/hogehoge\/.rbenv\/versions\/2.2.0\/lib\/ruby\/gems\/2.2.0\/extensions\/x86_64-darwin-15\/2.2.0-static\/rmagick-2.15.4\/gem_make.out\r\n\r\nAn error occurred while installing rmagick (2.15.4), and Bundler cannot continue.\r\nMake sure that `gem install rmagick -v '2.15.4'` succeeds before bundling.\r\n<\/pre>\n<p>\u57fa\u672c\u7684\u306b\u306f\u3053\u3061\u3089\u3067\u66f8\u304b\u308c\u3066\u3044\u308b\u3088\u3046\u306a\u3001pkg-config\u5468\u308a\u3092\u3061\u3083\u3093\u3068\u3059\u308b\u3088\u3046\u3068\u3044\u3046\u3088\u3046\u306a\u306e\u304c\u3088\u304f\u5f15\u3063\u304b\u304b\u308a\u307e\u3059\u3002<br \/>\n[http:\/\/qiita.com\/yokozawa\/items\/937375aab0dd6d6ff334:title=Mac OS X\u74b0\u5883\u306brmagick\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u6c7a\u5b9a\u7248 &#8211; Qiita]<\/p>\n<p>\u50d5\u306e\u5834\u5408\u306f\u307e\u305f\u9055\u3046\u73fe\u8c61\u3067\u3057\u305f\u3002<br \/>\n\u7d50\u8ad6\u304b\u3089\u8a00\u3046\u3068\u3001<strong>\u65b0\u3057\u3044ImageMagick7.x\u304c\u30b7\u30b9\u30c6\u30e0\u306b\u5165\u3063\u3066\u308b\u3068\u30c0\u30e1\u3067\u30016.x\u7cfb\u5217\u3092\u5165\u308c\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f<\/strong>\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n% brew uninstall --ignore-dependencies --force imagemagick\r\n% brew install imagemagick@6 &amp;&amp; brew link imagemagick@6 --force\r\n% gem install rmagick\r\n<\/pre>\n<p>\u3053\u306e\u7b54\u3048\u306f\u3001\u3053\u3061\u3089\u306eStackOverflow\u3067\u767a\u898b\u3057\u307e\u3057\u305f\u3002<br \/>\n[http:\/\/stackoverflow.com\/questions\/39494672\/rmagick-installation-cant-find-magickwand-h:title=ruby &#8211; RMagick installation: Can&#8217;t find MagickWand.h &#8211; Stack Overflow]<\/p>\n<p>\u3053\u3046\u3044\u3046\u306e\u3067\u6642\u9593\u3092\u6eb6\u304b\u3059\u306e\u304c\u3044\u3061\u3070\u3093\u3064\u3089\u3044\u3067\u3059\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5927\u578b\u6de1\u6c34\u9b5a\u306e\u30d4\u30e9\u30eb\u30af\u30fc\u306f\u3068\u3066\u3082\u7279\u5fb4\u7684\u306a\u5927\u304d\u306a\u9c57\u3092\u3082\u3061\u3001\u305d\u306e\u786c\u3055\u3082\u3042\u3063\u3066\u3001\u9774\u3079\u3089\u306a\u3069\u306b\u5229\u7528\u3055\u308c\u308b\u3053\u3068\u3055\u3048\u3042\u308b\u306e\u3060\u305d\u3046\u3067\u3059\u3002 \u3055\u3066\u3001Mac(El Capitan)\u306bGem\u3067RMagick\u3092\u5165\u308c\u3088\u3046\u3068\u3057\u305f\u3068\u304d\u3001 % gem i [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[23,55,49,38],"class_list":["post-2352","post","type-post","status-publish","format-standard","hentry","category-1","tag-ruby","tag-55","tag-49","tag-38"],"_links":{"self":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts\/2352","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2352"}],"version-history":[{"count":4,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts\/2352\/revisions"}],"predecessor-version":[{"id":2356,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts\/2352\/revisions\/2356"}],"wp:attachment":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}