Trouble installing with rust
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.
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:
- Check the Rust version in the same terminal you used to build bose-dfu by running
rustc --versionandcargo --version. I'd be surprised if they both say 1.86.0, given the error message you got. - Uninstall your distro-packaged Rust. You don't need it, since you're using rustup to manage Rust instead.
- 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.
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.
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