ITADN

Failed to select a version for lzma-sys

#67Openbenthair 创建于 2025-08-29
B
benthaircommented
The git version of this crate (`yt-dlp = {version = '1.3.4', git = 'https://github.com/boul2gom/yt-dlp'}`) can't build: ``` warning: unused manifest key: profile.release.debug-assertion Updating crates.io index Updating git repository `https://github.com/boul2gom/yt-dlp` error: failed to select a version for `lzma-sys`. ... required by package `xz2 v0.1.7` ... which satisfies dependency `xz2 = "^0.1.7"` of package `yt-dlp v1.3.4 (https://github.com/boul2gom/yt-dlp#5a218cb9)` ... which satisfies git dependency `yt-dlp` of package `descargar v0.1.0 (/home/user/rust/descargar)` versions that meet the requirements `^0.1.18` are: 0.1.20, 0.1.19 the package `lzma-sys` links to the native library `lzma`, but it conflicts with a previous package which links to `lzma` as well: package `liblzma-sys v0.4.4` ... which satisfies dependency `liblzma-sys = "^0.4.4"` of package `descargar v0.1.0 (/home/user/rust/descargar)` 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 the `links = "lzma"` value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links. failed to select a version for `lzma-sys` which could resolve this conflict ```
0 条评论