Good everyone, I am installing magic mirror, I would like to install spotify and for that I need the librespot library, librespot needs rust to work, but I always get the error "No such file or directory (os error 2) ". I've searched the forum but I haven't seen anything. I don't understand much either, I'm a newbie. OS: Raspbian 11 32bits.
[package]
name = "librespot"
version = "0.4.2"
authors = ["Librespot Org"]
license = "MIT"
description = "An open source client library for Spotify, with support for Spotify Connect"
keywords = ["spotify"]
repository = "https://github.com/librespot-org/librespot"
readme = "README.md"
edition = "2018"
[workspace]
[lib]
name = "librespot"
path = "src/lib.rs"
...
Sanity check: you installed the Rust toolchain like described here? Is there a ~/.cargo/bin/ folder on your machine containing the cargo executable? If so, have you added the folder to the PATH environment variable?
This does not look good. What is it? Is it a different version of Cargo or a different program that happens to also be named Cargo? Either way, I assume that binary is causing you issues when you try to execute cargo build or any other subcommand.
I don't know what it is, I needed to charge for librespot, I think it was installed automatically when installing librespot? To install it you run a script, maybe you are downloading it there?
Weird. I don't know where this is coming from but it looks fishy to me. I'm a little bit out of my depth here and I don't want to recommend just deleting it and breaking something on your machine
Maybe if your run ~/.cargo/bin/cargo build --release, it will work?
The other reason you can get “No such file or directory” for an executable that clearly exists is when the error is for a dynamically linked library instead. Cargo doesn’t have any unusual dependencies, but you could try
I notice you said you’re using 32-bit Raspbian, but the rustup output you included says
info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'
which is obviously for 64-bit ARM. I would expect this to be either arm-unknown-linux-gnueabihf or armv7-unknown-linux-gnueabihf. I don’t know about the error message, but this can’t be helping.
I believe the commands to install a different toolchain for ARM would be: