環境構築だよーん

c:\Ruby187>gem install json
ERROR:  Error installing json:
        The 'json' native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'

あれ?

c:\Ruby187>cd DevKit

c:\Ruby187\DevKit>ruby dk.rb init
[INFO] found RubyInstaller v1.8.7 at C:/Ruby187

Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.

c:\Ruby187\DevKit>ruby dk.rb review
Based upon the settings in the 'config.yml' file generated
from running 'ruby dk.rb init' and any of your customizations,
DevKit functionality will be injected into the following Rubies
when you run 'ruby dk.rb install'.

C:/Ruby187

c:\Ruby187\DevKit>ruby dk.rb install
[INFO] Updating convenience notice gem override for 'C:/Ruby187'
[INFO] Installing 'C:/Ruby187/lib/ruby/site_ruby/devkit.rb'
  • もういちどjsonをインストール
c:\Ruby187>gem install json
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
Successfully installed json-1.6.6
1 gem installed
Installing ri documentation for json-1.6.6...
Installing RDoc documentation for json-1.6.6...
c:\Ruby187>gem install mongrel
Fetching: gem_plugin-0.2.3.gem (100%)
Fetching: cgi_multipart_eof_fix-2.5.0.gem (100%)
Fetching: mongrel-1.1.5-x86-mingw32.gem (100%)
Successfully installed gem_plugin-0.2.3
Successfully installed cgi_multipart_eof_fix-2.5.0
Successfully installed mongrel-1.1.5-x86-mingw32
3 gems installed
Installing ri documentation for gem_plugin-0.2.3...
Installing ri documentation for cgi_multipart_eof_fix-2.5.0...
Installing ri documentation for mongrel-1.1.5-x86-mingw32...
Installing RDoc documentation for gem_plugin-0.2.3...
Installing RDoc documentation for cgi_multipart_eof_fix-2.5.0...
Installing RDoc documentation for mongrel-1.1.5-x86-mingw32...

いつの間にか5.5になっている。

  • スタート>すべてのプログラム>MySQL Installer>MySQL Installerで5.1を選択する
mysql -u root -p
create database hoge_dev default character set utf8;

エラー

Aptanaでプロジェクトを作ったらでた

kenmituo@hoge ~/My Documents/Aptana Studio 3 Workspace/test 
$ rails .
c:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/depende
ncies.rb:55: uninitialized constant ActiveSupport::Dependencies::Mutex (NameErro
r)
        from c:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
`gem_original_require'
        from c:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
`require'
        from c:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_su
pport.rb:56
        from c:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
`gem_original_require'
        from c:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
`require'
        from c:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/bin/../lib/rails_gene
rator.rb:28
        from c:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
`gem_original_require'
        from c:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
`require'
        from c:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/bin/rails:14
        from c:/Ruby187/bin/rails:19:in `load'
        from c:/Ruby187/bin/rails:19

gemをダウングレード

c:\Ruby187>gem -v
1.8.16

c:\Ruby187>gem update --system 1.3.7
Updating rubygems-update
Fetching: rubygems-update-1.3.7.gem (100%)
Successfully installed rubygems-update-1.3.7
Installing RubyGems 1.3.7
RubyGems 1.3.7 installed

・ソ=== 1.3.7 / 2010-05-13

NOTE:

http://rubygems.org is now the default source for downloading gems.

You may have sources set via ~/.gemrc, so you should replace
http://gems.rubyforge.org with http://rubygems.org

http://gems.rubyforge.org will continue to work for the forseeable future.

New features:

* `gem` commands
  * `gem install` and `gem fetch` now report alternate platforms when a
    matching one couldn't be found.
  * `gem contents` --prefix is now the default as specified in --help.  Bug
    #27211 by Mamoru Tasaka.
  * `gem fetch` can fetch of old versions again.  Bug #27960 by Eric Hankins.
  * `gem query` and friends output now lists platforms.  Bug #27856 by Greg
    Hazel.
  * `gem server` now allows specification of multiple gem dirs for
    documentation.  Bug #27573 by Yuki Sonoda.
  * `gem unpack` can unpack gems again.  Bug #27872 by Timothy Jones.
  * `gem unpack` now unpacks remote gems.
  * --user-install is no longer the default.  If you really liked it, see
    Gem::ConfigFile to learn how to set it by default.  (This change was made
    in 1.3.6)
* RubyGems now has platform support for IronRuby.  Patch #27951 by Will Green.

Bug fixes:

* Require rubygems/custom_require if --disable-gem was set.  Bug #27700 by
  Roger Pack.
* RubyGems now protects against exceptions being raised by plugins.
* rubygems/builder now requires user_interaction.  Ruby Bug #1040 by Phillip
  Toland.
* Gem::Dependency support #version_requirements= with a warning.  Fix for old
  Rails versions.  Bug #27868 by Wei Jen Lu.
* Gem::PackageTask depends on the package dir like the other rake package
  tasks so dependencies can be hooked up correctly.


------------------------------------------------------------------------------

RubyGems installed the following executables:
        C:/Ruby187/bin/gem

RubyGems system software updated

c:\Ruby187>

Aptana>ファイル>新規>Railsプロジェクト
動いた!!!

  • willpaginateのインストール
c:\Ruby187>gem install mislav-will_paginate "~>2.2.3" --source http://gems.githu
b.com
Successfully installed mislav-will_paginate-2.3.11
ERROR:  Could not find a valid gem '~>2.2.3' (>= 0) in any repository
1 gem installed
Installing ri documentation for mislav-will_paginate-2.3.11...
Installing RDoc documentation for mislav-will_paginate-2.3.11...

 

Subversion

ヘルプ>新規ソフトウェアのインストール
作業対象>追加

作成した奴を選択すると3つ出てくる。

次へ次へ

やっとかな?

Aptana>ウィンドウ>ビューの表示>その他>SVNSVNリポジトリ
ウィンドウが表示される
「新規リポジトリー・ロケーション」

なぜかSVNが2つある。
Aptana3にはプラグインマネージャーがないので大いに悩む。「すでにインストールされている」から「Aptana Studio 3インストール詳細」が起動する!
または
ヘルプ>Aptana Studio 3について>インストール詳細

わけもわからずに入れたeclipsのやつを削除する

リポジトリの登録

ウィンドウ>ビューの表示>その他>SVNSVNリポジトリ
SVNリポジトリの追加