I’m getting an error when building spotifyd. I’ve tried manually building it and also using cargo install spotifyd --locked but to no avail. I’ve downloaded the binary but I am unsure on how to use it… any help is greatly appreciated
error: failed to run custom build command for `alsa-sys v0.1.2`
Caused by:
process didn't exit successfully: `/tmp/cargo-installtlhkH8/release/build/alsa-sys-ce8b1689098727b5/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "`\"pkg-config\" \"--libs\" \"--cflags\" \"alsa\"` did not exit successfully: exit code: 1\n--- stderr\nPackage alsa was not found in the pkg-config search path.\nPerhaps you should add the directory containing `alsa.pc\'\nto the PKG_CONFIG_PATH environment variable\nPackage \'alsa\', required by \'virtual:world\', not found\n"', /home/zeno/.cargo/registry/src/github.com-1ecc6299db9ec823/alsa-sys-0.1.2/build.rs:4:38
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `spotifyd v0.2.24`, intermediate artifacts can be found at `/tmp/cargo-installtlhkH8`
Caused by:
build failed
Thanks for the reply, Tom. Apparently, I was missing the i686 libraries of both openssl and alsa-lib-devel… kinda annoying. Do you know if there’s an easy way to install both the i686 and x86_64 of a given package instead of explicitly typing both of them?
I now got this message, though: warning: be sure to add /home/zeno/.cargo/bin to your PATH to be able to run the installed binaries
Alright, thanks. I’m trying to run spotifyd using the terminal but it doesn’t find the command and if I open ~/.cargo/bin/cargo and run ./spotifyd nothing happens… I don’t know what I’m doing wrong?
.config is a fedora/linux system folder its created when the user is created. The ‘.’ means it hidden. If you are looking for it using the file manager you will need to enable view hidden files. Via the terminal you can confirm it exists with:
ll -d ~/.config
then check the spotifyd folder exists:
ll -d ~/.config/spotifyd
One you have confirmed it exists, issue the following to edit it:
nano ~/.config/spotifyd/spotifyd.conf
if ~/.config really doesn’t exist, then something is really broken on your system. I would create a new user and double check if .config is created, if it isn’t I would conisder a reinstall.
❯ spotifyd
thread ‘main’ panicked at ‘called Result::unwrap() on an Err value: Custom(“unknown variant \"alsa\", expected one of alsa, portaudio, pulseaudio, rodio”)’, /home/zeno/.cargo/registry/src/github.com-1ecc6299db9ec823/spotifyd-0.2.24/src/config.rs:415:85
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
❯ RUST_BACKTRACE=1 spotifyd
thread ‘main’ panicked at ‘called Result::unwrap() on an Err value: Custom(“unknown variant \"alsa\", expected one of alsa, portaudio, pulseaudio, rodio”)’, /home/zeno/.cargo/registry/src/github.com-1ecc6299db9ec823/spotifyd-0.2.24/src/config.rs:415:85
stack backtrace:
0: rust_begin_unwind
1: core::panicking::panic_fmt
2: core::option::expect_none_failed
3: spotifyd::config::CliConfig::load_config_file_values
4: spotifyd::main
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.
iirc, fedora updated to PipeWire… could this be the reason why it fails?