Installing megasync for asahi

hey,
I want to install megasync desktop on my Asahi Fedora Remix but actually when I try to get it with:

wget https://mega.nz/linux/repo/Fedora_39/x86_64/megasync-Fedora_39.x86_64.rpm && sudo dnf install "$PWD/megasync-Fedora_39.x86_64.rpm

It seems that this package is not compatible with the architecture

Problema: conflicting requests

  • package megasync-4.11.0-3.1.x86_64 from @commandline does not have a compatible architecture
  • nothing provides libc.so.6(GLIBC_2.14)(64bit) needed by megasync-4.11.0-3.1.x86_64 from @commandline
  • nothing provides ld-linux-x86-64.so.2()(64bit) needed by megasync-4.11.0-3.1.x86_64 from @commandline
  • nothing provides ld-linux-x86-64.so.2(GLIBC_2.3)(64bit) needed by megasync-4.11.0-3.1.x86_64 from @commandline
  • nothing provides libc.so.6(GLIBC_2.11)(64bit) needed by megasync-4.11.0-3.1.x86_64 from @commandline
  • nothing provides libc.so.6(GLIBC_2.2.5)(64bit) needed by megasync-4.11.0-3.1.x86_64 from @commandline
  • nothing provides libc.so.6(GLIBC_2.3)(64bit) needed by megasync-4.11.0-3.1.x86_64 from @commandline
  • nothing provides libc.so.6(GLIBC_2.3.2)(64bit) needed by megasync-4.11.0-3.1.x86_64 from @commandline
  • nothing provides libc.so.6(GLIBC_2.3.4)(64bit) needed by megasync-4.11.0-3.1.x86_64 from @commandline
  • nothing provides libc.so.6(GLIBC_2.4)(64bit) needed by megasync-4.11.0-3.1.x86_64 from @commandline
  • nothing provides libc.so.6(GLIBC_2.6)(64bit) needed by megasync-4.11.0-3.1.x86_64 from @commandline
  • nothing provides libc.so.6(GLIBC_2.7)(64bit) needed by megasync-4.11.0-3.1.x86_64 from @commandline
  • nothing provides libc.so.6(GLIBC_2.9)(64bit) needed by megasync-4.11.0-3.1.x86_64 from @commandline
  • nothing provides libm.so.6(GLIBC_2.2.5)(64bit) needed by megasync-4.11.0-3.1.x86_64 from @commandline
    (try to add ‘–skip-broken’ to skip uninstallable packages)

any ideas? has someone found a solution for this?

thanks

Mega does not support aarch64 linux, you need to build it from source. There are build instructions here:
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=megasync

The caveat is that it doesn’t compile, you need to patch the source code to make it build. The problem is in a third party library google_breakpad which is used by the crash handler. If you remove the crash handler from source files main.cpp and MegaApplication.cpp and remove google_breakpad and CrashHandler.{cpp,h} from the build files MEGASync.pro and control.pri. You also need the patches from AUR.

It works great, but you need to remember to rebuild from source when there’s a new release (you can subscribe to github releases by email and RSS).

I’ve uploaded patches here

Thank you! wow. I must confess, I did not get exactly how/when to patch the source code. I will try to understand better, but actually, it would be really annoying to do the same everytime there is a new release. Thank you anyway.

hi,
I am still a bit hesitant to go for patching the source code and I found this workaround ( software installation - How to install Megasync on Ubuntu 22.04 arm64? - Ask Ubuntu ), do you think it could be a good option for an Asahi Fedora aarch64?

thanks

That won’t work on asahi, armhf is 32-bit arm. The deb package is designed to run on a raspberry pi that can run 32-bit code. The apple silicon can’t.

thank you.