野沢温泉まで来てやることでもないけど、ある意味晴耕雨読的な感じでw
Rubyのインストール
こちらでインストーラをダウンロードして、Ruby 1.9.3-p194をインストール。
>ruby -v ruby 1.9.3p194 (2012-04-20) [i386-mingw32]
gemを最新化
1.8.23→1.8.24へ。
>gem -v 1.8.23 >gem update --system Updating rubygems-update Fetching: rubygems-update-1.8.24.gem (100%) Successfully installed rubygems-update-1.8.24 Installing RubyGems 1.8.24 RubyGems 1.8.24 installed unable to convert U+0160 from UTF-8 to Windows-31J for History.txt, skipping unable to convert U+0160 from UTF-8 to Windows-31J for History.txt, skipping == 1.8.24 / 2012-04-27 * 1 bug fix: * Install the .pem files properly. Fixes #320 * Remove OpenSSL dependency from the http code path ------------------------------------------------------------------------------ RubyGems installed the following executables: C:/Ruby193/bin/gem RubyGems system software updated
Railsのインストール
先にrdocをインストール。って、あるバージョン(1.9.2)以降でRubyというかgemに標準で入ってるって認識でいいのかな???
>gem install rdoc Fetching: rdoc-3.12.gem (100%) Depending on your version of ruby, you may need to install ruby rdoc/ri data: <= 1.8.6 : unsupported = 1.8.7 : gem install rdoc-data; rdoc-data --install = 1.9.1 : gem install rdoc-data; rdoc-data --install >= 1.9.2 : nothing to do! Yay! Successfully installed rdoc-3.12 1 gem installed Installing ri documentation for rdoc-3.12... unable to convert U+00A9 from UTF-8 to Windows-31J for lib/rdoc/text.rb, skipping unable to convert "\xD0" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to Windows-31J for History.rdoc, skipping Installing RDoc documentation for rdoc-3.12... unable to convert U+00A9 from UTF-8 to Windows-31J for lib/rdoc/text.rb, skipping unable to convert "\xD0" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to Windows-31J for History.rdoc, skipping
それからRailsのインストール。
1回目のインストールでエラーが発生したようなので、2回実行した。
>gem install rails Fetching: i18n-0.6.0.gem (100%) Fetching: multi_json-1.3.4.gem (100%) Fetching: activesupport-3.2.3.gem (100%) Fetching: builder-3.0.0.gem (100%) Fetching: activemodel-3.2.3.gem (100%) Fetching: rack-1.4.1.gem (100%) Fetching: rack-cache-1.2.gem (100%) Fetching: rack-test-0.6.1.gem (100%) Fetching: journey-1.0.3.gem (100%) Fetching: hike-1.2.1.gem (100%) Fetching: tilt-1.3.3.gem (100%) Fetching: sprockets-2.1.3.gem (100%) Fetching: erubis-2.7.0.gem (100%) Fetching: actionpack-3.2.3.gem (100%) Fetching: arel-3.0.2.gem (100%) Fetching: tzinfo-0.3.33.gem (100%) Fetching: activerecord-3.2.3.gem ( 32%)ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) too many connection resets (http://production.cf.rubygems.org/gems/activerecord-3.2.3.gem) >gem install rails Fetching: activerecord-3.2.3.gem (100%) Fetching: activeresource-3.2.3.gem (100%) Fetching: mime-types-1.18.gem (100%) Fetching: polyglot-0.3.3.gem (100%) Fetching: treetop-1.4.10.gem (100%) Fetching: mail-2.4.4.gem (100%) Fetching: actionmailer-3.2.3.gem (100%) Fetching: thor-0.14.6.gem (100%) Fetching: rack-ssl-1.3.2.gem (100%) Fetching: railties-3.2.3.gem (100%)Fetching: railties-3.2.3.gem Fetching: bundler-1.1.3.gem (100%) Fetching: rails-3.2.3.gem (100%) Successfully installed activerecord-3.2.3 Successfully installed activeresource-3.2.3 Successfully installed mime-types-1.18 Successfully installed polyglot-0.3.3 Successfully installed treetop-1.4.10 Successfully installed mail-2.4.4 Successfully installed actionmailer-3.2.3 Successfully installed thor-0.14.6 Successfully installed rack-ssl-1.3.2 Successfully installed railties-3.2.3 Successfully installed bundler-1.1.3 Successfully installed rails-3.2.3 12 gems installed Installing ri documentation for activerecord-3.2.3... Installing ri documentation for activeresource-3.2.3... Installing ri documentation for mime-types-1.18... unable to convert "\xE2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to Windows-31J for Licence.rdoc, skipping Installing ri documentation for polyglot-0.3.3... Installing ri documentation for treetop-1.4.10... Installing ri documentation for mail-2.4.4... unable to convert U+00E9 from UTF-8 to Windows-31J for lib/mail/multibyte/chars.rb, skipping Installing ri documentation for actionmailer-3.2.3... Installing ri documentation for thor-0.14.6... Installing ri documentation for rack-ssl-1.3.2... Installing ri documentation for railties-3.2.3... Installing ri documentation for bundler-1.1.3... Installing ri documentation for rails-3.2.3... Installing RDoc documentation for activerecord-3.2.3... Installing RDoc documentation for activeresource-3.2.3... Installing RDoc documentation for mime-types-1.18... unable to convert "\xE2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to Windows-31J for Licence.rdoc, skipping Installing RDoc documentation for polyglot-0.3.3... Installing RDoc documentation for treetop-1.4.10... Installing RDoc documentation for mail-2.4.4... unable to convert U+00E9 from UTF-8 to Windows-31J for lib/mail/multibyte/chars.rb, skipping Installing RDoc documentation for actionmailer-3.2.3... Installing RDoc documentation for thor-0.14.6... Installing RDoc documentation for rack-ssl-1.3.2... Installing RDoc documentation for railties-3.2.3... Installing RDoc documentation for bundler-1.1.3... Installing RDoc documentation for rails-3.2.3...
インストールされたバージョンを確認。
>gem search --local *** LOCAL GEMS *** actionmailer (3.2.3) actionpack (3.2.3) activemodel (3.2.3) activerecord (3.2.3) activeresource (3.2.3) activesupport (3.2.3) arel (3.0.2) bigdecimal (1.1.0) builder (3.0.0) bundler (1.1.3) erubis (2.7.0) hike (1.2.1) i18n (0.6.0) io-console (0.3) journey (1.0.3) json (1.5.4) mail (2.4.4) mime-types (1.18) minitest (2.5.1) multi_json (1.3.4) polyglot (0.3.3) rack (1.4.1) rack-cache (1.2) rack-ssl (1.3.2) rack-test (0.6.1) rails (3.2.3) railties (3.2.3) rake (0.9.2.2) rdoc (3.12, 3.9.4) rubygems-update (1.8.24) sprockets (2.1.3) thor (0.14.6) tilt (1.3.3) treetop (1.4.10) tzinfo (0.3.33)
Eclipseのプラグインをインストール
こちらのダウンロードサイトからインストール。
http://download.aptana.com/studio3/plugin/install
と思ったけど、2回ともエラーが出てしまう。。。何が悪いんだろ?
"Read timed out"って、スマフォのWiFiテザリングで遅いからなのか?ってもそこまで遅くないような。。。
インストールする項目の収集中にエラーが発生しました session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). http://download.aptana.com/studio3/plugin/install/plugins/com.aptana.ide.libraries.subscription_2.0.2.1330733779.jar のリポジトリーを読み取ることができません。 Read timed out http://download.aptana.com/studio3/plugin/install/plugins/com.aptana.portablegit.win32_3.0.0.1329178773.jar のリポジトリーを読み取ることができません。 Read timed out http://download.aptana.com/studio3/plugin/install/plugins/com.aptana.syncing.ui_3.0.3.1333512862.jar のリポジトリーを読み取ることができません。 Read timed out http://download.aptana.com/studio3/plugin/install/plugins/org.jruby_1.6.4.1331328108.jar のリポジトリーを読み取ることができません。 Read timed out http://download.aptana.com/studio3/plugin/install/plugins/org.python.pydev.jython_2.5.0.2012031515.jar のリポジトリーを読み取ることができません。 Read timed out