I just cloned a github repo on a fresh Ubuntu machine, running sqlite3 for all environments. rake db:create
says development.sqlite3 already exists. rake db:migrate
says I'm missing a bunch of required gems and should run rake gems:install
. rake gems:install
, of course, says it Could not find table 'studies'
, which sounds to me like something rake db:migrate
should fix.
I looked around the net and while lots of people have gotten 'could not find table' errors, they all got them from rake db:migrate
, not rake gems:install
. I'm suspecting it's an application-specific error, but still, any ideas would be appreciated.
PS: Ruby 1.8.7, Rails 2.3.8.
您始终可以使用gem install -r <gem name>
或gem install -v=<gem version> -r <gem name>
命令安装单独的gem,而不使用rake。
Is this a Rails 3 app? If so, you should run:
bundle install
Rails 3 uses Bundler instead of the rake tasks to manage gems. http://gembundler.com/
Did you try running with the trace option? Might help pin down the failing gem:
rake -t gems:install
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.