6

我正在尝试在我的 Windows 上安装 Octopress。根据他们网站上的教程。但是当我输入命令时

rake install 

它给了我以下错误

C:\Documents and Settings\admin\octopress>rake install
rake aborted!
You have already activated rake 0.9.2.2, but your Gemfile requires rake 0.9.2. U
sing bundle exec may solve this.

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

正如错误所说,我需要安装 rake 0.9.2 我尝试使用以下命令进行操作。

C:\Documents and Settings\admin\octopress>gem install rack -v=0.9.2.0
ERROR:  Could not find a valid gem 'rack' (= 0.9.2.0) in any repository
ERROR:  Possible alternatives: rack

我的电脑上已经安装了 Ruby & Gems。但我无法弄清楚如何解决这个问题。我什至如何使用“bundle exec”来安装 Octopress ?

4

4 回答 4

8

您可能需要以这种方式使用 bundle exec

bundle exec rake install

这可能只是解决你的问题。

于 2012-05-05T08:07:29.137 回答
2

我解决了这个问题,bundle update
这是一个依赖问题,没什么大不了的

于 2012-12-04T14:34:15.163 回答
0

第一次拼写为 rake,第二次拼写为 rack

于 2012-05-05T08:33:16.637 回答
0

首先更新文档说,

bundle exec rake install

然后更新 Gemfile.lock ,

bundle update
于 2012-05-31T17:58:22.980 回答