数据库在ROR中创建时出错

时间:2012-02-27 09:44:56

标签: mysql ruby-on-rails ruby gem

我在创建数据库之后安装了一个bundle,在终端

中运行此命令
rake db:migrate

然后出现此错误。请帮我解决问题

dominname@dominname204:~/Desktop/ajaxtree$ rake db:create

NOTE: Gem.cache is deprecated, use Gem::source_index. It will be removed on or after 2011-08-01.

Gem.cache called from /home/domainname/Desktop/ajaxtree/config/boot.rb:25.

NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.

Gem.source_index called from /usr/local/lib/site_ruby/1.8/rubygems.rb:1144.
NOTE: Gem::SourceIndex#search is deprecated with no replacement. It will be removed on or after 2011-11-01.

Gem::SourceIndex#search called from /home/domainname/Desktop/ajaxtree/config/boot.rb:25.

/usr/local/lib/site_ruby/1.8/rubygems/deprecate.rb:62:Warning: Gem::SourceIndex#search support for String patterns is deprecated, use #find_name
Cannot find gem for Rails =1.1.4:

    Install the missing gem with 'gem install -v=1.1.4 rails', or
    change environment.rb to define RAILS_GEM_VERSION with your desired version.

2 个答案:

答案 0 :(得分:1)

Rails 1.1.4非常老。但是,有了正确的宝石,你可能会有所作为。

尝试错误消息告诉您的内容:

gem install -v=1.1.14 rails

如果您拥有environment.rb中的所有gem版本,则您有机会安装依赖项。

答案 1 :(得分:1)

请在您的系统中安装新版本的ruby。