簡體   English   中英

GVM:在Ubuntu 14.04中安裝GVM時出現問題

[英]GVM: Issue when installing GVM in Ubuntu 14.04

當我運行以下命令來安裝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 installation過程已啟動,但會產生以下錯誤:

------------------
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

看起來,不是從Web下載bash文件。 我認為這是curl命令或其他問題嗎?

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

sdk以前稱為gvm。 代替gvm嘗試使用sdk來安裝Groovy,Grails等。嘗試以下命令

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

要安裝grails,請參考以下內容-https : //grails.org/download.html

您的下載存在問題。

使用“代理”通過此命令正確連接和下載

curl -s "https://get.sdkman.io" | bash

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM