{"id":683,"date":"2008-07-09T20:09:29","date_gmt":"2008-07-09T11:09:29","guid":{"rendered":"http:\/\/www.kazu.tv\/blog\/?p=683"},"modified":"2008-07-09T20:09:29","modified_gmt":"2008-07-09T11:09:29","slug":"ruby_on_rails","status":"publish","type":"post","link":"https:\/\/kazu.tv\/blog\/2008\/07\/09\/ruby_on_rails\/","title":{"rendered":"Ruby on Rails\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>\u25cb\u74b0\u5883<br \/>\nCentOS 5.2<br \/>\n\u25cb\u624b\u9806<br \/>\nRuby\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<div class=\"code\">yum install ruby<\/div>\n<p>Gems\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<br \/>\nGems\u306f\u6a19\u6e96\u306eCentOS\u306e\u30ec\u30dd\u30b8\u30c8\u30ea\u306b\u306f\u5165\u3063\u3066\u306a\u3044\u306e\u3067\u3001dlutter\u3068\u3044\u3046\u30ec\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0<br \/>\n\/etc\/yum.repos.d\/dlutter.repo \u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u4f5c\u6210\u3002<\/p>\n<div class=\"code\">[dlutter]<br \/>\nname=Unsupported RHEL5 packages (dlutter)<br \/>\nbaseurl=http:\/\/people.redhat.com\/dlutter\/yum\/rhel\/5\/$basearch\/<br \/>\nenabled=0<br \/>\ngpgcheck=0<\/div>\n<p>\u3044\u3088\u3044\u3088Gems\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<div class=\"code\">#  yum &#8211;enablerepo=dlutter -y install rubygems.noarch<br \/>\nLoading &#8220;fastestmirror&#8221; plugin<br \/>\nLoading mirror speeds from cached hostfile<br \/>\n* dlutter: people.redhat.com<br \/>\n* base: dist1.800hosting.com<br \/>\n* updates: centos-distro.cavecreek.net<br \/>\n* addons: mirror.steadfast.net<br \/>\n* extras: mirror.unl.edu<br \/>\ndlutter                   100% |=========================|  951 B    00:00<br \/>\nprimary.xml.gz            100% |=========================| 5.8 kB    00:00<br \/>\ndlutter   : ################################################## 19\/19<br \/>\nbase                      100% |=========================| 1.1 kB    00:00<br \/>\nupdates                   100% |=========================|  951 B    00:00<br \/>\naddons                    100% |=========================|  951 B    00:00<br \/>\nextras                    100% |=========================| 1.1 kB    00:00<br \/>\nExcluding Packages in global exclude list<br \/>\nFinished<br \/>\nSetting up Install Process<br \/>\nParsing package install arguments<br \/>\nResolving Dependencies<br \/>\n&#8211;> Running transaction check<br \/>\n&#8212;> Package rubygems.noarch 0:0.9.4-1.el5 set to be updated<br \/>\n&#8211;> Processing Dependency: ruby-rdoc for package: rubygems<br \/>\n&#8211;> Running transaction check<br \/>\n&#8212;> Package ruby-rdoc.i386 0:1.8.5-5.el5_1.1 set to be updated<br \/>\n&#8211;> Processing Dependency: ruby-irb = 1.8.5-5.el5_1.1 for package: ruby-rdoc<br \/>\n&#8211;> Running transaction check<br \/>\n&#8212;> Package ruby-irb.i386 0:1.8.5-5.el5_1.1 set to be updated<br \/>\n&#8211;> Finished Dependency Resolution<br \/>\nDependencies Resolved<br \/>\n=============================================================================<br \/>\nPackage                 Arch       Version          Repository        Size<br \/>\n=============================================================================<br \/>\nInstalling:<br \/>\nrubygems                noarch     0.9.4-1.el5      dlutter           513 k<br \/>\nInstalling for dependencies:<br \/>\nruby-irb                i386       1.8.5-5.el5_1.1  base               67 k<br \/>\nruby-rdoc               i386       1.8.5-5.el5_1.1  base              135 k<br \/>\nTransaction Summary<br \/>\n=============================================================================<br \/>\nInstall      3 Package(s)<br \/>\nUpdate       0 Package(s)<br \/>\nRemove       0 Package(s)<br \/>\nTotal download size: 716 k<br \/>\nDownloading Packages:<br \/>\n(1\/3): ruby-irb-1.8.5-5.e 100% |=========================|  67 kB    00:00<br \/>\n(2\/3): ruby-rdoc-1.8.5-5. 100% |=========================| 135 kB    00:00<br \/>\n(3\/3): rubygems-0.9.4-1.e 100% |=========================| 513 kB    00:00<br \/>\nRunning rpm_check_debug<br \/>\nRunning Transaction Test<br \/>\nFinished Transaction Test<br \/>\nTransaction Test Succeeded<br \/>\nRunning Transaction<br \/>\nInstalling: ruby-irb                     ######################### [1\/3]<br \/>\nInstalling: ruby-rdoc                    ######################### [2\/3]<br \/>\nInstalling: rubygems                     ######################### [3\/3]<br \/>\nInstalled: rubygems.noarch 0:0.9.4-1.el5<br \/>\nDependency Installed: ruby-irb.i386 0:1.8.5-5.el5_1.1 ruby-rdoc.i386 0:1.8.5-5.el5_1.1<br \/>\nComplete!<\/div>\n<p>\u6700\u5f8c\u306b\u3001Rails\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<div class=\"code\">gem install rails<br \/>\nBulk updating Gem source index for: http:\/\/gems.rubyforge.org<br \/>\nERROR:  While executing gem &#8230; (Gem::GemNotFoundException)<br \/>\nCould not find rails (> 0) in any repository<br \/>\nroot@host [~]# gem install &#8211;remote rails &#8211;include-dependencies<br \/>\nBulk updating Gem source index for: http:\/\/gems.rubyforge.org<br \/>\nSuccessfully installed rails-2.1.0<br \/>\nSuccessfully installed rake-0.8.1<br \/>\nSuccessfully installed activesupport-2.1.0<br \/>\nSuccessfully installed activerecord-2.1.0<br \/>\nSuccessfully installed actionpack-2.1.0<br \/>\nSuccessfully installed actionmailer-2.1.0<br \/>\nSuccessfully installed activeresource-2.1.0<br \/>\nInstalling ri documentation for rake-0.8.1&#8230;<br \/>\nInstalling ri documentation for activesupport-2.1.0&#8230;<br \/>\nInstalling ri documentation for activerecord-2.1.0&#8230;<br \/>\nInstalling ri documentation for actionpack-2.1.0&#8230;<br \/>\nInstalling ri documentation for actionmailer-2.1.0&#8230;<br \/>\nInstalling ri documentation for activeresource-2.1.0&#8230;<br \/>\nInstalling RDoc documentation for rake-0.8.1&#8230;<br \/>\nInstalling RDoc documentation for activesupport-2.1.0&#8230;<br \/>\nInstalling RDoc documentation for activerecord-2.1.0&#8230;<br \/>\nInstalling RDoc documentation for actionpack-2.1.0&#8230;<br \/>\nInstalling RDoc documentation for actionmailer-2.1.0&#8230;<br \/>\nInstalling RDoc documentation for activeresource-2.1.0&#8230;<\/div>\n<p><!--more--><br \/>\n\u25cb\u8ffd\u8a18<br \/>\nruby-devel\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u306a\u3044\u3068\u3001\u8ffd\u52a0\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\uff08\uff1f\uff09\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u304b\u3067\u306f\u307e\u308b\u3002<br \/>\n\u4f8b\u2193<\/p>\n<div class=\"code\"># gem install mysql<br \/>\nSelect which gem to install for your platform (i386-linux)<br \/>\n1. mysql 2.7.3 (mswin32)<br \/>\n2. mysql 2.7.1 (mswin32)<br \/>\n3. mysql 2.7 (ruby)<br \/>\n4. mysql 2.6 (ruby)<br \/>\n5. Skip this gem<br \/>\n6. Cancel installation<br \/>\n> 3<br \/>\nBuilding native extensions.  This could take a while&#8230;<br \/>\nERROR:  While executing gem &#8230; (Gem::Installer::ExtensionBuildError)<br \/>\nERROR: Failed to build gem native extension.<br \/>\nruby extconf.rb install mysql<br \/>\ncan&#8217;t find header files for ruby.<br \/>\nGem files will remain installed in \/usr\/lib\/ruby\/gems\/1.8\/gems\/mysql-2.7 for inspection.<br \/>\nResults logged to \/usr\/lib\/ruby\/gems\/1.8\/gems\/mysql-2.7\/gem_make.out<\/div>\n<p>\u25cb\u53c2\u8003\u306b\u3057\u305f\u30b5\u30a4\u30c8<br \/>\ndlutter\u30ec\u30dd\u30b8\u30c8\u30ea\u306e\u8ffd\u52a0\u306f\u3053\u306e<a href=\"http:\/\/centos.oss.sc\/fundamentals\/yum_dlutter\/\">\u30da\u30fc\u30b8<\/a>\u3092\u53c2\u8003\u306b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CentOS 5.2\u306bRuby on Raisl\u3092\u5c0e\u5165\u3002<\/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":[298,299,300],"class_list":["post-683","post","type-post","status-publish","format-standard","hentry","category-8","tag-centos-5-2","tag-gems","tag-ruby-on-rails"],"_links":{"self":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts\/683","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=683"}],"version-history":[{"count":0,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts\/683\/revisions"}],"wp:attachment":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/media?parent=683"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/categories?post=683"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/tags?post=683"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}