仕事にかまけて、Railsからしばらく離れていました。
RubyもRailsもアップデートも進んでしまったみたいなので、自分の開発環境もアップデートしようかと思います。
今の自分のRailsのバージョンは2.0.2なので、また随分と上がることになりますね^^;
まずは今までインストールしてきたgemのアップデート。
C:\Users\hoge>gem update
Updating installed gems...
Attempting remote update of actionmailer
Install required dependency actionpack? [Yn] y
Install required dependency rack? [Yn] y
Install required dependency fcgi? [Yn] y
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.
ruby extconf.rb update
checking for fcgiapp.h... no
checking for fastcgi/fcgiapp.h... no
*** 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
--srcdir=.
--curdir
--ruby=c:/ruby/bin/ruby
--with-fcgi-dir
--without-fcgi-dir
--with-fcgi-include
--without-fcgi-include=${fcgi-dir}/include
--with-fcgi-lib
--without-fcgi-lib=${fcgi-dir}/lib
Gem files will remain installed in c:/ruby/lib/ruby/gems/1.8/gems/fcgi-0.8.7 for
inspection.
Results logged to c:/ruby/lib/ruby/gems/1.8/gems/fcgi-0.8.7/ext/fcgi/gem_make.ou
t
ハイ。こけました。fcgi辺りでこけてるようです。
どうやら、gem自体をアップデートしなければならないようですね。
ちなみに、
C:\Users\hoge>gem -v
0.9.4
今の自分のgemのバージョンは0.9.4。なので、こうコマンドを打ちます。
gem update --system
こちらによりますと、gemは1.3以降は違うコマンドのようなので、注意が必要です。
ひたすら「y」を連打してしばらく待っていると、
Updating version of RubyGems to 1.3.5
Installing RubyGems 1.3.5
RubyGems 1.3.5 installed
・ソ=== 1.3.5 / 2009-07-21
Bug fixes:
* Fix use of prerelease gems.
* Gem.bin_path no longer escapes path with spaces. Bug #25935 and #26458.
Deprecation Notices:
* Bulk index update is no longer supported (the code currently remains, but not
the tests)
* Gem::manage_gems was removed in 1.3.3.
* Time::today was removed in 1.3.3.
------------------------------------------------------------------------------
RubyGems installed the following executables:
c:/ruby/bin/gem
RubyGems system software updated
こんな感じで、無事アップデートが終了したようです。
ためしにバージョン確認すると、
C:\Users\hoge>gem -v
1.3.5
よい感じです。
続いて、全体的に古いだろうから、一気に全体をアップデート。
C:\Users\hoge>gem update rails
ログを見てたときに、何かRMagickがこけたような気がしたけど、ログがあっという間に流れてしまって、調査できず。。とりあえず、あれはまた煮詰まったら対応策を考えることにしましょう。。
ともあれ。バージョン確認してみると、
C:\Users\hoge>rails -v
Rails 2.3.4
ということで、無事、2.0.2から2.3.4になったようです。
これはまた、知らないことが多そうです。ま、また、手探りで勉強していきましょう。
Via:

これマジでやべーよ!!!!
色んな女から誘われてハメまくってたら、10日で50万ゲットしたぜぇぇぇ!!!!