【问题标题】:rake install command is not working (gem 'octopress', '~> 3.0.7')rake install 命令不起作用(gem 'octopress', '~> 3.0.7')
【发布时间】:2015-06-04 08:26:21
【问题描述】:

我正在使用 windows8.1 。我在stackoverflow 看到了一些类似的帖子,但我没有得到任何解决方案。

C:\Sites\occtopress>bundle exec rake install
DL is deprecated, please use Fiddle
DL is deprecated, please use Fiddle
rake aborted!
Don't know how to build task 'install'

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

这是我的 Rakefile:

# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

require File.expand_path('../config/application', __FILE__)

Rails.application.load_tasks

请帮忙

【问题讨论】:

  • 你能把你的 Rakefile 的内容贴出来吗?
  • @floum 我添加了 rakefile

标签: ruby ruby-on-rails-4 rake


【解决方案1】:

假设您没有在 lib/tasks 中创建任何任务文件,您将不会有任何名为 install 的任务。

rake -T

将列出所有可用任务(查找以“rake install”开头的行)。

顺便说一句,你想达到什么目的?

【讨论】:

  • 兄弟我想在我的 Rails 应用程序中安装和使用 gem "octopress" 但我不能。这就是我发布这个问题的原因。
  • gem 'octopress', '~> 3.0.7' 添加到您的 Gemfile 并运行 bundle install
  • 我这样做了,然后它想要“rake install”。
  • 查看 octopress 的 readme 并不能说明您可以运行 rake install。你试过octopress init 吗?
猜你喜欢
  • 1970-01-01
  • 2021-09-02
  • 2017-06-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-10-21
  • 1970-01-01
  • 2011-06-01
相关资源
最近更新 更多