zen-browser / desktop

🌀 Experience tranquillity while browsing the web without people tracking you!
https://zen-browser.app
Mozilla Public License 2.0
19.37k stars 467 forks source link

Installation problem #2388

Open Heinrich-XIAO opened 1 month ago

Heinrich-XIAO commented 1 month ago

Captchas

What happened?

I can't install zen browser from the downloads page as it doens't have aarch64, and I can't install it from bash <(curl https://updates.zen-browser.app/appimage.sh), because it complains about page size problems (I'm using 16k because asahi linux)

[i] ╔════════════════════════════════════════════════════╗
[i] ║                                                    ║
[i] ║    (ノ◕ヮ◕)ノ*:・゚✧  Zen Browser Installer            ║
[i] ║                                                    ║
[i] ║    CPU: AVX2 Not Supported (Generic Version)       ║
[i] ║    Status: Zen Browser Not Installed               ║
[i] ║    zsync: Not Installed (Needed for Updates)       ║
[i] ║                                                    ║
[i] ╚════════════════════════════════════════════════════╝
[i]
[i] (★^O^★) What would you like to do?
[i]   1) Install
[i]   2) Uninstall
[i]   0) Exit
Enter your choice (0-3): 1
[i]
[w] AVX2 not supported. Using generic version...
[w] Downloading Zen from https://github.com/zen-browser/desktop/releases/latest/download/zen-generic.AppImage
[i]
[i] Installing Zen Browser...
########################################################################################################### 100.0%
[i] Install completed successfully!
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
/proc/self/fd/11: line 162: 28785 Segmentation fault      (core dumped) "${appimage_path}" --appimage-extract

Reproducible?

Version

N/A

What platform are you seeing the problem on?

Linux

Relevant log output

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 12497  100 12497    0     0   130k      0 --:--:-- --:--:-- --:--:--  129k
[i] ╔════════════════════════════════════════════════════╗
[i] ║                                                    ║
[i] ║    (ノ◕ヮ◕)ノ*:・゚✧  Zen Browser Installer            ║
[i] ║                                                    ║
[i] ║    CPU: AVX2 Not Supported (Generic Version)       ║
[i] ║    Status: Zen Browser Not Installed               ║
[i] ║    zsync: Not Installed (Needed for Updates)       ║
[i] ║                                                    ║
[i] ╚════════════════════════════════════════════════════╝
[i]
[i] (★^O^★) What would you like to do?
[i]   1) Install
[i]   2) Uninstall
[i]   0) Exit
Enter your choice (0-3): 1
[i]
[w] AVX2 not supported. Using generic version...
[w] Downloading Zen from https://github.com/zen-browser/desktop/releases/latest/download/zen-generic.AppImage
[i]
[i] Installing Zen Browser...
########################################################################################################### 100.0%
[i] Install completed successfully!
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
/proc/self/fd/11: line 162: 28785 Segmentation fault      (core dumped) "${appimage_path}" --appimage-extract
dosubot[bot] commented 1 month ago

Hey there, @Heinrich-XIAO! I'm here to help you out with any bugs, questions, or contributions you have. Let's tackle this issue together!

It seems like you're encountering an issue with installing Zen Browser on an aarch64 architecture, specifically related to system page size and a segmentation fault. There is a similar closed issue regarding Linux ARM64 support, which might be relevant to your situation [1].

The suggested solution for building Zen Browser on an ARM64 architecture involves several steps, including installing necessary dependencies and modifying configuration files. Here's a brief overview of the process:

  1. Install required development tools and libraries.
  2. Download and set up the WASI SDK for ARM64.
  3. Clone the Zen Browser repository and initialize it.
  4. Modify the mozconfig file to support ARM64.
  5. Disable EME/Widevine as it's not supported on ARM64.
  6. Update locales and build the browser.

For detailed instructions, you can refer to the solution provided in the closed issue [1]. This might help you build the browser from source on your system.

To continue talking to Dosu, mention @dosu.

Heinrich-XIAO commented 1 month ago

This is not the same thing, but arguably similar.

LeMoonStar commented 4 weeks ago

Zen is not currently being built for Linux on AArch64 - only x86-64 to my knowledge. This includes the AppImage.

You can try building Zen yourself - however I cannot guarantee that Zen will build on AArch64 Linux.

You could also look into the (custom/user) repositories for your linux distro to see if somebody has already created a package providing Zen for AArch64.

Heinrich-XIAO commented 4 weeks ago

There isn't a package for it on dnf. And I can't seem to build it myself. I'm getting this error.

00:00:13 checking the wasm C compiler can find wasi headers...
00:00:13 DEBUG: Creating `/tmp/conftest6u09sh1x.c` with content:
00:00:13 DEBUG: | #include <string.h>
00:00:13 DEBUG: | int
00:00:13 DEBUG: | main(void)
00:00:13 DEBUG: | {
00:00:13 DEBUG: |
00:00:13 DEBUG: |   ;
00:00:13 DEBUG: |   return 0;
00:00:13 DEBUG: | }
00:00:13 DEBUG: Executing: `/usr/lib64/ccache/clang -std=gnu99 --target=wasm32-wasi /tmp/conftest6u09sh1x.c -c`
00:00:13 DEBUG: The command returned non-zero exit status 1.
00:00:13 DEBUG: Its error output was:
00:00:13 DEBUG: | /tmp/conftest6u09sh1x.c:1:10: fatal error: 'string.h' file not found
00:00:13 DEBUG: |     1 | #include <string.h>
00:00:13 DEBUG: |       |          ^~~~~~~~~~
00:00:13 DEBUG: | 1 error generated.
00:00:13 ERROR: Cannot find wasi headers or problem with the wasm compiler. Please fix the problem. Or build with --without-wasm-sandboxed-libraries.
00:00:13  Config object not found by mach.
00:00:13 *** Fix above errors and then restart with "./mach build"
LeMoonStar commented 4 weeks ago

In this case building for AArch64 Linux likely doesn't work currently.

Regarding DNF: There is a Fedora COPR repo for Zen - however, as it uses the builds from GitHub Actions, this as well only supports x86-64.

julienrbrt commented 4 weeks ago

I'd love to see support for Asahi as well, I just stumbled on this issue while checking why it didn't work.

saifulapm commented 2 weeks ago

Love to see on Asahi

saifulapm commented 2 weeks ago
/proc/self/fd/11: line 170: /tmp/ZenBrowser.AppImage: cannot execute binary file: Exec format error

Getting this error on Asahi Linux

youwen5 commented 2 weeks ago
/proc/self/fd/11: line 170: /tmp/ZenBrowser.AppImage: cannot execute binary file: Exec format error

Getting this error on Asahi Linux

See https://github.com/zen-browser/desktop/discussions/883#discussioncomment-11210440