我在通过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.我想确保找到了拉链、解压缩和卷曲:
$ 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的某些配置?任何帮助都是非常感谢的!
发布于 2013-11-20 08:27:41
通过调查,我们的开发环境和prod环境之间的MongoDB版本(和行为)似乎是不一致的。这导致我们的prod服务器在下载请求(即theurl)上返回一个urls数组。这在我们的dev环境中运行得很好,但是当发布升级到prod时,它就开始为数组服务了。希望这是合理的!
发布于 2015-04-04 20:56:52
我一直存在这个问题--对我来说,在以前失败的安装过程中,gvm缓存了一些腐败的候选程序。
gvm flush candidates把事情恢复正常,在这里。
https://stackoverflow.com/questions/20086556
复制相似问题