{"id":1774,"date":"2012-11-12T00:34:36","date_gmt":"2012-11-11T15:34:36","guid":{"rendered":"http:\/\/codaholic.org\/?p=1774"},"modified":"2014-03-09T19:07:51","modified_gmt":"2014-03-09T10:07:51","slug":"rubycentos%e3%81%a7gem-version%e3%82%92%e5%ae%9f%e8%a1%8c%e3%81%99%e3%82%8b%e3%81%a8libyaml%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e3%82%88%e3%81%86","status":"publish","type":"post","link":"https:\/\/codaholic.org\/?p=1774","title":{"rendered":"[Ruby] CentOS \u3067 gem &#8211;version \u3092\u5b9f\u884c\u3059\u308b\u3068 libyaml \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3088\u3046\u306b\u8b66\u544a\u304c\u3067\u308b\u5834\u5408\u306e\u5bfe\u51e6\u65b9\u6cd5"},"content":{"rendered":"<p>Ruby 1.9.3 \u3092\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066 gem install rails \u3092\u5b9f\u884c\u3057\u305f\u3068\u304d\u306b\u3001\u4e0b\u8a18\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\u4e0b\u8a18\u306e\u30a8\u30e9\u30fc\u306f libyaml \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u3068\u767a\u751f\u3059\u308b\u30a8\u30e9\u30fc\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u767a\u751f\u3057\u305f\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u4e0b\u8a18\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<p>[html]<br \/>\nIt seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby.<br \/>\n[\/html]<br \/>\n<\/p>\n<p>\u30a8\u30e9\u30fc\u3092\u691c\u7d22\u3059\u308b\u3068\u3001libyaml-devel \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u306e\u3061\u3001Ruby \u3092\u518d\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308c\u3070\u826f\u3044\u3068\u3044\u3046\u60c5\u5831\u304c\u624b\u306b\u5165\u308a\u307e\u3059\u3002<br \/>\nlibyaml-devel \u306f\u6a19\u6e96 yum \u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u542b\u307e\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u3001rpmforge \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>[html]<br \/>\nyum -y install &#8211;enablerepo=rpmforge libyaml-devel<br \/>\n[\/html]<br \/>\n<\/p>\n<p>\u3053\u308c\u3067 libyaml\u3000\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3057\u305f\u3002<br \/>\n\u3053\u306e\u3042\u3068Ruby \u3092\u518d\u30b3\u30f3\u30d1\u30a4\u30eb\u3092\u3057\u307e\u3059\u304c\u3001\u666e\u901a\u306e\u518d\u30b3\u30f3\u30d1\u30a4\u30eb\u3067\u306f\u7d50\u679c\u306f\u5909\u308f\u308a\u307e\u305b\u3093\u3002<br \/>\n\u518d\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u4e0b\u8a18\u306e\u3088\u3046\u306b .\/configure \u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u5909\u3048\u305f\u3068\u3053\u308d\u3046\u307e\u304f\u3044\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>[html]<br \/>\n.\/configure &#8211;with-opt-dir=\/usr\/lib &#8211;disable-install-doc<br \/>\nmake<br \/>\nmake install<br \/>\n[\/html]<br \/>\n<\/p>\n<p>&#8211;with-opt-dir \u306b\u6307\u5b9a\u3059\u308b\u30d1\u30b9\u306f libyaml \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u79c1\u306e\u5834\u5408\u306f whereis libyaml \u3067 \/usr\/lib\/libyaml.so \u3068\u51fa\u307e\u3057\u305f\u306e\u3067 &#8211;with-opt-dir=\/usr\/lib \u3068\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b &#8211;with-opt-dir \u306f \u30d8\u30c3\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u30d5\u30a1\u30a4\u30eb\u3092\u63a2\u3059\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u8ffd\u52a0\u3059\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3059\u3002<br \/>\n<a href=\"http:\/\/www.ruby-lang.org\/ja\/old-man\/html\/mkmf.html\" target=\"_blank\">http:\/\/www.ruby-lang.org\/ja\/old-man\/html\/mkmf.html<\/a><\/p>\n<p>\u3053\u308c\u3067 gem<\/p>\n<p>\u4e0b\u8a18\u306e\u8a18\u4e8b\u304c\u89e3\u6c7a\u306e\u6c7a\u3081\u624b\u3068\u306a\u308a\u307e\u3057\u305f\u3002\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/emaame.com\/20111104.html\" target=\"_blank\">http:\/\/emaame.com\/20111104.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ruby 1.9.3 \u3092\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066 gem install rails \u3092\u5b9f\u884c\u3057\u305f\u3068\u304d\u306b\u3001\u4e0b\u8a18\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\u4e0b\u8a18\u306e\u30a8\u30e9\u30fc\u306f libyaml \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u3068\u767a\u751f\u3059\u308b\u30a8\u30e9\u30fc\u306e\u3088\u3046 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[105,217],"tags":[268,218,282],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8gd1W-sC","_links":{"self":[{"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/posts\/1774"}],"collection":[{"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codaholic.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1774"}],"version-history":[{"count":4,"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/posts\/1774\/revisions"}],"predecessor-version":[{"id":2133,"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/posts\/1774\/revisions\/2133"}],"wp:attachment":[{"href":"https:\/\/codaholic.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1774"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codaholic.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1774"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codaholic.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1774"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}