微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

ruby – 耙子流产!安装Octopress的问题

我试图在我的窗户上安装Octopress.根据他们在 website上的教程.但是当我输入命令时
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&宝石安装在我的电脑上.但我无法弄清楚如何解决这个问题.我如何使用“捆绑exec”来安装Octopress?

解决方法

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

这可能只是解决了你的问题.

原文地址:https://www.jb51.cc/ruby/265343.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐