Could not find gem 'mysql2 <>=0, runtime>' in any of the gem sources. Try running 'bundle install'.
看了下数据库的配置文件:这里adapter: mysql2
development:
adapter: mysql2
encoding: utf8
reconnect: false
database: xxxxx_development
pool: 5
username: root
password: admin
host: localhost
于是按照提示的错误,在script目录下执行了下面的命令行:
script>bundle install
安装了下面的东西,问题解决:
Fetching source index for http://rubygems.org/
Using rake (0.8.7)
Using abstract (1.0.0)
Using activesupport (3.0.2)
Using builder (2.1.2)
Using i18n (0.4.2)
Using activemodel (3.0.2)
Using erubis (2.6.6)
Using rack (1.2.1)
Using rack-mount (0.6.13)
Using rack-test (0.5.6)
Using tzinfo (0.3.23)
Using actionpack (3.0.2)
Using mime-types (1.16)
Using polyglot (0.3.1)
Using treetop (1.4.9)
Using mail (2.2.9.1)
Using actionmailer (3.0.2)
Using arel (2.0.2)
Using activerecord (3.0.2)
Using activeresource (3.0.2)
Using bundler (1.0.5)
Installing mysql2 (0.2.6)
Using thor (0.14.4)
Using railties (3.0.2)
Using rails (3.0.2)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem
is installed.