{"id":23,"date":"2014-01-16T18:03:03","date_gmt":"2014-01-16T09:03:03","guid":{"rendered":"http:\/\/lovelinux.mydns.jp\/?p=23"},"modified":"2014-03-21T18:06:32","modified_gmt":"2014-03-21T09:06:32","slug":"eclipse%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9fruby-on-rails%e3%81%ae%e3%83%87%e3%83%90%e3%83%83%e3%82%b0%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%89-%e3%80%9c-ubuntu%e7%b7%a8%ef%bc%88%e3%81%9d%e3%81%ae%ef%bc%92","status":"publish","type":"post","link":"https:\/\/lovelinux.mydns.jp\/?p=23","title":{"rendered":"Eclipse\u3092\u4f7f\u3063\u305fRuby on Rails\u306e\u30c7\u30d0\u30c3\u30b0\u74b0\u5883\u69cb\u7bc9 \u301c Ubuntu\u7de8\uff08\u305d\u306e\uff12\uff09"},"content":{"rendered":"<p>Ruby on Rails\u3000\u3092\u958b\u767a\u3059\u308b\u74b0\u5883\u3092 Ubuntu\u4e0a\u306b\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u30ac\u30a4\u30c0\u30f3\u30b9\u3067\u3059\u3002<\/p>\n<p>\u7279\u306bEclipse\u306b\u304a\u3051\u308b\u30b7\u30f3\u30b0\u30eb\u30b9\u30c6\u30c3\u30d7\u3000\u30c7\u30d0\u30c3\u30ae\u30f3\u30b0\u74b0\u5883\u306e\u69cb\u7bc9\u3092\u76ee\u6a19\u3068\u3057\u305f\u30ac\u30a4\u30c0\u30f3\u30b9\u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306f<a href=\"http:\/\/lovelinux.mydns.jp\/?p=10\" title=\"\u305d\u306e\uff11\">\u524d\u56de\u306e\u8a18\u4e8b<\/a>\u306e\u7d9a\u7de8\u3067\u3001Eclipse\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u305d\u3057\u3066\u3001\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u3092\u8a2d\u5b9a\u3057\u3066\u306e\u30b7\u30f3\u30b0\u30eb\u30b9\u30c6\u30c3\u30d7\u53ef\u80fd\u306a\u30c7\u30d0\u30c3\u30b0\u74b0\u5883\u306e\u69cb\u7bc9\u7de8\u3067\u3059\u3002<\/p>\n<h3>Eclipse\/JDK\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u3067\u306f\u3001Eclipse\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002Eclipse\u306b\u306fJDK\u304c\u5fc5\u8981\u306a\u306e\u3067\u3001JDK\u3068Eclipse\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3002<\/p>\n<p>JDK\u306f<a href=\"http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/index.html\">Oracle\u306e\u30b5\u30a4\u30c8<\/a>\u304b\u3089\u3001\u9069\u5207\u306aJDK\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>Eclipse\u306f<a href=\"http:\/\/www.eclipse.org\/downloads\/\">Eclipse\u306e\u30b5\u30a4\u30c8<\/a>\u304b\u3089\u3001\u9069\u5207\u306a\u3082\u306e\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002Eclipse Standard\u304c\u304a\u52e7\u3081\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u304a\u597d\u307f\u306e\u5834\u6240\u3067\u69cb\u3044\u307e\u305b\u3093\u304c\u3001JDK\u3068Eclipse\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306f \/usr\/java \u30d5\u30a9\u30eb\u30c0\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u4eee\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>[bash]<br \/>\n$ sudo mkdir \/usr\/java<br \/>\n$ sudo mv ~\/Downloads\/eclipse-standard-kepler-SR1-linux-gtk.tar.gz \/usr\/java<br \/>\n$ sudo  mv ~\/Downloads\/jdk-7u51-linux-i586.tar.gz \/usr\/java\/<\/p>\n<p>$ cd \/usr\/java<br \/>\n$ sudo tar xvzf jdk-7u51-linux-i586.tar.gz<br \/>\n$ sudo tar xvzf eclipse-standard-kepler-SR1-linux-gtk.tar.gz<\/p>\n<p>[\/bash]<\/p>\n<h3>\u74b0\u5883\u5909\u6570\u306e\u8a2d\u5b9a<\/h3>\n<p>\u3053\u308c\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u5b8c\u4e86\u3067\u3059\u304c\u3001\u3053\u306e\u307e\u307e\u3067\u306f\u74b0\u5883\u5909\u6570\u304c\u5b58\u5728\u3057\u306a\u3044\u305f\u3081\u3001Java\u304c\u5229\u7528\u51fa\u6765\u307e\u305b\u3093\u3002<br \/>\n~\/.bashrc\u3092\u7de8\u96c6\u3057\u3001\u4ee5\u4e0b\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<p>[bash]<br \/>\n$nano ~\/.bashrc<\/p>\n<p>#\u4ee5\u4e0b\u3092\u8ffd\u8a18<br \/>\nJAVA_HOME=\/usr\/java\/jdk1.7.0_45<br \/>\nPATH=$PATH:$JAVA_HOME\/bin<br \/>\nCLASSPATH=$JAVA_HOME\/jre\/lib\/rt.jar<\/p>\n<p>export JAVA_HOME PATH CLASSPATH<br \/>\n[\/bash]<\/p>\n<p>\u8ffd\u8a18\u304c\u7d42\u308f\u3063\u305f\u3089\u3001\u4e0a\u8a18\u306e\u8ffd\u8a18\u5185\u5bb9\u3092\u53cd\u6620\u3057\u307e\u3059\u3002\uff08\u6b21\u56de\u30ed\u30b0\u30a4\u30f3\u6642\u304b\u3089\u306f\u81ea\u52d5\u7684\u306b\u8aad\u307f\u8fbc\u307e\u308c\u307e\u3059\u306e\u3067\u3001\u3053\u306e\u64cd\u4f5c\u3092\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\uff09<br \/>\n\u305d\u306e\u5f8c\u3001\u74b0\u5883\u5909\u6570 JAVA_HOME\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>[bash]<br \/>\n$ source ~\/.bashrc<br \/>\n$ echo $JAVA_HOME<br \/>\n\/usr\/java\/jdk1.7.0_45<br \/>\n[\/bash]<\/p>\n<h3>Eclipse\u65e5\u672c\u8a9e\u5316<\/h3>\n<p>\u3064\u3044\u3067\u306bEclipse\u306e\u65e5\u672c\u8a9e\u5316\u3082\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>[bash]<br \/>\n$ wget http:\/\/sourceforge.jp\/projects\/mergedoc\/svn\/view\/trunk\/Pleiades\/build\/pleiades.zip?view=co&#038;root=mergedoc<\/p>\n<p>$ sudo mkdir \/usr\/java\/tmp<br \/>\n$ sudo mv pleiades.zip \/usr\/java\/tmp<br \/>\n$ cd \/usr\/java\/tmp<br \/>\n$ sudo unzip pleiades.zip<br \/>\n$ sudo cp pleiades\/features\/* \/usr\/java\/eclipse\/features\/ -R<br \/>\n$ sudo cp pleiades\/plugins\/* \/usr\/java\/eclipse\/plugins\/ -R<br \/>\n[\/bash]<\/p>\n<p>eclipse.ini\u306e\u7de8\u96c6<br \/>\n[bash]<br \/>\n$ sudo nano \/usr\/java\/eclipse\/eclipse.ini<br \/>\n\u6700\u5f8c\u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18<br \/>\n-javaagent:\/usr\/java\/eclipse\/plugins\/jp.sourceforge.mergedoc.pleiades\/pleiades.jar<br \/>\n[\/bash]<\/p>\n<p>\u3067\u306f\u3001eclipse\u3092\u8d77\u52d5\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u3081\u3067\u305f\u304f\u3001\u65e5\u672c\u8a9e\u5316\u3055\u308c\u305fEclipse\u304c\u8d77\u52d5\u3057\u3066\u3044\u305f\u3089OK\u3067\u3059\u3002<\/p>\n<p>[bash]<br \/>\n\/usr\/java\/eclipse\/eclipse &#038;<br \/>\n[\/bash]<\/p>\n<h3>Eclipse\u3001\u30e1\u30cb\u30e5\u30fc\u304c\u8868\u793a\u3055\u308c\u306a\u3044\u4e0d\u5177\u5408\u306e\u89e3\u6d88<\/h3>\n<p>\u305f\u3060\u3057\u3001\u3053\u3053\u3067\u554f\u984c\u304c\u3042\u308a\uff01\u3000Ubuntu\uff11\uff13\u7cfb\u3067\u306f\u4f55\u6545\u304bEclipse\u306e\u30e1\u30cb\u30e5\u30fc\u304c\u8868\u793a\u3055\u308c\u306a\u3044\u3068\u3044\u3046\u4e0d\u5177\u5408\u304c\u3042\u308b\u3002<br \/>\n\u56de\u907f\u3059\u308b\u305f\u3081\u306b\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb(eclipse-run)\u3092\u8ffd\u52a0\u3002\u305d\u3057\u3066\u3001\u8d77\u52d5\u306feclipse\u76f4\u63a5\u3067\u306f\u306a\u304f\u3001\u4f5c\u6210\u3057\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u30ad\u30c3\u30af\u3059\u308b\u3053\u3068\u306b\u3059\u308b\u3002<\/p>\n<p>[bash]<br \/>\n$ sudo nano \/usr\/java\/eclipse\/eclipse-run<\/p>\n<p>\u5185\u5bb9\u306f\u4ee5\u4e0b<br \/>\n#!\/bin\/bash<br \/>\nexport UBUNTU_MENUPROXY=0<br \/>\n$(dirname $0)\/eclipse<\/p>\n<p>\u7de8\u96c6\u304c\u304a\u308f\u3063\u305f\u3089<br \/>\n$ sudo chmod 755 \/usr\/java\/eclipse\/eclipse-run<\/p>\n<p>[\/bash]<\/p>\n<p>\u3067\u306f\u3001Eclipse\u3092\u8d77\u52d5\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>[bash]<br \/>\n$ \/usr\/java\/eclipse\/eclipse-run &#038;<\/p>\n<p>[\/bash]<\/p>\n<p>\u3081\u3067\u305f\u304f\u8d77\u52d5\u3057\u3001\u30e1\u30cb\u30e5\u30fc\u3082\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<h3>Aptana\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u30e1\u30cb\u30e5\u30fc\u3088\u308a\u3001\u30d8\u30eb\u30d7\uff1e\uff1e\u65b0\u898f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u9078\u629e<\/p>\n<p>http:\/\/download.aptana.com\/studio3\/plugin\/install<\/p>\n<p>\u8ffd\u52a0\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u540d\u524d\u306bAptana\u3001\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u4e0a\u8a18\u306eURL\u3092\u5165\u529b\u3057\u307e\u3059\u3002<br \/>\n\u30ea\u30b9\u30c8\u306b\u3000Aptana Studio 3\u3000\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/rails-2.png\"><img decoding=\"async\" src=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/rails-2.png\" alt=\"rails-2\" width=\"500\" class=\"alignnone size-medium wp-image-35\" srcset=\"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/rails-2.png 852w, https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/rails-2-300x256.png 300w\" sizes=\"(max-width: 852px) 100vw, 852px\" \/><\/a><\/p>\n<h3>Rails\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210<\/h3>\n<p>\u3067\u306f\u3001\u30c6\u30b9\u30c8\u7684\u306bRails\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u3063\u3066\u307f\u307e\u3059\u3002<br \/>\n\u30e1\u30cb\u30e5\u30fc\u3088\u308a\u3000\u30d5\u30a1\u30a4\u30eb\uff1e\uff1e\u65b0\u898f\uff1e\uff1e Rails\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u9078\u629e<br \/>\n\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\u306f\u300ctestproj\u300d\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30d5\u30eb\u30d1\u30b9\u306f ~\/workspace\/testproj\u3000\u3068\u4eee\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/\u30e1\u30cb\u30e5\u30fc_001.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/\u30e1\u30cb\u30e5\u30fc_001-300x228.png\" alt=\"\u30e1\u30cb\u30e5\u30fc_001\" width=\"300\" height=\"228\" class=\"alignnone size-medium wp-image-36\" srcset=\"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/\u30e1\u30cb\u30e5\u30fc_001-300x228.png 300w, https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/\u30e1\u30cb\u30e5\u30fc_001.png 714w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u3067\u306f\u3001Rails\u30a2\u30d7\u30ea\u3092\u8d77\u52d5\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>[bash]<br \/>\n$ cd ~\/workspace\/testproj<br \/>\n$ rails s<\/p>\n<p>\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8<br \/>\nCould not find a JavaScript runtime. See https:\/\/github.com\/sstephenson\/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)<\/p>\n<p>[\/bash]<\/p>\n<p>\u4e0a\u8a18\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u529b\u3055\u308c\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u305f\u3044\u3066\u3044\u306f\u4f55\u304b\u304c\u8db3\u308a\u306a\u3044\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u308c\u7684\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u3060\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001\u9069\u5b9c\u3001\u5fc5\u8981\u306a\u3082\u306e\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3084\u3063\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\nJavaScript Runtime\u304c\u306a\u3044\u3068\u306e\u30a8\u30e9\u30fc\u3067\u3042\u308c\u3070\u3001nodejs\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3067\u89e3\u6c7a\u3057\u307e\u3059\u3002<\/p>\n<p>[bash]<br \/>\n$ sudo apt-get install nodejs<br \/>\n[\/bash]<\/p>\n<p>\u4eca\u5f8c mysql\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3042\u308b\u306e\u306a\u3089<\/p>\n<p>[bash]<br \/>\n$ sudo apt-get install libmysqlclient-dev<\/p>\n<p>[\/bash]<\/p>\n<h3>\u52d5\u4f5c\u78ba\u8a8d<\/h3>\n<p>\u3067\u306f\u3001\u3044\u3088\u3044\u3088Rails\u30a2\u30d7\u30ea\u306e\u52d5\u4f5c\u78ba\u8a8d\u3067\u3059\u3002<br \/>\n\u518d\u5ea6\u3001rails\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<p>[bash]<br \/>\n$ rails s<\/p>\n<p>=> Booting WEBrick<br \/>\n=> Rails 4.0.0 application starting in development on http:\/\/0.0.0.0:3000<br \/>\n=> Run `rails server -h` for more startup options<br \/>\n=> Ctrl-C to shutdown server<br \/>\n[2014-01-16 16:59:59] INFO  WEBrick 1.3.1<br \/>\n[2014-01-16 16:59:59] INFO  ruby 2.0.0 (2013-11-22) [i686-linux]<br \/>\n[2014-01-16 16:59:59] INFO  WEBrick::HTTPServer#start: pid=19531 port=3000<\/p>\n<p>[\/bash]<\/p>\n<p>\u30d6\u30e9\u30a6\u30b6\u30fc\u3067\u3001 http:\/\/localhost:3000 \u3078\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<br \/>\n\u3081\u3067\u305f\u304fRails\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u305f\u3089\u3001Rails\u306e\u958b\u767a\u74b0\u5883\u304c\u6574\u3063\u305f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/rails-1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/rails-1-300x227.png\" alt=\"rails-1\" width=\"300\" height=\"227\" class=\"alignnone size-medium wp-image-19\" srcset=\"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/rails-1-300x227.png 300w, https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/rails-1.png 867w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Ctrl\u30ad\u30fc \uff0b\u3000C\u30ad\u30fc\u3000\u3067\u3001\u4e00\u65e6Rails\u30b5\u30fc\u30d0\u30fc\u3092\u505c\u6b62\u3057\u307e\u3059\u3002<\/p>\n<h3>Eclipse\u3067\u306e\u30c7\u30d0\u30c3\u30b0\u8a2d\u5b9a<\/h3>\n<p>\u3055\u3066\u3001\u3053\u3053\u304b\u3089\u304c\u3044\u3088\u3044\u3088\u672c\u756a\u3067\u3059\u3002<br \/>\nEclipse\u306e\u30e1\u30cb\u30e5\u30fc\u3088\u308a\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\uff1e\uff1e\u30d3\u30e5\u30fc\u306e\u8868\u793a\uff1e\uff1e\u305d\u306e\u4ed6 \u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/\u30e1\u30cb\u30e5\u30fc_005.png\"><img decoding=\"async\" src=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/\u30e1\u30cb\u30e5\u30fc_005.png\" alt=\"\u30e1\u30cb\u30e5\u30fc_005\" width=\"500\"  class=\"alignnone size-medium wp-image-40\" srcset=\"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/\u30e1\u30cb\u30e5\u30fc_005.png 1189w, https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/\u30e1\u30cb\u30e5\u30fc_005-300x122.png 300w, https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/\u30e1\u30cb\u30e5\u30fc_005-1024x419.png 1024w\" sizes=\"(max-width: 1189px) 100vw, 1189px\" \/><\/a><\/p>\n<p>\u8868\u793a\u3055\u308c\u305f\u30c0\u30a4\u30a2\u30ed\u30b0\u306e\u4e2d\u304b\u3089\u3001 Studio\uff1e\uff1e\u30b5\u30fc\u30d0\u30fc\u3000\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/\u30d3\u30e5\u30fc\u306e\u8868\u793a-_006.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/\u30d3\u30e5\u30fc\u306e\u8868\u793a-_006-300x288.png\" alt=\"\u30d3\u30e5\u30fc\u306e\u8868\u793a _006\" width=\"300\" height=\"288\" class=\"alignnone size-medium wp-image-43\" srcset=\"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/\u30d3\u30e5\u30fc\u306e\u8868\u793a-_006-300x288.png 300w, https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/\u30d3\u30e5\u30fc\u306e\u8868\u793a-_006.png 462w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Eclipse\u306e\u753b\u9762\u306e\u4e0b\u90e8\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b5\u30fc\u30d0\u30fc\u30d3\u30e5\u30fc\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u925b\u7b46\u30de\u30fc\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u8a2d\u5b9a\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/\u7bc4\u56f2\u3092\u9078\u629e_007-1.png\"><img decoding=\"async\" src=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/\u7bc4\u56f2\u3092\u9078\u629e_007-1.png\" alt=\"\u7bc4\u56f2\u3092\u9078\u629e_007\" width=\"500\" class=\"alignnone size-medium wp-image-45\" \/><\/a><\/p>\n<p>\u3053\u3053\u304c\u30dd\u30a4\u30f3\u30c8\u3067\u3059\uff01\uff01<br \/>\n<strong>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001Host\/IP\u304c\u3000\u300c0.0.0.0\u300d\u3068\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u3053\u3053\u3092\u300c127.0.0.1\u300d\u3068\u3057\u307e\u3059\u3002<\/strong><\/p>\n<p><a href=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/Edit-your-Rails-Server-settings.-_008.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/Edit-your-Rails-Server-settings.-_008-300x157.png\" alt=\"Edit your Rails Server settings. _008\" width=\"300\" height=\"157\" class=\"alignnone size-medium wp-image-44\" srcset=\"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/Edit-your-Rails-Server-settings.-_008-300x157.png 300w, https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/Edit-your-Rails-Server-settings.-_008.png 613w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u30c7\u30d0\u30c3\u30b0\u30de\u30fc\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001Rails\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/\u7bc4\u56f2\u3092\u9078\u629e_007-2.png\"><img decoding=\"async\" src=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/\u7bc4\u56f2\u3092\u9078\u629e_007-2.png\" alt=\"\u7bc4\u56f2\u3092\u9078\u629e_007\" width=\"500\" class=\"alignnone size-medium wp-image-45\" \/><\/a><\/p>\n<p>\u30a8\u30e9\u30fc\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\nRuby program \/home\/xxx\/workspace\/testproj\/script\/rails does not exist.<\/p>\n<p>\u8a73\u3057\u3044\u539f\u56e0\u306f\u5206\u304b\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u3059\u304c\u3001Rails3\u3068Rails\uff14\u3067\u30d5\u30a9\u30eb\u30c0\u69cb\u9020\u304c\u5909\u308f\u3063\u305f\u305f\u3081\u306b\u8d77\u304d\u3066\u3044\u308b\u30a8\u30e9\u30fc\u306e\u3088\u3046\u306a\u6c17\u304c\u3057\u307e\u3059\u3002<\/p>\n<p>[bash]<br \/>\n$ cd ~\/workspace\/testproj<br \/>\n$ cp bin\/ script -R<br \/>\n[\/bash]<\/p>\n<p>\u3064\u3044\u3067\u3067\u3059\u306e\u3067\u3001Eclipse\u306e\u30c7\u30d0\u30c3\u30b0\u6642\u306b\u5fc5\u8981\u306aGem\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n[bash]<br \/>\n$ gem install ruby-debug-ide<br \/>\n[\/bash]<\/p>\n<h3>\u30b5\u30f3\u30d7\u30eb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u6210<\/h3>\n<p>[bash]<br \/>\n$ rails generate scaffold Sample name:string email:string<br \/>\n$ rake db:migrate<br \/>\n[\/bash]<\/p>\n<h3>\u30b5\u30f3\u30d7\u30eb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u52d5\u4f5c\u78ba\u8a8d<\/h3>\n<p>Eclipse\u306e\u30b5\u30fc\u30d0\u30fc\u30d3\u30e5\u30fc\u304b\u3089\u3000\u30c7\u30d0\u30c3\u30b0\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001Rails\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<br \/>\n\u30d6\u30e9\u30a6\u30b6\u30fc\u3067 localhost:3000\/samples \u3092\u8868\u793a<br \/>\n\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u308c\u3070OK!<\/p>\n<p><a href=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/Testproj-Chromium_010.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/Testproj-Chromium_010-300x208.png\" alt=\"Testproj - Chromium_010\" width=\"300\" height=\"208\" class=\"alignnone size-medium wp-image-53\" srcset=\"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/Testproj-Chromium_010-300x208.png 300w, https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/Testproj-Chromium_010.png 718w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h3>\u3044\u3088\u3044\u3088\u30c7\u30d0\u30c3\u30b0\u51fa\u6765\u308b\u304b\u78ba\u8a8d<\/h3>\n<p>\u3067\u306f\u3001Eclipse\u306b\u623b\u3063\u3066\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u3088\u308a<br \/>\napp>>controllers>>samples_controller.rb \u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n<p>[ruby]<br \/>\n  def index<br \/>\n    @samples = Sample.all<br \/>\n  end<br \/>\n[\/ruby]<\/p>\n<p>\u4e0a\u8a18\u306e @samples = Sample.all<br \/>\n\u306e\u884c\u306b\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/\u30c7\u30d0\u30c3\u30b0-testproj-app-controllers-samples_controller.rb-Eclipse-\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0-_009.png\"><img decoding=\"async\" src=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/\u30c7\u30d0\u30c3\u30b0-testproj-app-controllers-samples_controller.rb-Eclipse-\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0-_009.png\" alt=\"\u30c7\u30d0\u30c3\u30b0 - testproj-app-controllers-samples_controller.rb - Eclipse \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0 _009\" width=\"500\" class=\"alignnone size-medium wp-image-52\" srcset=\"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/\u30c7\u30d0\u30c3\u30b0-testproj-app-controllers-samples_controller.rb-Eclipse-\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0-_009.png 1004w, https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/\u30c7\u30d0\u30c3\u30b0-testproj-app-controllers-samples_controller.rb-Eclipse-\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0-_009-300x222.png 300w\" sizes=\"(max-width: 1004px) 100vw, 1004px\" \/><\/a><\/p>\n<p>\u5148\u307b\u3069\u306e\u30da\u30fc\u30b8\u3092\u30d6\u30e9\u30a6\u30b6\u30fc\u3067\u518d\u5ea6\u958b\u304d\u307e\u3059\u3002\uff08\u3082\u3057\u304f\u306f\u30ea\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002\uff09<br \/>\nEclipse\u306e\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u304c\u30cf\u30a4\u30e9\u30a4\u30c8\u3055\u308c\u3001\u30c7\u30d0\u30c3\u30b0\u5f85\u3061\u72b6\u614b\u306b\u306a\u308c\u3070\u3001\u3081\u3067\u305f\u304f\u30c7\u30d0\u30c3\u30b0\u74b0\u5883\u69cb\u7bc9\u6210\u529f\u3067\u3059\uff01<\/p>\n<p>\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ruby on Rails\u3000\u3092\u958b\u767a\u3059\u308b\u74b0\u5883\u3092 Ubuntu\u4e0a\u306b\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u30ac\u30a4\u30c0\u30f3\u30b9\u3067\u3059\u3002 \u7279\u306bEclipse\u306b\u304a\u3051\u308b\u30b7\u30f3\u30b0\u30eb\u30b9\u30c6\u30c3\u30d7\u3000\u30c7\u30d0\u30c3\u30ae\u30f3\u30b0\u74b0\u5883\u306e\u69cb\u7bc9\u3092\u76ee\u6a19\u3068\u3057\u305f\u30ac\u30a4\u30c0\u30f3\u30b9\u3067\u3059\u3002 \u4eca\u56de\u306f\u524d\u56de\u306e\u8a18\u4e8b\u306e\u7d9a\u7de8\u3067\u3001Eclipse\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u305d\u3057\u3066\u3001\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u3092\u8a2d\u5b9a\u3057\u3066\u306e\u30b7\u30f3\u30b0\u30eb\u30b9\u30c6\u30c3\u30d7\u53ef\u80fd\u306a\u30c7\u30d0\u30c3\u30b0\u74b0\u5883\u306e\u69cb\u7bc9\u7de8\u3067\u3059\u3002 Eclipse\/JDK\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u3067\u306f\u3001Eclipse\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002Eclipse\u306b\u306fJDK\u304c\u5fc5\u8981\u306a\u306e\u3067\u3001JDK\u3068Eclipse\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3002 JDK\u306fOracle\u306e\u30b5\u30a4\u30c8\u304b\u3089\u3001\u9069\u5207\u306aJDK\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002 Eclipse\u306fEclipse\u306e\u30b5\u30a4\u30c8\u304b\u3089\u3001\u9069\u5207\u306a\u3082\u306e\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002Eclipse Standard\u304c\u304a\u52e7\u3081\u3067\u3059\u3002 \u4ee5\u4e0b\u306f\u304a\u597d\u307f\u306e\u5834\u6240\u3067\u69cb\u3044\u307e\u305b\u3093\u304c\u3001JDK\u3068Eclipse\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002 \u4eca\u56de\u306f \/usr\/java \u30d5\u30a9\u30eb\u30c0\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u4eee\u5b9a\u3057\u307e\u3059\u3002 [bash] $ sudo mkdir \/usr\/java $ sudo mv ~\/Downloads\/eclipse-standard-kepler-SR1-linux-gtk.tar.gz \/usr\/java $ sudo mv ~\/Downloads\/jdk-7u51-linux-i586.tar.gz \/usr\/java\/ $ cd \/usr\/java $ sudo tar xvzf jdk-7u51-linux-i586.tar.gz $ sudo tar xvzf eclipse-standard-kepler-SR1-linux-gtk.tar.gz [\/bash] \u74b0\u5883\u5909\u6570\u306e\u8a2d\u5b9a \u3053\u308c\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u5b8c\u4e86\u3067\u3059\u304c\u3001\u3053\u306e\u307e\u307e\u3067\u306f\u74b0\u5883\u5909\u6570\u304c\u5b58\u5728\u3057\u306a\u3044\u305f\u3081\u3001Java\u304c\u5229\u7528\u51fa\u6765\u307e\u305b\u3093\u3002 ~\/.bashrc\u3092\u7de8\u96c6\u3057\u3001\u4ee5\u4e0b\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002 [bash] $nano ~\/.bashrc #\u4ee5\u4e0b\u3092\u8ffd\u8a18 JAVA_HOME=\/usr\/java\/jdk1.7.0_45 PATH=$PATH:$JAVA_HOME\/bin CLASSPATH=$JAVA_HOME\/jre\/lib\/rt.jar export JAVA_HOME PATH CLASSPATH [\/bash] \u8ffd\u8a18\u304c\u7d42\u308f\u3063\u305f\u3089\u3001\u4e0a\u8a18\u306e\u8ffd\u8a18\u5185\u5bb9\u3092\u53cd\u6620\u3057\u307e\u3059\u3002\uff08\u6b21\u56de\u30ed\u30b0\u30a4\u30f3\u6642\u304b\u3089\u306f\u81ea\u52d5\u7684\u306b\u8aad\u307f\u8fbc\u307e\u308c\u307e\u3059\u306e\u3067\u3001\u3053\u306e\u64cd\u4f5c\u3092\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\uff09 \u305d\u306e\u5f8c\u3001\u74b0\u5883\u5909\u6570 JAVA_HOME\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002 [bash] $ source ~\/.bashrc $ echo $JAVA_HOME \/usr\/java\/jdk1.7.0_45 [\/bash] Eclipse\u65e5\u672c\u8a9e\u5316 \u3064\u3044\u3067\u306bEclipse\u306e\u65e5\u672c\u8a9e\u5316\u3082\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002 [bash] $ wget http:\/\/sourceforge.jp\/projects\/mergedoc\/svn\/view\/trunk\/Pleiades\/build\/pleiades.zip?view=co&#038;root=mergedoc $ sudo mkdir \/usr\/java\/tmp $ sudo mv pleiades.zip \/usr\/java\/tmp $ cd \/usr\/java\/tmp $ sudo unzip pleiades.zip $ sudo cp pleiades\/features\/* \/usr\/java\/eclipse\/features\/ -R $ sudo cp pleiades\/plugins\/* \/usr\/java\/eclipse\/plugins\/ -R [\/bash] eclipse.ini\u306e\u7de8\u96c6 [bash] $ sudo nano \/usr\/java\/eclipse\/eclipse.ini \u6700\u5f8c\u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18 -javaagent:\/usr\/java\/eclipse\/plugins\/jp.sourceforge.mergedoc.pleiades\/pleiades.jar [\/bash] \u3067\u306f\u3001eclipse\u3092\u8d77\u52d5\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002 \u3081\u3067\u305f\u304f\u3001\u65e5\u672c\u8a9e\u5316\u3055\u308c\u305fEclipse\u304c\u8d77\u52d5\u3057\u3066\u3044\u305f\u3089OK\u3067\u3059\u3002 [bash] \/usr\/java\/eclipse\/eclipse &#038; [\/bash] Eclipse\u3001\u30e1\u30cb\u30e5\u30fc\u304c\u8868\u793a\u3055\u308c\u306a\u3044\u4e0d\u5177\u5408\u306e\u89e3\u6d88 \u305f\u3060\u3057\u3001\u3053\u3053\u3067\u554f\u984c\u304c\u3042\u308a\uff01\u3000Ubuntu\uff11\uff13\u7cfb\u3067\u306f\u4f55\u6545\u304bEclipse\u306e\u30e1\u30cb\u30e5\u30fc\u304c\u8868\u793a\u3055\u308c\u306a\u3044\u3068\u3044\u3046\u4e0d\u5177\u5408\u304c\u3042\u308b\u3002 \u56de\u907f\u3059\u308b\u305f\u3081\u306b\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb(eclipse-run)\u3092\u8ffd\u52a0\u3002\u305d\u3057\u3066\u3001\u8d77\u52d5\u306feclipse\u76f4\u63a5\u3067\u306f\u306a\u304f\u3001\u4f5c\u6210\u3057\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u30ad\u30c3\u30af\u3059\u308b\u3053\u3068\u306b\u3059\u308b\u3002 [bash] $ sudo nano \/usr\/java\/eclipse\/eclipse-run \u5185\u5bb9\u306f\u4ee5\u4e0b #!\/bin\/bash export UBUNTU_MENUPROXY=0 $(dirname $0)\/eclipse \u7de8\u96c6\u304c\u304a\u308f\u3063\u305f\u3089 $ sudo chmod 755 \/usr\/java\/eclipse\/eclipse-run [\/bash] \u3067\u306f\u3001Eclipse\u3092\u8d77\u52d5\u3057\u3066\u307f\u307e\u3059\u3002 [bash] $ \/usr\/java\/eclipse\/eclipse-run &#038; [\/bash] \u3081\u3067\u305f\u304f\u8d77\u52d5\u3057\u3001\u30e1\u30cb\u30e5\u30fc\u3082\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308c\u3070OK\u3067\u3059\u3002 Aptana\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u30e1\u30cb\u30e5\u30fc\u3088\u308a\u3001\u30d8\u30eb\u30d7\uff1e\uff1e\u65b0\u898f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u9078\u629e http:\/\/download.aptana.com\/studio3\/plugin\/install \u8ffd\u52a0\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u540d\u524d\u306bAptana\u3001\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u4e0a\u8a18\u306eURL\u3092\u5165\u529b\u3057\u307e\u3059\u3002 \u30ea\u30b9\u30c8\u306b\u3000Aptana Studio 3\u3000\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3044\u307e\u3059\u3002 Rails\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210 \u3067\u306f\u3001\u30c6\u30b9\u30c8\u7684\u306bRails\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u3063\u3066\u307f\u307e\u3059\u3002 \u30e1\u30cb\u30e5\u30fc\u3088\u308a\u3000\u30d5\u30a1\u30a4\u30eb\uff1e\uff1e\u65b0\u898f\uff1e\uff1e Rails\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u9078\u629e \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\u306f\u300ctestproj\u300d\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30d5\u30eb\u30d1\u30b9\u306f ~\/workspace\/testproj\u3000\u3068\u4eee\u5b9a\u3057\u307e\u3059\u3002 \u3067\u306f\u3001Rails\u30a2\u30d7\u30ea\u3092\u8d77\u52d5\u3057\u3066\u307f\u307e\u3059\u3002 [bash] $ cd ~\/workspace\/testproj $ rails s \u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8 Could not find a JavaScript runtime. See https:\/\/github.com\/sstephenson\/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable) [\/bash] \u4e0a\u8a18\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u529b\u3055\u308c\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u305f\u3044\u3066\u3044\u306f\u4f55\u304b\u304c\u8db3\u308a\u306a\u3044\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u308c\u7684\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u3060\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001\u9069\u5b9c\u3001\u5fc5\u8981\u306a\u3082\u306e\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3084\u3063\u3066\u304f\u3060\u3055\u3044\u3002 JavaScript Runtime\u304c\u306a\u3044\u3068\u306e\u30a8\u30e9\u30fc\u3067\u3042\u308c\u3070\u3001nodejs\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3067\u89e3\u6c7a\u3057\u307e\u3059\u3002 [bash] $ sudo apt-get install nodejs [\/bash] \u4eca\u5f8c mysql\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3042\u308b\u306e\u306a\u3089 [bash] $ sudo apt-get install libmysqlclient-dev [\/bash] \u52d5\u4f5c\u78ba\u8a8d \u3067\u306f\u3001\u3044\u3088\u3044\u3088Rails\u30a2\u30d7\u30ea\u306e\u52d5\u4f5c\u78ba\u8a8d\u3067\u3059\u3002 \u518d\u5ea6\u3001rails\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002 [bash] $ rails s => Booting WEBrick => Rails 4.0.0 application starting in development on http:\/\/0.0.0.0:3000 => Run `rails server -h` for more startup options => Ctrl-C to shutdown server [2014-01-16 16:59:59] INFO WEBrick 1.3.1 [2014-01-16 16:59:59] INFO ruby 2.0.0 (2013-11-22) [i686-linux] [2014-01-16 16:59:59] INFO WEBrick::HTTPServer#start: pid=19531 port=3000 [\/bash] \u30d6\u30e9\u30a6\u30b6\u30fc\u3067\u3001 http:\/\/localhost:3000 \u3078\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002 \u3081\u3067\u305f\u304fRails\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u305f\u3089\u3001Rails\u306e\u958b\u767a\u74b0\u5883\u304c\u6574\u3063\u305f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002 Ctrl\u30ad\u30fc \uff0b\u3000C\u30ad\u30fc\u3000\u3067\u3001\u4e00\u65e6Rails\u30b5\u30fc\u30d0\u30fc\u3092\u505c\u6b62\u3057\u307e\u3059\u3002 Eclipse\u3067\u306e\u30c7\u30d0\u30c3\u30b0\u8a2d\u5b9a \u3055\u3066\u3001\u3053\u3053\u304b\u3089\u304c\u3044\u3088\u3044\u3088\u672c\u756a\u3067\u3059\u3002 Eclipse\u306e\u30e1\u30cb\u30e5\u30fc\u3088\u308a\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\uff1e\uff1e\u30d3\u30e5\u30fc\u306e\u8868\u793a\uff1e\uff1e\u305d\u306e\u4ed6 \u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002 \u8868\u793a\u3055\u308c\u305f\u30c0\u30a4\u30a2\u30ed\u30b0\u306e\u4e2d\u304b\u3089\u3001 Studio\uff1e\uff1e\u30b5\u30fc\u30d0\u30fc\u3000\u3092\u9078\u629e\u3057\u307e\u3059\u3002 Eclipse\u306e\u753b\u9762\u306e\u4e0b\u90e8\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b5\u30fc\u30d0\u30fc\u30d3\u30e5\u30fc\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u3068\u601d\u3044\u307e\u3059\u3002 \u925b\u7b46\u30de\u30fc\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u8a2d\u5b9a\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002 \u3053\u3053\u304c\u30dd\u30a4\u30f3\u30c8\u3067\u3059\uff01\uff01 \u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001Host\/IP\u304c\u3000\u300c0.0.0.0\u300d\u3068\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u3053\u3053\u3092\u300c127.0.0.1\u300d\u3068\u3057\u307e\u3059\u3002 \u30c7\u30d0\u30c3\u30b0\u30de\u30fc\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001Rails\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002 \u30a8\u30e9\u30fc\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u3068\u601d\u3044\u307e\u3059\u3002 Ruby program \/home\/xxx\/workspace\/testproj\/script\/rails does not exist. \u8a73\u3057\u3044\u539f\u56e0\u306f\u5206\u304b\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u3059\u304c\u3001Rails3\u3068Rails\uff14\u3067\u30d5\u30a9\u30eb\u30c0\u69cb\u9020\u304c\u5909\u308f\u3063\u305f\u305f\u3081\u306b\u8d77\u304d\u3066\u3044\u308b\u30a8\u30e9\u30fc\u306e\u3088\u3046\u306a\u6c17\u304c\u3057\u307e\u3059\u3002 [bash] $ cd ~\/workspace\/testproj $ cp bin\/ script -R [\/bash] \u3064\u3044\u3067\u3067\u3059\u306e\u3067\u3001Eclipse\u306e\u30c7\u30d0\u30c3\u30b0\u6642\u306b\u5fc5\u8981\u306aGem\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u307e\u3059\u3002 [bash] $ gem install ruby-debug-ide [\/bash]&#8230;<\/p>\n","protected":false},"author":1,"featured_media":403,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[6,2],"tags":[31,71,19],"class_list":{"0":"post-23","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-rails","8":"category-2","9":"tag-eclipse","10":"tag-rails","11":"tag-ubuntu"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/23","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=23"}],"version-history":[{"count":26,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/23\/revisions"}],"predecessor-version":[{"id":615,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/23\/revisions\/615"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/media\/403"}],"wp:attachment":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}