Rake New_post 出错

今天更新博客的时候,运行命令提示错误:

You have already activated rake 0.9.6, but your Gemfile requires rake 0.9.2.2. Using bundle exec may solve this.

由于我并不使用 ruby,所以看到这提示百思不得其解,难道还要我降级 rake 不成?最后索性把 Octopress 目录下的文件内容查看了一遍,发现 Gemfile 里面涉及了 rake 版本,于是进行了修改:

gem 'rake', '~> 0.9.6'

重新运行命令,yeah!

Comments