Cannot build git2-rs in macOS Monterey 12.5.1
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 2.1k
- Forks
- 450
- Avg merge
- 11m
- Merged PRs (30d)
- 1
Description
I execute this commands but got a fail message.
git clone https://github.com/rust-lang/git2-rs
cd git2-rs
cargo build
then I read the README.md - Building on macOS 10.10+ and execute this commands.
brew install openssl@1.1
brew list openssl@1.1
and I got this
/usr/local/Cellar/openssl@1.1/1.1.1q/.bottle/etc/ (7 files)
/usr/local/Cellar/openssl@1.1/1.1.1q/bin/c_rehash
/usr/local/Cellar/openssl@1.1/1.1.1q/bin/openssl
/usr/local/Cellar/openssl@1.1/1.1.1q/include/openssl/ (104 files)
/usr/local/Cellar/openssl@1.1/1.1.1q/lib/libcrypto.1.1.dylib
/usr/local/Cellar/openssl@1.1/1.1.1q/lib/libssl.1.1.dylib
/usr/local/Cellar/openssl@1.1/1.1.1q/lib/engines-1.1/ (2 files)
/usr/local/Cellar/openssl@1.1/1.1.1q/lib/pkgconfig/ (3 files)
/usr/local/Cellar/openssl@1.1/1.1.1q/lib/ (4 other files)
/usr/local/Cellar/openssl@1.1/1.1.1q/share/doc/ (3983 files)
/usr/local/Cellar/openssl@1.1/1.1.1q/share/man/ (3983 files)
then I run ...
cargo clean
export OPENSSL_INCLUDE_DIR="/usr/local/Cellar/openssl@1.1/1.1.1q/include"
export OPENSSL_LIB_DIR="/usr/local/Cellar/openssl@1.1/1.1.1q/lib"
cargo build
but I got the fail message again:
finally, I can't build git2-rs. and i want to know how can I built it in macOS?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with README.md's “Building on macOS 10.10+” section and inspect the attached error_message.log. Reproduce the reported clone, cargo build, OpenSSL installation, environment-variable setup, and cargo clean steps on macOS Monterey. Done means identifying the build failure and documenting or validating a working build path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, rust
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100