Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install on Fedora 38 #614

Open
1 task done
xiaozhangup opened this issue Aug 5, 2023 · 31 comments
Open
1 task done

Can't install on Fedora 38 #614

xiaozhangup opened this issue Aug 5, 2023 · 31 comments
Labels
bug Something isn't working

Comments

@xiaozhangup
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When i use dnf to install rpm package on my fedora pc, it notice me

- nothing provides libmpv.so.1()(64bit) needed by spotube-3.0.1+20-20.x86_64 from @commandline

Expected Behavior

Install it normally

Steps to reproduce

  1. Download
  2. Use dnf install to install the program

Operating System

Fedora 38

Spotube version

3.0.1

Installation source

GitHub Releases (Binary)

Additional information

No response

@xiaozhangup xiaozhangup added the bug Something isn't working label Aug 5, 2023
@RTTEXFile
Copy link

Do you have the mpv package installed on your system?

@xiaozhangup
Copy link
Author

Do you have the mpv package installed on your system?

I tried installing the mpv software package, but I still get this error message.

@RTTEXFile
Copy link

What does ldconfig -p | grep libmpv output?

@xiaozhangup
Copy link
Author

What does ldconfig -p | grep libmpv output?

图片

@RTTEXFile
Copy link

Do you have mpv-libs installed? If not, try installing it and running spotube again.

@xiaozhangup
Copy link
Author

xiaozhangup commented Aug 5, 2023

Do you have mpv-libs installed? If not, try installing it and running spotube again.

Still can't install, and if i use appimage to run,it shows:
[xiaozhangup@xiaozhangup 桌面]$ ./Spotube-linux-x86_64.AppImage package:media_kit_libs_linux registered. [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Exception: Cannot find libmpv at the usual places. Depending upon your distribution, you can install the libmpv package to make shared library available globally. On Debian or Ubuntu based systems, you can install it with: apt install libmpv-dev. #0 NativeLibrary.ensureInitialized (package:media_kit/src/libmpv/core/native_library.dart:63) #1 ensureInitialized (package:media_kit/src/libmpv/entry_point.dart:14) #2 MediaKit.ensureInitialized (package:media_kit/src/media_kit.dart:33) #3 main (package:spotube/main.dart:87) <asynchronous suspension>

图片

@RTTEXFile
Copy link

You can't install mpv-libs? What about mpv-devel?

@xiaozhangup
Copy link
Author

That's my install command
图片

If i install mpv-devel, it will be:
图片

@RTTEXFile
Copy link

Is your AppImage the latest version?

@xiaozhangup
Copy link
Author

Is your AppImage the latest version?

yes

@RTTEXFile
Copy link

I have no more suggestions except the dangerous sudo ln -rsv /lib64/libmpv.so.2 /lib64/libmpv.so.1.

@xiaozhangup
Copy link
Author

I have no more suggestions except the dangerous sudo ln -rsv /lib64/libmpv.so.2 /lib64/libmpv.so.1.

So, can't it be installed directly on Fedora? Can this issue be resolved in future updates?

@KRTirtho
Copy link
Owner

KRTirtho commented Aug 5, 2023

@xiaozhangup please use Flatpak version for now

@xiaozhangup
Copy link
Author

@xiaozhangup please use Flatpak version for now

The Flatpak version of the tray has an issue where the tray icon cannot be displayed correctly on Gnome, instead showing "..."

@RTTEXFile
Copy link

I have no more suggestions except the dangerous sudo ln -rsv /lib64/libmpv.so.2 /lib64/libmpv.so.1.

Did this work?

@xiaozhangup
Copy link
Author

I have no more suggestions except the dangerous sudo ln -rsv /lib64/libmpv.so.2 /lib64/libmpv.so.1.

Did this work?

no

@KRTirtho
Copy link
Owner

KRTirtho commented Aug 6, 2023

The Flatpak version of the tray has an issue where the tray icon cannot be displayed correctly on Gnome, instead showing "..."

The flatpak sandboxing is messing with icon path thus this issue occurs, I'm trying to find a solution

@KRTirtho
Copy link
Owner

KRTirtho commented Aug 6, 2023

Keep an eye on #541 for this

@piko-piko
Copy link

Same issue on Artix here. Using appimage, i have mpv installed. libmpv.so libmpv.so.2 libmpv.so.2.1.0 are present in /lib64 and /usr/lib/, sudo ln -rsv /lib64/libmpv.so.2 /lib64/libmpv.so.1 did not help

@rayenghanmi
Copy link

Facing the same problem on my Fedora 38 as well.
Any solution?

@xiaozhangup
Copy link
Author

Facing the same problem on my Fedora 38 as well. Any solution?

use flatpak

@GoldenReverie
Copy link

I can also confirm that i can only use the flatpak to install on fedora 38 currently. Even using Yum yields no results. "libmpv.so.1()(64bit)" appears to be a misnamed or unique version of the mpv package?

@soulis-1256
Copy link

I'm sorry, but isn't the problem that Fedora 38's mpv-libs x86_64 package provides a newer version of the required shared library? (version 2 instead of 1). Given that, wouldn't you need to try to build Spotube using the newer version of the lib and then split the release for rpm into fedora 38 and anything older than 38?

@tungp99
Copy link

tungp99 commented Dec 2, 2023

@xiaozhangup CC: @KRTirtho @rayenghanmi

Flutter's AppImage generation tool, used by Spotube, has a poorly configured AppRun script which sets LD_LIBRARY_PATH to usr/lib. On most 64-bit systems, mpv is being installed into usr/lib64. Until this oversight is fixed upstream, you will have to modify the AppImage manually. Please follow the steps mentioned here: #643 (comment)

Edit: This issue has been generalized and filed upstream at leanflutter/flutter_distributor#139

Do you understand what relative path and absolute path mean?
LD_LIBRARY_PATH points to the bundled libmpv which should not have a problem at the first place.

@brvn0
Copy link

brvn0 commented Dec 20, 2023

Problem - as expected - is also occurring with Fedora 39

@Mubelotix
Copy link

Same problem on Ubuntu 23.10

@fabmazz
Copy link

fabmazz commented Jun 4, 2024

Same problem here in Fedora 40, can't install because

nothing provides libmpv.so.1()(64bit) needed by spotube-3.7.0+31-31.x86_64 from @commandline

The package mpv-libs provides libmpv.so.2()(64bit). https://packages.fedoraproject.org/pkgs/mpv/mpv-libs/fedora-40.html

Does the package really need a specific version of the library?

@Mubelotix
Copy link

I'm not really sure that's the problem as creating a symlink of libmpv.so.1 to libmpv.so.2 didn't change anything. But I might be wrong

@Morgan-DCL
Copy link

Nop, symlink doesn't work either. Can't get trough install. Tried Flatpack, same issues as #1564

@fabiuz
Copy link

fabiuz commented Oct 5, 2024

I use Fedora 38, this problem occurred here too.
After several analyses, I discovered how to work around this problem, see: #1931 (comment)

@universish
Copy link

is not feodra. it is fedora. please correct the title. thanks

@xiaozhangup xiaozhangup changed the title Can't install on Feodra 38 Can't install on Fedora 38 Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests