jedahan / zr

zsh plugin manager written in rust
Mozilla Public License 2.0
180 stars 12 forks source link

error: failed to run custom build command for `libgit2-sys v0.6.19` #21

Closed AshGrowem closed 5 years ago

AshGrowem commented 5 years ago
System Version
macOS 10.14.4
rustup 1.17.0
cargo 1.33.0
rustc 1.33.0

Upon cargo install zr I get...

Updating crates.io index
  Installing zr v0.6.4
   Compiling semver-parser v0.7.0
   Compiling pkg-config v0.3.14
   Compiling cc v1.0.32
   Compiling libc v0.2.51
   Compiling matches v0.1.8
   Compiling smallvec v0.6.9
   Compiling percent-encoding v1.0.1
   Compiling unicode-width v0.1.5
   Compiling vec_map v0.8.1
   Compiling strsim v0.7.0
   Compiling bitflags v0.9.1
   Compiling bitflags v1.0.4
   Compiling ansi_term v0.11.0
   Compiling unicode-bidi v0.3.4
   Compiling textwrap v0.10.0
   Compiling unicode-normalization v0.1.8
   Compiling semver v0.9.0
   Compiling atty v0.2.11
   Compiling rustc_version v0.2.3
   Compiling clap v2.32.0
   Compiling libz-sys v1.0.25
   Compiling openssl-sys v0.9.43
   Compiling libssh2-sys v0.2.11
   Compiling cmake v0.1.37
   Compiling curl-sys v0.4.17
   Compiling libgit2-sys v0.6.19
   Compiling idna v0.1.5
error: failed to run custom build command for `libgit2-sys v0.6.19`
process didn't exit successfully: `/var/folders/bl/qdmrp0jd71z545k9zkd8ncqm0000gn/T/cargo-installR2JRv4/release/build/libgit2-sys-71efc28542e6caa6/build-script-build` (exit code: 101)
--- stdout
running: "cmake" "/Users/ashrafhadden/.cargo/registry/src/github.com-1ecc6299db9ec823/libgit2-sys-0.6.19/libgit2" "-DBUILD_SHARED_LIBS=OFF" "-DBUILD_CLAR=OFF" "-DCMAKE_INSTALL_PREFIX=/var/folders/bl/qdmrp0jd71z545k9zkd8ncqm0000gn/T/cargo-installR2JRv4/release/build/libgit2-sys-7889fe06c0b7db30/out" "-DCMAKE_C_FLAGS= -I/var/folders/bl/qdmrp0jd71z545k9zkd8ncqm0000gn/T/cargo-installR2JRv4/release/build/libssh2-sys-4aae7be7440a4e08/out/include -DGIT_SSH -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_COMPILER=/usr/bin/c++" "-DCMAKE_BUILD_TYPE=Release"

--- stderr
fatal: not a git repository (or any of the parent directories): .git
thread 'main' panicked at '
failed to execute command: No such file or directory (os error 2)
is `cmake` not installed?

build script failed, must exit now', /Users/ashrafhadden/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.37/src/lib.rs:813:5
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 `zr v0.6.4`, intermediate artifacts can be found at `/var/folders/bl/qdmrp0jd71z545k9zkd8ncqm0000gn/T/cargo-installR2JRv4`

Caused by:
  build failed
jedahan commented 5 years ago

I just pushed a new version with an update libgit2 - let me know if this compiles for you. You should remove your ~/.zr directory if there is one, as it contains a breaking change.

jedahan commented 5 years ago

let me know if this is still an issue