无法在我的Ubuntu机器上从GVM安装Grails; gvm安装grails不起作用

时间:2015-05-30 22:01:52

标签: grails gvm

我尝试使用GVM工具安装Grails,在此之前我将GVM更新为旧版本的最新版本。在提示提议之后,我执行了gvm install grails并且在连接问题之后失败了。我尝试通过键入相同的命令再次安装Grails。

Found a previously downloaded grails 3.0.1 archive.
Not downloading it again...
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 /home/myhome/.gvm/archives/grails-3.0.1.zip or
/home/myhome/.gvm/archives/grails-3.0.1.zip.zip, 
and cannot find /home/myhome/.gvm/archives/grails-3.0.1.zip.ZIP, period.
Stop! The archive was corrupt and has been removed! Please try installing again.

我再次执行了gvm install grails并且它给了我上面相同的错误,我尝试手动删除文件但是我收到了一个错误,他们找不到。

1 个答案:

答案 0 :(得分:2)

尝试:

gvm list grails

这将为您提供所有已安装候选人的列表。如果安装了候选项,您应该看到星号(*)符号,并且箭头显示正在使用哪个候选项。

如果他们确实出现了。尝试通过指定候选项以及安装

来卸载它
gvm uninstall grails 3.0.1

然后再次尝试运行install命令。

通常可行。