ebruck / radiotray-ng

An Internet radio player for Linux
GNU General Public License v3.0
255 stars 23 forks source link

Debian package is missing libappindicator3-1 dependency #177

Closed brentr closed 2 years ago

brentr commented 2 years ago

Debian package is missing dependency on required libappindicator3-1 library

ebruck commented 2 years ago

What version of Debian are you using?

nobef commented 2 years ago

Какую версию Debian вы используете?

Apparently debian 11, since I use it and I also write

ghost commented 2 years ago

As a temporary kludge you can use libayatana-appindicator3-1 instead of libappindicator3-1

dpkg-deb -x radiotray-ng*amd64.deb radiotray-ng-fix
dpkg-deb -e radiotray-ng*amd64.deb radiotray-ng-fix/DEBIAN
rm -f radiotray-ng*amd64.deb
sed -i 's/libappindicator3-1/libayatana-appindicator3-1/' radiotray-ng-fix/DEBIAN/control
dpkg-deb -b radiotray-ng-fix radiotray-ng-fix_amd64.deb
rm -rf radiotray-ng-fix
sudo apt install ./radiotray-ng-fix_amd64.deb

Now you should get the "cannot open shared object file" error when trying to run radiotray-ng, let's fix it:

sudo ln -s /usr/lib/x86_64-linux-gnu/libayatana-appindicator3.so.1 /usr/lib/x86_64-linux-gnu/libappindicator3.so.1

Works on my Debian Sid.

ebruck commented 2 years ago

Are you building from source or using the Ubuntu version?

brentr commented 2 years ago

I installed the .deb package on debian 11 It works fine after I manually installed the missing libappindicator3-1

ebruck commented 2 years ago

If you build the package from source, it should use the correct library: https://github.com/ebruck/radiotray-ng/blob/20a7904fa62dedc3c5880afd84d91030dd26d92d/package/CMakeLists.txt#L65