bose-dfu icon indicating copy to clipboard operation
bose-dfu copied to clipboard

Trouble installing with rust

Open novisecoder opened this issue 8 months ago • 3 comments

I installed rust, rustup, and rustc and am running rustc 1.86.0. for some reason the installer is telling me

error: failed to compile bose-dfu v1.1.0, intermediate artifacts can be found at /tmp/cargo-installJ8jMG8`

Caused by: package regex-automata v0.4.9 cannot be built because it requires rustc 1.65 or newer, while the currently active rustc version is 1.63.0 Try re-running cargo install with --locked `

Running the suggested command says package libudef is not found.

novisecoder avatar May 06 '25 20:05 novisecoder

I assume you're on some flavor of Linux? It's possible that you installed Rust (whose main component is the compiler, rustc) both from your distro's package manager and via rustup. Distros usually package fairly old versions of Rust, so that might be where the 1.63.0 compiler is coming from.

rustup ought to put lines in your shell profile so that its rustc overrides any system version, but that might have gone wrong.

I'd try the following:

  1. Check the Rust version in the same terminal you used to build bose-dfu by running rustc --version and cargo --version. I'd be surprised if they both say 1.86.0, given the error message you got.
  2. Uninstall your distro-packaged Rust. You don't need it, since you're using rustup to manage Rust instead.
  3. Try step 1 again. If the versions are newer, you're all set and should be able to build successfully. If the commands no longer exist, try logging out and back in (or rebooting) to make sure the rustup profile changes have taken effect.

If none of those work, let me know what distro you're on and exactly what packages you installed and I can try to help further.

tchebb avatar May 06 '25 23:05 tchebb

I managed to get the versions to match up and it prompted another error that was because I didn't have the libudev-dev package included. It might be a good idea to add a line in your readme for the installation instructions.

novisecoder avatar May 07 '25 15:05 novisecoder

I managed to get the versions to match up and it prompted another error that was because I didn't have the libudev-dev package included. It might be a good idea to add a line in your readme for the installation instructions.

sudo apt-get install libudev-dev did it for me

carafelix avatar Jul 10 '25 21:07 carafelix