cldi的安装问题

系统macOS12.0.1
我使用cita-cloud文档的命令:
wget https://github.com/cita-cloud/cloud-cli/releases/download/v0.1.1/cldi
chmod +x cldi
sudo mv ./cldi /usr/local/bin/
cldi -h
安装、运行cldi时,会出现下面的问题:
zsh: exec format error: cldi

然后我自己去拉github上v0.1.1的代码安装时会出现下面的错误:
git clone https://github.com/cita-cloud/cloud-cli.git
cd cloud-cli
git checkout v0.1.1
cargo install --path .


Installing cldi v0.1.0 (/Users/sunny/cita2.0/cloud-cli)
Updating crates.io index
Updating git repository https://github.com/cita-cloud/cita_cloud_proto
Updating git repository https://github.com/Pencil-Yao/efficient-sm2
Compiling cldi v0.1.0 (/Users/sunny/cita2.0/cloud-cli)
error[E0599]: no variant or associated item named ColoredHelp found for enum AppSettings in the current scope
–> src/cli.rs:10:31
|
10 | .setting(AppSettings::ColoredHelp)
| ^^^^^^^^^^^ variant or associated item not found in AppSettings

error[E0599]: no variant or associated item named ColoredHelp found for enum AppSettings in the current scope
–> src/cli.rs:36:31
|
36 | .setting(AppSettings::ColoredHelp)
| ^^^^^^^^^^^ variant or associated item not found in AppSettings

error[E0599]: no variant or associated item named ColoredHelp found for enum AppSettings in the current scope
–> src/cli.rs:65:31
|
65 | .setting(AppSettings::ColoredHelp)
| ^^^^^^^^^^^ variant or associated item not found in AppSettings

error[E0599]: no variant or associated item named ColoredHelp found for enum AppSettings in the current scope
–> src/cli.rs:70:31
|
70 | .setting(AppSettings::ColoredHelp)
| ^^^^^^^^^^^ variant or associated item not found in AppSettings

error[E0599]: no variant or associated item named ColoredHelp found for enum AppSettings in the current scope
–> src/cli.rs:92:31
|
92 | .setting(AppSettings::ColoredHelp)
| ^^^^^^^^^^^ variant or associated item not found in AppSettings

error[E0599]: no variant or associated item named ColoredHelp found for enum AppSettings in the current scope
–> src/cli.rs:102:31
|
102 | .setting(AppSettings::ColoredHelp)
| ^^^^^^^^^^^ variant or associated item not found in AppSettings

error[E0599]: no variant or associated item named ColoredHelp found for enum AppSettings in the current scope
–> src/cli.rs:109:31
|
109 | .setting(AppSettings::ColoredHelp);
| ^^^^^^^^^^^ variant or associated item not found in AppSettings

error[E0599]: no variant or associated item named ColoredHelp found for enum AppSettings in the current scope
–> src/cli.rs:113:31
|
113 | .setting(AppSettings::ColoredHelp)
| ^^^^^^^^^^^ variant or associated item not found in AppSettings

error[E0599]: no variant or associated item named ColoredHelp found for enum AppSettings in the current scope
–> src/cli.rs:126:31
|
126 | .setting(AppSettings::ColoredHelp)
| ^^^^^^^^^^^ variant or associated item not found in AppSettings

error[E0599]: no variant or associated item named ColoredHelp found for enum AppSettings in the current scope
–> src/cli.rs:137:31
|
137 | .setting(AppSettings::ColoredHelp)
| ^^^^^^^^^^^ variant or associated item not found in AppSettings

error[E0599]: no variant or associated item named ColoredHelp found for enum AppSettings in the current scope
–> src/cli.rs:147:31
|
147 | .setting(AppSettings::ColoredHelp)
| ^^^^^^^^^^^ variant or associated item not found in AppSettings

warning: use of deprecated associated function clap::Arg::<'help>::multiple: Split into Arg::multiple_occurrences (most likely what you want) and Arg::multiple_values
–> src/cli.rs:152:18
|
152 | .multiple(true)
| ^^^^^^^^
|
= note: #[warn(deprecated)] on by default

error[E0599]: no variant or associated item named ColoredHelp found for enum AppSettings in the current scope
–> src/cli.rs:158:31
|
158 | .setting(AppSettings::ColoredHelp)
| ^^^^^^^^^^^ variant or associated item not found in AppSettings

error[E0599]: no variant or associated item named ColoredHelp found for enum AppSettings in the current scope
–> src/cli.rs:168:31
|
168 | .setting(AppSettings::ColoredHelp)
| ^^^^^^^^^^^ variant or associated item not found in AppSettings

error[E0599]: no variant or associated item named ColoredHelp found for enum AppSettings in the current scope
–> src/cli.rs:179:31
|
179 | .setting(AppSettings::ColoredHelp)
| ^^^^^^^^^^^ variant or associated item not found in AppSettings

error[E0599]: no variant or associated item named ColoredHelp found for enum AppSettings in the current scope
–> src/cli.rs:193:31
|
193 | .setting(AppSettings::ColoredHelp)
| ^^^^^^^^^^^ variant or associated item not found in AppSettings

error[E0599]: no variant or associated item named ColoredHelp found for enum AppSettings in the current scope
–> src/cli.rs:199:31
|
199 | .setting(AppSettings::ColoredHelp)
| ^^^^^^^^^^^ variant or associated item not found in AppSettings

error[E0599]: no variant or associated item named ColoredHelp found for enum AppSettings in the current scope
–> src/cli.rs:205:31
|
205 | .setting(AppSettings::ColoredHelp)
| ^^^^^^^^^^^ variant or associated item not found in AppSettings

error[E0599]: no variant or associated item named ColoredHelp found for enum AppSettings in the current scope
–> src/cli.rs:211:31
|
211 | .setting(AppSettings::ColoredHelp)
| ^^^^^^^^^^^ variant or associated item not found in AppSettings

error[E0599]: no variant or associated item named ColoredHelp found for enum AppSettings in the current scope
–> src/cli.rs:225:31
|
225 | .setting(AppSettings::ColoredHelp)
| ^^^^^^^^^^^ variant or associated item not found in AppSettings

error[E0599]: no variant or associated item named ColoredHelp found for enum AppSettings in the current scope
–> src/cli.rs:256:31
|
256 | .setting(AppSettings::ColoredHelp)
| ^^^^^^^^^^^ variant or associated item not found in AppSettings

error[E0061]: this function takes 4 arguments but 3 arguments were supplied
–> src/main.rs:287:31
|
287 | “bash” => generate::<Bash, _>(&mut cli, “cldi”, &mut stdout),
| ^^^^^^^^^^^^^^^^^^^ -------- ------ ----------- supplied 3 arguments
| |
| expected 4 arguments
|
note: function defined here
–> /Users/sunny/.cargo/registry/src/github.com-1ecc6299db9ec823/clap_generate-3.0.0-beta.5/src/lib.rs:239:8
|
239 | pub fn generate<G, S>(gen: G, app: &mut clap::App, bin_name: S, buf: &mut dyn Write)
| ^^^^^^^^

error[E0061]: this function takes 4 arguments but 3 arguments were supplied
–> src/main.rs:288:37
|
288 | “powershell” => generate::<PowerShell, _>(&mut cli, “cldi”, &mut stdout),
| ^^^^^^^^^^^^^^^^^^^^^^^^^ -------- ------ ----------- supplied 3 arguments
| |
| expected 4 arguments
|
note: function defined here
–> /Users/sunny/.cargo/registry/src/github.com-1ecc6299db9ec823/clap_generate-3.0.0-beta.5/src/lib.rs:239:8
|
239 | pub fn generate<G, S>(gen: G, app: &mut clap::App, bin_name: S, buf: &mut dyn Write)
| ^^^^^^^^

error[E0061]: this function takes 4 arguments but 3 arguments were supplied
–> src/main.rs:289:30
|
289 | “zsh” => generate::<Zsh, _>(&mut cli, “cldi”, &mut stdout),
| ^^^^^^^^^^^^^^^^^^ -------- ------ ----------- supplied 3 arguments
| |
| expected 4 arguments
|
note: function defined here
–> /Users/sunny/.cargo/registry/src/github.com-1ecc6299db9ec823/clap_generate-3.0.0-beta.5/src/lib.rs:239:8
|
239 | pub fn generate<G, S>(gen: G, app: &mut clap::App, bin_name: S, buf: &mut dyn Write)
| ^^^^^^^^

error[E0061]: this function takes 4 arguments but 3 arguments were supplied
–> src/main.rs:290:31
|
290 | “fish” => generate::<Fish, _>(&mut cli, “cldi”, &mut stdout),
| ^^^^^^^^^^^^^^^^^^^ -------- ------ ----------- supplied 3 arguments
| |
| expected 4 arguments
|
note: function defined here
–> /Users/sunny/.cargo/registry/src/github.com-1ecc6299db9ec823/clap_generate-3.0.0-beta.5/src/lib.rs:239:8
|
239 | pub fn generate<G, S>(gen: G, app: &mut clap::App, bin_name: S, buf: &mut dyn Write)
| ^^^^^^^^

error[E0061]: this function takes 4 arguments but 3 arguments were supplied
–> src/main.rs:291:33
|
291 | “elvish” => generate::<Elvish, _>(&mut cli, “cldi”, &mut stdout),
| ^^^^^^^^^^^^^^^^^^^^^ -------- ------ ----------- supplied 3 arguments
| |
| expected 4 arguments
|
note: function defined here
–> /Users/sunny/.cargo/registry/src/github.com-1ecc6299db9ec823/clap_generate-3.0.0-beta.5/src/lib.rs:239:8
|
239 | pub fn generate<G, S>(gen: G, app: &mut clap::App, bin_name: S, buf: &mut dyn Write)
| ^^^^^^^^

Some errors have detailed explanations: E0061, E0599.
For more information about an error, try rustc --explain E0061.
warning: cldi (bin “cldi”) generated 1 warning
error: failed to compile cldi v0.1.0 (/Users/sunny/cita2.0/cloud-cli), intermediate artifacts can be found at /Users/sunny/cita2.0/cloud-cli/target

Caused by:
could not compile cldi due to 25 previous errors; 1 warning emitted