ckb-cli icon indicating copy to clipboard operation
ckb-cli copied to clipboard

error: failed to run custom build command for 'ckb-vm v0.22.1'

Open RobaireTH opened this issue 10 months ago • 7 comments

Image Image

It currently throws the above errors when running cargo install ckb-cli and with a couple installations like with the yasm and clang via LLVM on Windows, the errors still doesn't seem to be solved even though the error messages are cueing the need for them.

I currently have the latest VS build tool running so, that's not it.

RobaireTH avatar Jan 29 '26 12:01 RobaireTH

Hello, have you tried: cargo install --git https://github.com/nervosnetwork/ckb-cli --locked ckb-cli ?

eval-exec avatar Jan 29 '26 13:01 eval-exec

Yes, I have. It's the locked flag that gets me here. Anything aside that doesn't get any far.

RobaireTH avatar Jan 29 '26 13:01 RobaireTH

Yes, I have. It's the locked flag that gets me here. Anything aside that doesn't get any far.

but the recent ckb-cli is using [email protected]: https://github.com/nervosnetwork/ckb-cli/blob/80efc21c30e9fc7847407a217034681b6e46c763/Cargo.lock#L1027-L1028

But in your cargo build, you are building [email protected].

eval-exec avatar Jan 29 '26 14:01 eval-exec

Lemme retry that and see

RobaireTH avatar Jan 29 '26 15:01 RobaireTH

Image

I got the same error message just a different version tagged. Concerning the version, it seems the latest has not been published to crates.io as I have been running cargo install ckb-cli --locked before now.

RobaireTH avatar Jan 29 '26 15:01 RobaireTH

The error is not same. is gcc avalible on you machine? Try install gcc,

Or you can use the ckb-cli from https://github.com/nervosnetwork/ckb/releases/tag/v0.204.0

eval-exec avatar Jan 29 '26 15:01 eval-exec

I have gcc installed, I have been through that cycle. The second option works well. Thank you so much

RobaireTH avatar Jan 29 '26 15:01 RobaireTH