クフでダローバルな日記

タフでもグローバルもない

Railsインストール出来ない

Windows環境でRoRやってみようと思ってるんだけど、何故かRailsがインストール出来ない。

$ gem install rails

でインストールされるはずなんだけど、以下の様なメッセージが…

Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing rails:
        ERROR: Failed to build gem native extension.

    C:/Ruby200/bin/ruby.exe extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=C:/Ruby200/bin/ruby
        --with-atomic_reference-dir
        --without-atomic_reference-dir
        --with-atomic_reference-include
        --without-atomic_reference-include=${atomic_reference-dir}/include
        --with-atomic_reference-lib
        --without-atomic_reference-lib=${atomic_reference-dir}/
C:/Ruby200/lib/ruby/2.0.0/mkmf.rb:430:in `try_do': The compiler failed to genera
te an executable file. (RuntimeError)
You have to install development tools first.
        from C:/Ruby200/lib/ruby/2.0.0/mkmf.rb:515:in `try_link0'
        from C:/Ruby200/lib/ruby/2.0.0/mkmf.rb:813:in `try_run'
        from extconf.rb:26:in `<main>'


Gem files will remain installed in C:/Ruby200/lib/ruby/gems/2.0.0/gems/atomic-1.
1.14 for inspection.
Results logged to C:/Ruby200/lib/ruby/gems/2.0.0/gems/atomic-1.1.14/ext/gem_make
.out

 

ググって色々と対策してみたけど一向に変わらない。困ったなぁ

Devkitがインストールされてない情報を知ってインストールもしたんだけど相変わらず。

ダレか教えて…

 

追記 2013/10/08 2:42

できましたorz

Ruby installerに32bitのものを使っていて、DevKitに64bitのものを使っていたようです。

同じようなエラーが起こる人は、自分が使ったのがどっちかちゃんと確認しましょうね…

時間無駄すぎたー