Open pierg75 opened 1 year ago
I have the same error
Seems that the server binary termusic-server is not copied during installation. Please find it in the target/release directory and copy it to your $PATH.
You can also clone the repository and install manually make && make full
.
Seems the package you installed is not updated to reflect the new change.
Indeed by compiling manually and copying the termusic-server
, it works.
I guess then the problem is in the cargo install
installation, there doesn't seem to be a server
directory in the source code used by cargo, even though the version (0.7.11) is the same
Sorry I didn't update the readme of cargo install. Now the command becomes:
cargo install termusic termusic-server
@tramhao this is pkbuild on arch linux
# Maintainer: orhun <orhunparmaksiz@gmail.com>
# https://github.com/orhun/pkgbuilds
pkgname=termusic
pkgver=0.7.11
pkgrel=1
pkgdesc="Music Player TUI written in Rust"
arch=('x86_64')
url="https://github.com/tramhao/termusic"
license=('MIT' 'GPL3')
depends=('gstreamer' 'gst-plugins-base' 'gst-plugins-good' 'gst-plugins-bad' 'gst-plugins-ugly' 'gst-libav' 'dbus' 'ueberzug' 'protobuf')
optdepends=('yt-dlp: download mp3'
'ffmpeg: download mp3')
makedepends=('cargo')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha512sums=('3bf9cacb01ccaaa2415e0296d8870408b5d5b231dfc798236fa114fb1b61d9c3c03af4fedb2cdd98fa3a33f518b0b83f0636a2bfae8fa370a36bb33a378faa24')
options=('!lto')
prepare() {
cd "$pkgname-$pkgver"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "$pkgname-$pkgver"
cargo build --bin termusic --features cover --release --frozen
}
check() {
cd "$pkgname-$pkgver"
cargo test --bin termusic --frozen
}
package() {
cd "$pkgname-$pkgver"
install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
install -Dm 644 LICENSE_MIT -t "$pkgdir/usr/share/licenses/$pkgname"
}
seems need modification but I'm not familiar with the syntax of this file. Help!
Updated pkgbuild:
# Maintainer: orhun <orhunparmaksiz@gmail.com>
# https://github.com/orhun/pkgbuilds
pkgname=termusic
pkgver=0.7.11
pkgrel=1
pkgdesc="Music Player TUI written in Rust"
arch=('x86_64')
url="https://github.com/tramhao/termusic"
license=('MIT' 'GPL3')
depends=('gstreamer' 'gst-plugins-base' 'gst-plugins-good' 'gst-plugins-bad' 'gst-plugins-ugly' 'gst-libav' 'dbus' 'ueberzug' 'protobuf')
optdepends=('yt-dlp: download mp3'
'ffmpeg: download mp3')
makedepends=('cargo')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha512sums=('67f0b06ff37dbc3d16c77c6bdd0163dc547fbea1a25b3a7574b4540a4ad3a2059dc547d49411803fd9aa162d4f432ff5b99bef1e0f5c362342943fa76985f443')
options=('!lto')
prepare() {
cd "$pkgname-$pkgver"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "$pkgname-$pkgver"
cargo build --bin termusic --features cover --release --frozen
cargo build --bin termusic-server --features cover --release --frozen
}
check() {
cd "$pkgname-$pkgver"
cargo test --bin termusic --frozen
cargo test --bin termusic-server --frozen
}
package() {
cd "$pkgname-$pkgver"
install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
install -Dm 755 "target/release/$pkgname-server" -t "$pkgdir/usr/bin"
install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
install -Dm 644 LICENSE_MIT -t "$pkgdir/usr/share/licenses/$pkgname"
}
It can be interesting to catch this and display a proper error message: the termusic-server should be installed. It is disturbing while upgrading to a new version and I (thankfully) ran into this issue after a couple dozen of minutes.
It is also a good first issue :)
It can be interesting to catch this and display a proper error message: the termusic-server should be installed.
since e5283302bb1c9c6e5fbb8d99feb7bb64e85352ab there is a better error message, but there has not been a release since then yet (likely 0.8.0, or less recommended 0.7.12)
Edit: there is now v0.9.0
After today's update (though cargo) I keep getting a crash: