rust-lang / git2-rs

libgit2 bindings for Rust

Home Page:https://docs.rs/git2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to build when installing cargo-update on macOS 10.13

oceanlewis opened this issue · comments

commented

Having issues building git2-rs when installing cargo-update. I've tried setting CMAKE_PREFIX_PATH so cmake can find openssl's headers. Here's a log to see where exactly this fails building.

log.txt

related issue filed at cargo-update

I do have openssl and libssh2 installed with Homebrew on my machine, so unless there's a variable I need to explicitly set now - I'm at a loss.

Thanks.

I was debugging this issue with @alexcrichton. For now, you could work around this with PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig when running a cargo command.