【问题标题】:Drush make - errors unzipping and distinguishing mime timesDrush make - 解压和区分 mime 时间的错误
【发布时间】:2013-04-02 15:17:45
【问题描述】:

我在 Windows 2008 R2 Enterprise 上安装了 Drush 5.8,除了远程管理之外,所有选项都包括在内。

每当我运行drush make 时,我都会收到关于无法解压缩 github 存档文件以及无法确定 js 文件的 mime 类型的错误。这是我的make文件和输出。我不确定这里出了什么问题,并且会喜欢你可能有的任何指针。

制作文件:

; Drupal 7 core
core = 7.x
api = 2
projects[drupal][version] = 7

; Libraries
; --------

libraries[colorbox][download][type] = "get"
libraries[colorbox][download][url] = "https://github.com/jackmoore/colorbox/archive/1.4.8.zip"
libraries[colorbox][directory_name] = colorbox
libraries[colorbox][destination] = libraries

libraries[zepto][download][type] = "get"
libraries[zepto][download][url] = "http://zeptojs.com/zepto.min.js"
libraries[zepto][directory_name] = zepto
libraries[zepto][destination] = libraries

输出:

C:\Users\Administrator\Desktop\drush>drush make test.make testing
Could not locate drupal version 7, will try to download latest recommended or supported release.               [warning]

drupal-7.21 downloaded.                                                                                             [ok]

colorbox downloaded from https://github.com/jackmoore/colorbox/archive/1.4.8.zip.                                   [ok]

Unable to unzip C:\Users\ADMINI~1\AppData\Local\Temp\1/make_tmp_1364915473_515af511066a2/1.4.8.zip.              [error]

zepto downloaded from http://zeptojs.com/zepto.min.js.                                                              [ok]

Unable to determine mime type for zepto.min.js.                                                                  [error]

【问题讨论】:

  • 如果有帮助,当我以详细模式运行 drush make 时,我看到“'curl' 不是内部或外部命令、可运行程序或批处理文件”

标签: drupal drush


【解决方案1】:

经过一番折腾终于弄明白了。

使用 Cygwin,我能够获得解压缩的副本,我将其放入 Program Files (x86)\Drush\GnuWin32\bin 目录(位于我的 PATH 环境变量中)。这清除了列出的有关解压缩的错误。

至于 mime-type 问题,我必须手动编辑 includes/drush.inc 以将 '.js' => 'application/javascript' 添加到 $extension_mimetype 数组。请参阅 http://drupal.org/node/1825946 了解导致我这样做的讨论。

【讨论】:

  • 感谢您的回答,但是我仍然在为“解压缩”错误而苦苦挣扎。 I've detailed it 在 drupal.stackexchange,也许你可以帮我解决这个问题?将不胜感激。
猜你喜欢
  • 2012-09-04
  • 2013-06-02
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-01-25
相关资源
最近更新 更多