[ooaa main]  [object pasta2]   [essence] (旧blogはこちら)  [flickr]  [myspace]  [View Eiichi Hayashi's profile on LinkedIn] 

MacでRails

Leoなんでそんまま動くはずなんだが、うまくうごかないので、gemsのアップデートからやってみた。

$sudo gem update --system
Updating RubyGems...
Attempting remote update of rubygems-update
Successfully installed rubygems-update-1.3.5
Installing ri documentation for rubygems-update-1.3.5...
Installing RDoc documentation for rubygems-update-1.3.5...<略>

次ぎにRails

$ sudo gem install rails --include-dependencies
INFO: `gem install -y` is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
Successfully installed rake-0.8.7
Successfully installed activesupport-2.3.3
Successfully installed activerecord-2.3.3
Successfully installed rack-1.0.0<略>

$ script/server してみるとこんなエラーが

./script/../config/boot.rb:20:Warning: Gem::SourceIndex#search support for String patterns is deprecated, use #find_name
Cannot find gem for Rails =1.2.6.0:
Install the missing gem with 'gem install -v=1.2.6 rails', or
change environment.rb to define RAILS_GEM_VERSION with your desired version.

しかたないので、その指示のとおりに。

$ sudo gem install -v=1.2.6 rails

で、うごきましたとさ。(^^;



以下のサイト参考にさせていただきました。
ありがとうございます。

「Verboseモードでいこう」
http://ja.verbmode.net/2009/02/09/be_carefull_with_gems_verup