Closed samdvr closed 2 months ago
How did you solve this? I'm currently having the same issue on a Ubuntu 23.10 machine
when I add the dependencies explicitly in Cargo.toml it works not through cargo add
[dependencies]
async-trait = "0.1.77"
pingora = { version = "0.1.0", features = [
"pingora-proxy",
"pingora-load-balancing",
"lb",
] }
Seems to be an ordering issue on adding dependencies
Well, in my machine it's still failing after adding the explicit dependecies. I'll have to wait until this is resolved before trying pingora
I'm currently having the same issue on a macOS 14.3.1(mbp M3 ) machine.
Delete your Cargo.lock
file after changing Pingora's feature list and rebuild. That should work. Not ideal but it'll unblock you all.
Note: you also need to have cmake
installed.
Delete your
Cargo.lock
file after changing Pingora's feature list and rebuild. That should work. Not ideal but it'll unblock you all.Note: you also need to have
cmake
installed.
thanks,it works for me
Delete your
Cargo.lock
file after changing Pingora's feature list and rebuild. That should work. Not ideal but it'll unblock you all.Note: you also need to have
cmake
installed.
thank you, also worked for me
This question has been stale for a week. It will be closed in an additional day if not updated.
This issue has been closed because it has been stalled with no activity.
Describe the bug
Cannot build the project due to zstd-sys conflict
Pingora info
Please include the following information about your environment:
Pingora version: 0.0.1 Rust version: i.e.
cargo --version
1.76.0 Operating system version: Apple SiliconSteps to reproduce
add this to cargo.toml
cargo build Updating crates.io index error: failed to select a version for
zstd-sys
. ... required by packagezstd-safe v4.1.1+zstd.1.5.0
... which satisfies dependencyzstd-safe = "=4.1.1"
of packagezstd v0.9.0+zstd.1.5.0
... which satisfies dependencyzstd = "^0.9.0"
of packagepingora-header-serde v0.1.0
... which satisfies dependencypingora-header-serde = "^0.1.0"
of packagepingora-cache v0.1.0
... which satisfies dependencypingora-cache = "^0.1.0"
of packagepingora-proxy v0.1.0
... which satisfies dependencypingora-proxy = "^0.1.0"
of packagepingora v0.1.0
... which satisfies dependencypingora = "^0.1.0"
(locked to 0.1.0) of packageload_balancer v0.1.0 (/load_balancer)
versions that meet the requirements=1.6.1
are: 1.6.1+zstd.1.5.0the package
zstd-sys
links to the native libraryzstd
, but it conflicts with a previous package which links tozstd
as well: packagezstd-sys v2.0.9+zstd.1.5.5
... which satisfies dependencyzstd-sys = "^2.0.9"
(locked to 2.0.9+zstd.1.5.5) of packageload_balancer v0.1.0 (/Users/sam/Documents/RustProjects/load_balancer)
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses thelinks = "zstd"
value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.