gpt4 book ai didi

installation - GVM:在 Ubuntu 14.04 中安装 GVM 时出现问题

转载 作者:行者123 更新时间:2023-12-04 04:57:25 33 4
gpt4 key购买 nike

根据其文档,我是 GVM 的新手,当我运行以下命令安装 GVM 时,终端上没有输出显示,如:

james@james-K52F:~$ curl -s get.gvmtool.net | bash
james@james-K52F:~$

当我在 CURL 之后运行命令时,出现以下错误:

james@james-K52F:~$ gvm
No command 'gvm' found, but there are 20 similar ones
gvm: command not found

当我在没有 -s 标志的情况下点击 CURL 命令时,出现以下错误:

james@james-K52F:~$ curl get.gvmtool.net | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to get.gvmtool.net port 80: Network is unreachable

如何解决这些问题并在我的系统上安装 GVM

更新

此问题已使用以下命令解决:

james@james-K52F:~$ sudo curl --ipv4 get.gvmtool.net | bash

但现在的问题是,当我运行上面的命令时,GVM 安装 过程开始了,但产生了以下错误:

------------------
Create candidate directories...
Prime the config file...
Download script archive...
Extract script archive...
[/home/james/.gvm/tmp/res-2.4.1.zip]
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/james/.gvm/tmp/res-2.4.1.zip or
/home/james/.gvm/tmp/res-2.4.1.zip.zip, and cannot find /home/james/.gvm/tmp/res-2.4.1.zip.ZIP, period.
Install scripts...
mv: cannot stat ‘/home/james/.gvm/tmp/stage/gvm-init.sh’: No such file or directory
mv: cannot stat ‘/home/james/.gvm/tmp/stage/gvm-*’: No such file or directory
Attempt update of bash profiles...
Attempt update of zsh profiles...
All done!

Please open a new terminal, or run the following in the existing one:

source "/home/james/.gvm/bin/gvm-init.sh"

Then issue the following command:

gvm help

Enjoy!!!

之后,当我在新终端上运行 source "/home/james/.gvm/bin/gvm-init.sh" 时,出现以下错误:

james@james-K52F:~$ source "/home/james/.gvm/bin/gvm-init.sh"
bash: /home/james/.gvm/bin/gvm-init.sh: No such file or directory

看起来,out bash 文件不是从网上下载的。我认为这是 curl 命令或其他命令的问题?

最佳答案

CURL 无法解析 gvmtool.net,因为它被重定向到 sdkman.io

sdk 以前称为 gvm。尝试使用 sdk 代替 gvm 安装 Groovy、Grails 等。试试下面的命令

$ curl -s "https://get.sdkman.io"|狂欢

要安装 grails,请引用这个—— https://grails.org/download.html

关于installation - GVM:在 Ubuntu 14.04 中安装 GVM 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30740896/

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