{"id":984,"date":"2010-12-14T01:26:06","date_gmt":"2010-12-13T16:26:06","guid":{"rendered":"http:\/\/www.kazu.tv\/blog\/?p=984"},"modified":"2010-12-14T01:26:06","modified_gmt":"2010-12-13T16:26:06","slug":"rmagickcentos","status":"publish","type":"post","link":"https:\/\/kazu.tv\/blog\/2010\/12\/14\/rmagickcentos\/","title":{"rendered":"RMagick\u3092CentOS\u306b\u5165\u308c\u308b\u3002"},"content":{"rendered":"<p>\u5148\u6708\u4f4d\u304b\u3089\u521d\u3081\u3066\u306eRuby on Rails\u306e\u4ed5\u4e8b\u3092\u3057\u3066\u308b\u3002\u65e2\u5b58\u30b7\u30b9\u30c6\u30e0\u306e\u79fb\u884c\u30fb\u6a5f\u80fd\u8ffd\u52a0\u306a\u306e\u3067\u3001\u521d\u5fc3\u8005\u306e\u81ea\u5206\u306b\u306f\u3074\u3063\u305f\u308a\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3002<\/p>\n<p>\u305d\u306e\u30b7\u30b9\u30c6\u30e0\u3067\u306f<a target=\"_blank\" href=\"http:\/\/rmagick.rubyforge.org\/\">RMagick<\/a>\u3068\u3044\u3046Ruby\u304b\u3089<a target=\"_blank\" href=\"http:\/\/www.imagemagick.org\/script\/index.php\">ImageMagick<\/a>\u3092\u4f7f\u3046\u70ba\u306egem\u3092\u4f7f\u3063\u3066\u308b\u306e\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u306eCentOS\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3057\u305f\u3051\u3069\u3001\u4f9d\u5b58\u3057\u3066\u3044\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u8981\u4ef6\u3068\u304b\u304c\u7d50\u69cb\u9762\u5012\u3060\u3063\u305f\u3002RMagick\u306f\u30d0\u30fc\u30b8\u30e7\u30f31\u7cfb\u30682\u7cfb\u304c\u3042\u308b\u3051\u3069\u3001\u4eca\u56de\u306f2\u7cfb\u3092\u5165\u308c\u308b\uff08\u8981\u4ef6\u306b\u3088\u308av2.5.2\u6307\u5b9a&hellip;\uff09\u3002<\/p>\n<h3>\u25a0\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8<\/h3>\n<p>RMagick\u30d0\u30fc\u30b8\u30e7\u30f32\u306fImageMagick 6.3.0\u4ee5\u964d\u304c\u5fc5\u8981\u3002\u305d\u306e\u4ed6\u306b\u3082\u8272\u3005\u5fc5\u8981\u3002\u8a73\u3057\u304f\u306f<a target=\"_blank\" href=\"http:\/\/rmagick.rubyforge.org\/install-faq.html\">\u3053\u306e\u3042\u305f\u308a<\/a>\u3002<\/p>\n<p>\u4e00\u756a\u306e\u554f\u984c\uff08\u3068\u601d\u308f\u308c\u308b\u306e\uff09\u306f\u3001CentOS\u3067yum\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308bImageMagick\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u53e4\u3044\u4e8b\u3002\u975e\u5e38\u306b\u3042\u308a\u304c\u3061\u306a\u554f\u984c\u3060\u3051\u3069\u3002<\/p>\n<p><!--more--><\/p>\n<h3>\u25a0ImageMagick\u305d\u306e\u4ed6\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>ImageMagick\u3092\u5165\u308c\u308b\u306b\u306f\u8272\u3005\u306a\u3084\u308a\u65b9\u304c\u3051\u3069\u3001\u4e00\u756a\u7c21\u5358\u306a\u306e\u306f<a href=\"ftp:\/\/ftp.kddlabs.co.jp\/graphics\/ImageMagick\/linux\/CentOS\/x86_64\/\" target=\"_blank\">\u3053\u3053<\/a>\u304b\u3089RPM\u3092\u53d6\u3063\u3066\u304d\u3066\u5165\u308c\u308b\u4e8b\u3002<\/p>\n<p>\u6b21\u306b\u7c21\u5358\u306a\u65b9\u6cd5\u306f\u3001Fedora\u306eSRPM\u3092\u5165\u308c\u3066\u30ea\u30d3\u30eb\u30c9\u3059\u308b\u4e8b\u3002\u30ea\u30d3\u30eb\u30c9\u306e\u305f\u3081\u306b\u306f\u8272\u3093\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u306edevel\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5165\u308c\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3001\u5c11\u3057\u9762\u5012\u3002<\/p>\n<p>ImageMagick\u3068\u3001\u3044\u304f\u3064\u304b\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5165\u308c\u305f\u3089\u3001\u5f8c\u306f\u666e\u901a\u306bgem install\u3067RMagick\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u3002<\/p>\n<h3>\u25a0\u74b0\u5883<\/h3>\n<p>\u8a33\u3042\u3063\u3066\u304b\u306a\u308a\u53e4\u3081\u306e\u74b0\u5883\u3002<\/p>\n<ul>\n<li>CentOS 5.5<\/li>\n<li>ruby 1.8.6 (Fedora 12\u306eSRPM\u3092\u30ea\u30d3\u30eb\u30c9)<\/li>\n<li>RubyGems 1.3.7<\/li>\n<\/ul>\n<h3>\u25a0\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8<\/h3>\n<p>\u4ee5\u4e0b\u3001\u81ea\u5206\u7528\u30e1\u30e2\u3002<\/p>\n<p>\u30a8\u30e9\u30fc1\uff1aImageMagick\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408<\/p>\n<pre class=\"brush: plain\">\n$ sudo gem install rmagick -v=2.5.2\nBuilding native extensions.  This could take a while...\nERROR:  Error installing rmagick:\nERROR: Failed to build gem native extension.\n\/usr\/bin\/ruby extconf.rb\nchecking for Ruby version &gt;= 1.8.2... yes\nchecking for gcc... yes\nchecking for Magick-config... no\nCan't install RMagick 2.5.2. Can't find Magick-config in \/usr\/bin:\/bin\n*** extconf.rb failed ***\nCould not create Makefile due to some reason, probably lack of\nnecessary libraries and\/or headers.  Check the mkmf.log file for more\ndetails.  You may need configuration options.\nProvided configuration options:\n--with-opt-dir\n--without-opt-dir\n--with-opt-include\n--without-opt-include=${opt-dir}\/include\n--with-opt-lib\n--without-opt-lib=${opt-dir}\/lib\n--with-make-prog\n--without-make-prog\n--srcdir=.\n--curdir\n--ruby=\/usr\/bin\/ruby\nGem files will remain installed in \/usr\/lib64\/ruby\/gems\/1.8\/gems\/rmagick-2.5.2 for inspection.\nResults logged to \/usr\/lib64\/ruby\/gems\/1.8\/gems\/rmagick-2.5.2\/ext\/RMagick\/gem_make.out\n<\/pre>\n<p>&nbsp;\u30a8\u30e9\u30fc2\uff1aImageMagick\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u53e4\u3044\u5834\u5408<\/p>\n<pre class=\"brush: plain\">\n$ sudo gem install rmagick -v=2.5.2\nBuilding native extensions.  This could take a while...\nERROR:  Error installing rmagick:\nERROR: Failed to build gem native extension.\n\/usr\/bin\/ruby extconf.rb\nchecking for Ruby version &gt;= 1.8.2... yes\nchecking for gcc... yes\nchecking for Magick-config... yes\nchecking for ImageMagick version &gt;= 6.3.0... no\nCan't install RMagick 2.5.2. You must have ImageMagick 6.3.0 or later.\n*** extconf.rb failed ***\nCould not create Makefile due to some reason, probably lack of\nnecessary libraries and\/or headers.  Check the mkmf.log file for more\ndetails.  You may need configuration options.\nProvided configuration options:\n--with-opt-dir\n--without-opt-dir\n--with-opt-include\n--without-opt-include=${opt-dir}\/include\n--with-opt-lib\n--without-opt-lib=${opt-dir}\/lib\n--with-make-prog\n--without-make-prog\n--srcdir=.\n--curdir\n--ruby=\/usr\/bin\/ruby\nGem files will remain installed in \/usr\/lib64\/ruby\/gems\/1.8\/gems\/rmagick-2.5.2 for inspection.\nResults logged to \/usr\/lib64\/ruby\/gems\/1.8\/gems\/rmagick-2.5.2\/ext\/RMagick\/gem_make.out\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u6708\u4f4d\u304b\u3089\u521d\u3081\u3066\u306eRuby on Rails\u306e\u4ed5\u4e8b\u3092\u3057\u3066\u308b\u3002\u65e2\u5b58\u30b7\u30b9\u30c6\u30e0\u306e\u79fb\u884c\u30fb\u6a5f\u80fd\u8ffd\u52a0\u306a\u306e\u3067\u3001\u521d\u5fc3\u8005\u306e\u81ea\u5206\u306b\u306f\u3074\u3063\u305f\u308a\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3002 \u305d\u306e\u30b7\u30b9\u30c6\u30e0\u3067\u306fRMagick\u3068\u3044\u3046Ruby\u304b\u3089ImageMagick\u3092\u4f7f\u3046\u70ba\u306eg&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[8],"tags":[269,816,817,300],"class_list":["post-984","post","type-post","status-publish","format-standard","hentry","category-8","tag-centos","tag-imagemagick","tag-rmagick","tag-ruby-on-rails"],"_links":{"self":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts\/984","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/comments?post=984"}],"version-history":[{"count":0,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts\/984\/revisions"}],"wp:attachment":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/media?parent=984"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/categories?post=984"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/tags?post=984"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}