gpt4 book ai didi

grails - 使用GVM安装Grails时发生错误- curl 问题

转载 作者:行者123 更新时间:2023-12-02 14:33:31 24 4
gpt4 key购买 nike

我无法通过GVM安装Grails。我按照GVM's website上的说明安装了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>步骤2。

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

最佳答案

经调查,似乎归因于我们的开发环境和产品环境之间的MongoDB版本(和行为)不一致。这导致我们的产品服务器在下载请求中返回了一组URL(即[theurl])。这在我们的开发环境上运行得很好,但是在将发行版升级为产品时开始为阵列提供服务。希望这是有道理的!

关于grails - 使用GVM安装Grails时发生错误- curl 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20086556/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com