首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装带有GVM - Curl问题的Grails时出错

安装带有GVM - Curl问题的Grails时出错
EN

Stack Overflow用户
提问于 2013-11-20 03:06:20
回答 2查看 1.1K关注 0票数 1

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

代码语言:javascript
复制
$ 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.

我想确保找到了拉链、解压缩和卷曲:

代码语言:javascript
复制
    $ 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的某些配置?任何帮助都是非常感谢的!

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2013-11-20 08:27:41

通过调查,我们的开发环境和prod环境之间的MongoDB版本(和行为)似乎是不一致的。这导致我们的prod服务器在下载请求(即theurl)上返回一个urls数组。这在我们的dev环境中运行得很好,但是当发布升级到prod时,它就开始为数组服务了。希望这是合理的!

票数 2
EN

Stack Overflow用户

发布于 2015-04-04 20:56:52

我一直存在这个问题--对我来说,在以前失败的安装过程中,gvm缓存了一些腐败的候选程序。

代码语言:javascript
复制
gvm flush candidates

把事情恢复正常,在这里。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20086556

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档