`
jarry-li
  • 浏览: 41694 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
阅读更多

 

照着书上依葫芦画瓢创建自己的第一个Ruby应用,windows环境。在执行rake db:migrate时报了如下错

#---

rake aborted!

You have already activated rake 0.9.2.2, but your Gemfile requires rake 10.0.3.

Using bundle exec may solve this.

 

(See full trace by running task with --trace)

---#

网上查了下,看了几个都说按照提示使用:bundle exec rake db:migrate 会解决问题。但是对我无效。

也有哥们说后面还加个VERSION=没看明白,但是各种尝试加上版本号都未果。

执行bundle exec rake db:migrate 的错误信息如下:

 

       #---

rake aborted!

cannot load such file -- bundler/setup

E:/works/rubytest/depot/config/boot.rb:6:in `<top (required)>'

E:/works/rubytest/depot/config/application.rb:1:in `<top (required)>'

E:/works/rubytest/depot/Rakefile:5:in `<top (required)>'

(See full trace by running task with --trace)

---#

 

参考链接:http://jxpwyd.iteye.com/blog/1327581

http://www.dunjh.com/blog/2011/05/%E5%AD%A6%E4%B9%A0%E4%B8%80%E4%B8%8Bblumine/

http://www.bwxxkj.com/a/jishuzhongxin/bianchengyuyan/2012/0617/105120.html

 

最终我的解决办法是:在dos中执行gem install rake

安装rake

还不行的话,再bundle下看看。

 

 

0
3
分享到:
评论

相关推荐

    capistrano-rails-db:Capistrano v3的Rails迁移任务(db

    Capistrano :: Rails :: Db Capistrano v3的Rails迁移任务: 在终端中运行cap -T deploy:db以获取迁移任务的完整列表: ...cap deploy:db:migrate # Run rake db:migrate Migrate the database (opti

    kiris:Phate Radio是有关动漫,游戏和流行音乐的实验性互联网广播

    $ bundle exec rake db:create $ bundle exec rake db:migrate $ bundle exec rake db:seed启动Web服务器: $ rails server使用浏览器,转到http://localhost:3000 ,您将看到主页。测试 $ bundle exec rake db:...

    wish_list

    愿望清单项目设置克隆回购bundle install bundle exec rake db:create bundle exec rake db:migrate RAILS_ENV=test bundle exec rake db:migrate bundle exec rspec去做: 有关更多说明的自述文件 眼镜自我注意事项...

    garage-example:车库的示例博客应用程序

    bundle exec rake db:create db:migrate RAILS_ENV=test bundle exec rake db:create db:migrate bundle exec rspec # All tests should be passed. # Play with local development server. bundle exec rails ...

    weightof.it:按重量比较JavaScript库(文件大小)

    使用以下命令安装依赖项: bundle install设置数据库: bundle exec rake db:create db:migrate种子数据库具有: bundle exec rake db:seed测验如果未安装PhantomJS,请通过将spec/support/capybara.rb

    ticket-booth:电影票应用

    migrate&gt; heroku local # run the app运行规范的步骤&gt; bundle exec dotenv rake db:migrate \[ test \]&gt; bundle exec dotenv rspecAPI文档使用邮递员应用程序导入ticket_booth_api.postman_collection.json以便与API...

    lti_tool_provider_example:这是一个基本且简单的 LTI 工具提供程序,它使用 [ims-lti](https

    bundle exec rake db:migrate bundle exec rake db:seed bundle exec rails s 要使用 Docker 运行它,请按照下列步骤操作: docker-compose build docker-compose run --rm app bundle install docker-compose run...

    slidemark:www.sildemark.net

    bundle exec rake db:migrate # 启动rails rails s 有用的命令 # 修改db schema bundle exec rails g migration add_avatar_to_users avatar:string # 把erb转换为haml bundle exec rake haml:replace_e

    crambear-api:crambear ember项目的示例API

    安装(假设您已经安装了ruby) 克隆项目后,cd到项目的顶级目录并运行: bundle install bundle exec rake db:create bundle exec rake db:migrate bundle exec rake db:seed运行应用 bundle exec rails s这将在端口...

    captains_log:基础架构变更日志工具

    rake db:test:prepare && rake db:migrate RAILS_ENV=test rake db:seed bundle exec guard 演示版 username: user@example.com password: password123 API开发 从Rails控制台生成API密钥: rails console Api...

    redmine_password_tool:Redmine 密码管理插件

    每个项目的基于角色的访问 测试 概括 在 travis-ci.org(主分支)上 测试政策 一切都应该被测试覆盖 ...rake db:drop db:create db:migrate db:test:load db:test:prepare redmine:plugins:migrate redmine:load

    tzyz:滕州一中校友会

    开始吧初始化数据库: rake db:migrate:reset && rake db:setup (或bundle exec rake db:migrate:reset && rake db:setup ) 我们将用于缓存,会话和sidekiq。 请安装并在文件中配置redis的配置( config/secrets....

    bike-share-prediction:共享单车使用量预测API

    自行车份额预测 该工具允许希望获得共享单车使用量预测的人们。 目前,它可以与系统一起使用,但是可以在一分钟内扩展到任何共享... bundle exec rake db:migrate bundle exec whenever -i bundle exec rake fetch:p

    Midterm-Family-Vault

    bundle exec rake db:drop && bundle exec rake db:create && bundle exec rake db:migrate && bundle exec rake db:seed 运行shotgun -p 3000 -o localhost启动服务器 在浏览器中访问http://localhost:3000/ ...

    gruf-demo:一个使用gruf(一个gRPC Rails框架)的演示Rails应用程序

    bundle exec rake db:create db:migrate bundle exec rake db:seed foreman start 与客户进行测试 然后,在另一个控制台中,您可以运行提供的rake任务以查看其运行情况。 请求/响应(获取产品) bundle exec rake ...

    Mahjong:麻将纸牌作为Rails应用

    bundle exec rake db:create db:migrate bundle exec rake db:seed 每次 bundle exec rails s 测试方法 bundle install RAILS_ENV=test bundle exec rake test 瓷砖的位置 X坐标在顶部水平为黑色,y坐标在左侧垂直...

    recruit_stu:招生

    执行数据库创建脚本: rake db:migrate 增 StudentDocument.create(name:"test") 查 StudentDocument.find(1) StudentDocument.find_by(name:"test",email:"") StudentDocument.where("id &gt; ? and

    tracc:周期管理工具TRACC

    来源〜/ .bash_profile 创建数据库:bundle exec rake db:create 运行迁移:捆绑exec rails db:migrate 捆绑执行solr_wrapper 播种数据:bundle exec rake db:seed 运行应用程序:bundle exec rails 一旦应用...

    pundit_sample

    $ bundle exec rake db:migrate $ bundle exec rake db:seed_fu $ bundle exec rails s 测试帐号 详细信息 电子邮件 密码 权威 管理员 可以进行所有操作 用户用户 用户的索引,显示,创建,更新,销毁都是可能的。...

    WomenCanMakeIt2

    创建本地数据库: $ rake db:create$ rake db:create RAILS_ENV=test 迁移数据库以使用最新的架构: $ rake db:migrate$ rake db:migrate RAILS_ENV=test测试$ rspec发展启动服务器: $ rails s 在浏览器中访问 。

Global site tag (gtag.js) - Google Analytics