{"id":923,"date":"2010-06-20T17:02:57","date_gmt":"2010-06-20T08:02:57","guid":{"rendered":"http:\/\/pipopa.dip.jp\/?p=923"},"modified":"2015-09-26T17:04:11","modified_gmt":"2015-09-26T08:04:11","slug":"debian-lenny%e3%81%b8rails%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/pipopa.server-on.net\/?p=923","title":{"rendered":"debian lenny\u3078rails\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<table width=\"80%\">\n<tbody>\n<tr>\n<td align=\"center\" bgcolor=\"#FF9933\"><span style=\"color: #ffffff;\"><b>[debian lenny\u3078rails\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb]&#8212;&#8211;2010\/06\/20(Sun) 12:44<\/b><\/span><\/td>\n<\/tr>\n<tr>\n<td>apt\u3060\u3051\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u3002<br \/>\napt-get install rails<br \/>\napt-get install ruby-dev<br \/>\napt-get install libfcgi0ldbl<br \/>\napt-get install libfcgi-ruby1.8<br \/>\napt-get install lighttpd<\/p>\n<p>\u4ee5\u4e0b\u300c\u98a8\u306e\u9999\u308a\u3068\u30d7\u30ed\u30b0\u30e9\u30e0\u300d\u3055\u3093\u53c2\u8003\u306b\u3057\u307e\u3057\u305f\u3002\u3042\u308a\u304c\u3068\u3046\u3002<br \/>\n\u3067\u3082gem\u3092\u4f7f\u308f\u305a\u3068\u3082\u3001\uff41\uff50\uff54\u3060\u3051\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305f\u3002\u3068\u3044\u3046\u304b\u4ee5\u4e0b\u306e\u901a\u308a\u306b\u3084\u3063\u305f\u3089\u3001lighttpd \u304c\u8d77\u52d5\u3057\u3066\u3082\u3059\u3050\u7d42\u4e86\u3057\u3066\u3057\u307e\u3046\u306e\u3060\u3063\u305f\u3002<\/p>\n<p>\u2460\u307e\u305a\u3001\u5f8c\u3067\u6012\u3089\u308c\u306a\u3044\u69d8\u306b\u5fc5\u8981\u306a\u3082\u306e\u3092\u3044\u308d\u3044\u308d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304f\u3002<br \/>\n# apt-get install gcc g++ make zlib1g-dev libreadline5-dev openssl libssl0.9.8 libssl-dev libc6-dev<br \/>\nbzip2 patch<\/p>\n<p>\u2461\u6b21\u306b\u9806\u756a\u306brails\u307e\u3067\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3046\u3002<br \/>\n\u6700\u521d\u306f\u5ff5\u306e\u305f\u3081\u306b\u3001OS\u3068\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3002<br \/>\n# aptitude update<br \/>\n# aptitude upgrade<br \/>\nruby\u3001rdoc\u3001rake\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n# aptitude install ruby rdoc rake<br \/>\nlibyaml-ruby\u3068libzlib-ruby\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n# aptitude install libyaml-ruby libzlib-ruby<br \/>\nlibopenssl\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n# aptitude install libopenssl-ruby<br \/>\n\u3053\u308c\u3060\u3051\u3067\u306frake\u304c\u3068\u304a\u3089\u306a\u3044\u306e\u3067\u3001mkmf\u95a2\u9023\u3068\u3001sqlite\u95a2\u9023\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<br \/>\n\u305d\u306e\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8ffd\u52a0\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<br \/>\n# aptitude install ruby1.8-dev<br \/>\nrubygems\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n# wget http:\/\/rubyforge.org\/frs\/download.php\/60718\/rubygems-1.3.5.tgz<br \/>\n# tar xvfz rubygems-1.3.5.tgz<br \/>\n# cd rubygems-1.3.5<br \/>\n# ruby setup.rb<br \/>\nRails \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n# gem1.8 install rails<br \/>\n\u2462SQLite3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002UNIX\u7cfb\u74b0\u5883\u3067\u306fswig\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b.<br \/>\n# aptitude install sqlite3 swig<br \/>\nlibsqlite3-dev\u3082\u5fc5\u8981\u306a\u306e\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n# aptitude install libsqlite3-dev<br \/>\ngem\u3092\u4f7f\u3063\u3066sqlite3-ruby\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n# gem1.8 install sqlite3-ruby<br \/>\n\u2463mysql\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u307e\u305a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n# apt-get install mysql-server mysql-client<br \/>\n\u7d9a\u3044\u3066\u30c9\u30e9\u30a4\u30d0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n# apt-get install libmysqlclient15-dev<br \/>\n# gem1.8 install mysql<br \/>\n\u2464sqlite \u3092\u4f7f\u3063\u3066\u306e\u4f5c\u6210<br \/>\n$ rails todolist<br \/>\n$ cd todolist<br \/>\n$ .\/script\/generate scaffold Todo title:string description:text due:datetime done:boolean<br \/>\n$ rake db:migrate<br \/>\n$ .\/script\/server<br \/>\n\u2465mysql\u3092\u4f7f\u3063\u3066\u306e\u4f5c\u6210<br \/>\n$ rails todo -d mysql<br \/>\n$ cd todo<br \/>\n$ vi config\/database.yml \u3067mysql\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3002<br \/>\n\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u4ed6\u306e\u9805\u76ee\u3068\u540c\u3058\u306b\u306a\u308b\u3088\u3046\u306b\u6700\u521d\u306b\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u3092\u5165\u308c\u306a\u3044\u3068rake\u3067\u30a8\u30e9\u30fc\u3068\u306a\u308b\u3002<br \/>\n$ rake db:create (\u2190development\u306e\u307f\u306e\u6642\uff09<br \/>\n$ .\/script\/generate scaffold Todo title:string description:text due:datetime done:boolean<br \/>\n$ rake db:migrate<br \/>\n$ .\/script\/server<br \/>\n\u2466\u76f4\u63a5mysql\u3092\u89e6\u308b\u6642\u7528\u306b\u3001mysql\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u5909\u3048\u3066\u304a\u304f\u3002<br \/>\n# vi \/etc\/mysql\/my.cnf<br \/>\n##[mysqld]\u306e\u9805\u76ee\u3078\u8ffd\u52a0<br \/>\ncharacter-set-server = utf8<br \/>\ncollation-server = utf8_unicode_ci<br \/>\ninit-connect = &#8216;SET NAMES utf8&#8217;<br \/>\nskip-character-set-client-handshake<br \/>\n## [mysqldump]\u306e\u9805\u76ee\u3078\u8ffd\u52a0<br \/>\ndefault-character-set = utf8<br \/>\n##[mysql]\u306e\u9805\u76ee\u3078\u8ffd\u52a0<br \/>\ndefault-character-set = utf8<br \/>\n# \/etc\/init.d\/mysql restart<\/p>\n<p>\u4ee5\u4e0a\u306e\u53c2\u7167URL\u3002<br \/>\nhttp:\/\/blog.studiohff.net\/200903\/setup_rails_develop_environment_on_debian_lenny.html#install_mysql<br \/>\nhttp:\/\/reaching.dip.jp\/~chamaeleo\/spaghetti\/?p=426<br \/>\nhttp:\/\/ore.saizensen.net\/archives\/187<br \/>\nhttp:\/\/nyon2.net\/archives\/2008\/01\/ruby-on-rails-1.html<br \/>\nhttp:\/\/yukirin.dontexist.org\/archives\/540<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>[debian lenny\u3078rails\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb]&#8212;&#8211;2010\/06\/20(Sun) 12:44 apt\u3060\u3051\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u3002 apt-get install rails apt-get in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-923","post","type-post","status-publish","format-standard","hentry","category-kopipe"],"_links":{"self":[{"href":"https:\/\/pipopa.server-on.net\/index.php?rest_route=\/wp\/v2\/posts\/923","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pipopa.server-on.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pipopa.server-on.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pipopa.server-on.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pipopa.server-on.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=923"}],"version-history":[{"count":1,"href":"https:\/\/pipopa.server-on.net\/index.php?rest_route=\/wp\/v2\/posts\/923\/revisions"}],"predecessor-version":[{"id":924,"href":"https:\/\/pipopa.server-on.net\/index.php?rest_route=\/wp\/v2\/posts\/923\/revisions\/924"}],"wp:attachment":[{"href":"https:\/\/pipopa.server-on.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=923"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pipopa.server-on.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=923"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pipopa.server-on.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=923"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}