1

我无法通过 GVM 安装 Grails。我通过GVM 网站上的说明安装了 GVM ,并且它似乎已正确安装 - 重新启动终端并运行gvm help会生成一个可能的命令列表。但是,当我去安装 Grails(或 Groovy)时,我在终端中得到以下输出:

$ gvm install grails

Downloading: grails 2.3.2

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (1) Protocol [http not supported or disabled in libcurl
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /Users/neilpoulin/.gvm/archives/grails-    2.3.2.zip or
        /Users/neilpoulin/.gvm/archives/grails-2.3.2.zip.zip, and cannot find     /Users/neilpoulin/.gvm/archives/grails-2.3.2.zip.ZIP, period.

Stop! The archive was corrupt and has been removed! Please try installing again.

我查看以确保找到 zip、unzip 和 curl:

    $ which zip
    /usr/bin/zip

    $ which unzip
    /usr/bin/unzip

    $ which curl
    /usr/bin/curl

在此之前,我对 Grails/Groovy 所做的唯一事情就是执行 Grails 网站上包含的示例项目 - http://grails.org/learn > step 2。

我在这里想念什么?libcurl我需要更改一些配置吗?任何帮助深表感谢!

4

2 回答 2

2

经过调查,这似乎是由于我们的开发环境和生产环境之间的 MongoDB 版本(和行为)不一致。这导致我们的 prod 服务器在下载请求(即 [theurl])上返回一个 url 数组。这在我们的开发环境中运行良好,但在发布升级为 prod 时开始为阵列提供服务。希望这是有道理的!

于 2013-11-20T08:27:41.423 回答
0

我一直有这个问题 - 对我来说,事实证明在先前失败的安装期间 gvm 存在损坏的候选缓存。

gvm flush candidates

在这里让事情恢复正常。

于 2015-04-04T20:56:52.723 回答