アットウィキロゴ

ruby > rails

  • gemのバージョンアップ

activescaffoldを使おうとrails2.3にしたものの、このためにはRailsGemのバージョンが1.3.2以上であることが求められる。
script/plugin install git://github.com/activescaffold/active_scaffold.git -r rails-2.3


けど、

# gem update --system
としても、nothing to update となってしまう。これはバグらしい。
この場合の対処方法。

# gem install rubygems-update
# update-rubygems

しかしこれだと以下のようなエラーがでて、バージョンは元の 1.2.0のまま変わらない。。。

# gem install rubygems-update
Successfully installed rubygems-update-1.3.7
1 gem installed
Installing ri documentation for rubygems-update-1.3.7...
Installing RDoc documentation for rubygems-update-1.3.7...
Could not find main page README
Could not find main page README
Could not find main page README
Could not find main page README

この場合は、インストするバージョンを指定すれば良い模様。
# gem install rubygems-update -v 1.3.2
Successfully installed rubygems-update-1.3.2
1 gem installed
# update_rubygems

activescaffoldのpluginをいざインストール
$ script/plugin install git://github.com/activescaffold/active_scaffold.git -r rails-2.3
Initialized empty Git repository in .git/
github.com[0: 207.97.227.239]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)

どうやらホストへの接続が失敗しているようだ。恐らくはproxyサーバが使われていないことによるエラーか?
★今ここ
最終更新:2010年06月29日 13:40