Firstly, I run these commands:
brew install libpq
brew link --force libpq
Then:
PQ_LIB_DIR="$(brew --prefix libpq)/lib"
cargo install diesel_cli --no-default-features --features postgres
I solved it with:
cargo clean
later
cargo build
Để lại một bình luận