我正在尝试在 ubuntu 16.04 中安装hyperledger
。安装过程中出现以下错误
curl -O https://hyperledger.github.io/composer/prereqs-ubuntu.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3237 100 3237 0 0 2446 0 0:00:01 0:00:01 --:--:-- 2448
chmod u+x prereqs-ubuntu.sh
./prereqs-ubuntu.sh
./prereqs-ubuntu.sh: line 1: syntax error near unexpected token 'newline'
./prereqs-ubuntu.sh: line 1: `!doctype html'
i deleted prereqs-ubuntu.sh file and tried to download using wget
当我使用wget
下载文件时出现以下错误
`wget https://hyperledger.github.io/composer/prereqs-ubuntu.sh
--2018-05-13 21:51:48-- https://hyperledger.github.io/composer/prereqs-ubuntu.sh
Resolving hyperledger.github.io (hyperledger.github.io)... 185.199.108.153, 185.199.109.153, 185.199.110.153, ...
Connecting to hyperledger.github.io (hyperledger.github.io)|185.199.108.153|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-05-13 21:51:49 ERROR 404: Not Found.`
请指导我安装该hyperledger
程序。
答案1
curl 命令中的 URL 应更改为https://hyperledger.github.io/composer/latest/prereqs-ubuntu.sh
正确命令:
curl -O https://hyperledger.github.io/composer/latest/prereqs-ubuntu.sh