rust-lang / git2-rs

libgit2 bindings for Rust
https://docs.rs/git2
Apache License 2.0
1.64k stars 380 forks source link

`error: failed to run custom build command for libgit2-sys v0.15.2+1.6.4` (Windows) #972

Closed pcaversaccio closed 11 months ago

pcaversaccio commented 11 months ago

Hey guys, I'm currently trying to install this repo from source using the following command:

cargo install --git https://github.com/foundry-rs/foundry --profile local --force foundry-cli anvil chisel

Unfortunately, I will get the following error along the installation:

error: failed to run custom build command for `libgit2-sys v0.15.2+1.6.4`

You can view the full log here.

My configs:

- cargo 1.71.0 (cfd3bbd8f 2023-06-08)
- rustc 1.71.0 (8ede3aae2 2023-07-12)
- Microsoft Windows 11 Pro (10.0.22621 Build 22621)

Any clue what's wrong?

pcaversaccio commented 11 months ago

I fixed it by doing the following: