imsnif / bandwhich

Terminal bandwidth utilization tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

failed to run custom build command for `bandwhich v0.20.0`

ket000 opened this issue · comments

Trying to build bandwhich on windows using
cargo install bandwhich

Getting below error.

Caused by:
process didn't exit successfully: C:\Users\xxx~1\AppData\Local\Temp\cargo-install2CUw6c\release\build\bandwhich-e4dc500439890925\build-script-build (exit code: 101)
--- stdout
cargo:rerun-if-changed=build.rs

--- stderr
thread 'main' panicked at 'called Result::unwrap() on an Err value: InvalidArchive("Could not find central directory end")', C:\Users\xxx.cargo\registry\src\github.com-1ecc6299db9ec823\bandwhich-0.20.0\build.rs:37:57
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile bandwhich v0.20.0, intermediate artifacts can be found at C:\Users\xxx~1\AppData\Local\Temp\cargo-install2CUw6c

Caused by:
build failed

fixing the path to npcap as outlined in #234 does resolve the build. I just ran cargo install bandwhich --offline after modifying the build script and it ran through without this error.

Fixed in #273. See also #275.