[GH-ISSUE #355] unable to build due to broken dependency: rand #234

Closed
opened 2026-02-27 19:29:33 +03:00 by kerem · 2 comments
Owner

Originally created by @zeraien on GitHub (Jul 23, 2019).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/355

Commit: 1f75479170

pi@retropie:~/librespot $ cargo build --release
Updating registry https://github.com/rust-lang/crates.io-index
Updating git repository https://github.com/tomaka/rodio
Updating git repository https://github.com/plietar/rust-tremor
Updating git repository https://github.com/plietar/rust-mdns
Updating git repository https://github.com/plietar/dns-parser

error: no matching package named getrandom_package found (required by rand)
location searched: registry https://github.com/rust-lang/crates.io-index
version required: ^0.1.1```

Originally created by @zeraien on GitHub (Jul 23, 2019). Original GitHub issue: https://github.com/librespot-org/librespot/issues/355 Commit: 1f75479170d71d82085510b2b6f34ce0756a0e8d pi@retropie:~/librespot $ cargo build --release Updating registry `https://github.com/rust-lang/crates.io-index` Updating git repository `https://github.com/tomaka/rodio` Updating git repository `https://github.com/plietar/rust-tremor` Updating git repository `https://github.com/plietar/rust-mdns` Updating git repository `https://github.com/plietar/dns-parser` error: no matching package named `getrandom_package` found (required by `rand`) location searched: registry https://github.com/rust-lang/crates.io-index version required: ^0.1.1```
kerem closed this issue 2026-02-27 19:29:33 +03:00
Author
Owner

@hermann4 commented on GitHub (Jul 29, 2019):

Had the same issue,
do rustup update first, this should solve your problem

<!-- gh-comment-id:516138908 --> @hermann4 commented on GitHub (Jul 29, 2019): Had the same issue, do `rustup update` first, this should solve your problem
Author
Owner

@zeraien commented on GitHub (Jul 31, 2019):

My issue was that I was using the native rustc and cargo packages from the raspbian repo, rather than the manually installed rustup. When i installed rustup from the rustup page, the build went fine.

<!-- gh-comment-id:516687645 --> @zeraien commented on GitHub (Jul 31, 2019): My issue was that I was using the native `rustc` and `cargo` packages from the raspbian repo, rather than the manually installed rustup. When i installed rustup from the rustup page, the build went fine.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#234
No description provided.