加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-16 22:58:24 所属栏目:百科 来源:网络整理
导读:我试图在我的窗户上安装Octopress.根据他们在 website上的教程.但是当我输入命令时 rake install 它给了我以下错误 C:Documents and Settingsadminoctopressrake installrake aborted!You have already activated rake 0.9.2.2,but your Gemfile requires
我试图在我的窗户上安装Octopress.根据他们在 website上的教程.但是当我输入命令时
rake install

它给了我以下错误

C:Documents and Settingsadminoctopress>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 Settingsadminoctopress>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

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读