[GH-ISSUE #126] [Bug] Linux binary: Exec format error #65

Closed
opened 2026-03-23 20:31:15 +00:00 by mirror · 10 comments
Owner

Originally created by @starsareintherose on GitHub (Dec 7, 2021).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/126

Describe the bug
I install binary and lib and data into the dest dir and exec the binary. All the files are from https://github.com/AppFlowy-IO/appflowy/releases/download/0.0.2/AppFlowy-Linux-arm64.zip

To Reproduce

bash: /usr/bin/appflowy: cannot execute binary file: Exec format error

Expected behavior
can run

Desktop (please complete the following information):

  • OS: ArchLinux
  • Browser Chromium
  • Version 96.0.4664.45

Additional context

  • Environment [e.g. flutter doctor -v or rustup show]
    Add any other context about the problem here.
Originally created by @starsareintherose on GitHub (Dec 7, 2021). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/126 **Describe the bug** I install binary and lib and data into the dest dir and exec the binary. All the files are from https://github.com/AppFlowy-IO/appflowy/releases/download/0.0.2/AppFlowy-Linux-arm64.zip **To Reproduce** ``` bash: /usr/bin/appflowy: cannot execute binary file: Exec format error ``` **Expected behavior** can run **Desktop (please complete the following information):** - OS: ArchLinux - Browser Chromium - Version 96.0.4664.45 **Additional context** - Environment [e.g. flutter doctor -v or rustup show] Add any other context about the problem here.
Author
Owner

@ghost commented on GitHub (Dec 7, 2021):

The Linux release you used explicitly refers to arm64. Your OS is most likely using a different architecture (like x86_64), which would explain the error message. Run uname -m to check this.

On a side-note, the same goes for the AUR package. The PKGBUILD refers to the x86_64 arch yet tries to use a arm64 source file. That will never work.

<!-- gh-comment-id:987618836 --> @ghost commented on GitHub (Dec 7, 2021): The Linux release you used explicitly refers to `arm64`. Your OS is most likely using a different architecture (like `x86_64`), which would explain the error message. Run `uname -m` to check this. On a side-note, the same goes for the [AUR package](https://aur.archlinux.org/packages/appflowy-bin/). The PKGBUILD refers to the `x86_64` [arch](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=appflowy-bin#n9) yet tries to use a `arm64` [source](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=appflowy-bin#n14) file. That will never work.
Author
Owner

@gausoft commented on GitHub (Dec 7, 2021):

So how to solve this issue?

<!-- gh-comment-id:987656254 --> @gausoft commented on GitHub (Dec 7, 2021): So how to solve this issue?
Author
Owner

@annieappflowy commented on GitHub (Dec 7, 2021):

So how to solve this issue?

Hi Gausoft,

You would have to clone the source and build it on your machine.

Annie

<!-- gh-comment-id:987664816 --> @annieappflowy commented on GitHub (Dec 7, 2021): > So how to solve this issue? Hi Gausoft, You would have to clone the source and build it on your machine. Annie
Author
Owner

@starsareintherose commented on GitHub (Dec 7, 2021):

Sorry, I condisering it as amd

<!-- gh-comment-id:987851200 --> @starsareintherose commented on GitHub (Dec 7, 2021): Sorry, I condisering it as amd
Author
Owner

@starsareintherose commented on GitHub (Dec 7, 2021):

But actually, it is not possible to compile under ArchLinux, the packages used does not exit.

<!-- gh-comment-id:988055629 --> @starsareintherose commented on GitHub (Dec 7, 2021): But actually, it is not possible to compile under ArchLinux, the packages used does not exit.
Author
Owner

@gausoft commented on GitHub (Dec 8, 2021):

So how to solve this issue?

Hi Gausoft,

You would have to clone the source and build it on your machine.

Annie

Sorry I'am unable to build it on my linux os

<!-- gh-comment-id:988523605 --> @gausoft commented on GitHub (Dec 8, 2021): > > So how to solve this issue? > > Hi Gausoft, > > You would have to clone the source and build it on your machine. > > Annie Sorry I'am unable to build it on my linux os
Author
Owner

@annieappflowy commented on GitHub (Dec 8, 2021):

So how to solve this issue?

Hi Gausoft,
You would have to clone the source and build it on your machine.
Annie

Sorry I'am unable to build it on my linux os

What error did you get? Would you mind sharing it?

<!-- gh-comment-id:988536447 --> @annieappflowy commented on GitHub (Dec 8, 2021): > > > So how to solve this issue? > > > > > > Hi Gausoft, > > You would have to clone the source and build it on your machine. > > Annie > > Sorry I'am unable to build it on my linux os What error did you get? Would you mind sharing it?
Author
Owner

@irfanbacker commented on GitHub (Dec 8, 2021):

But actually, it is not possible to compile under ArchLinux, the packages used does not exit.

Have you tried following the linux build instructions? Other users were able to compile on ArchLinux.

<!-- gh-comment-id:988796020 --> @irfanbacker commented on GitHub (Dec 8, 2021): > But actually, it is not possible to compile under ArchLinux, the packages used does not exit. Have you tried following the [linux build instructions](https://github.com/AppFlowy-IO/appflowy/blob/main/doc/BUILD_ON_LINUX.md)? Other users were able to compile on ArchLinux.
Author
Owner

@starsareintherose commented on GitHub (Dec 8, 2021):

#Maintainer Guoyi Zhang <GuoyiZhang at malacology dot net>

pkgname=appflowy
_pkg=AppFlowy
pkgver=2021.12.8
pkgrel=1
pkgdesc="an open-source alternative to Notion"
arch=('x86_64')
url="https://www.appflowy.io/"
license=('AGPL')
depends=('curl' 'sqlite3' 'openssl' 'clang' 'cmake' 'ninja' 'flutter' 'gtk3' 'rustup')
provides=('appflowy')
conflicts=('appflowy-bin' 'appflowy-git')
source=("git+https://github.com/AppFlowy-IO/appflowy.git")
sha256sums=('SKIP')
prepare(){
	cd $srcdir/$pkgname
#cp backend/configuration/base.example.yaml backend/configuration/base.yaml
#	cp backend/configuration/.env.example backend/configuration/.env
}
build(){
#	source $HOME/.cargo/env
	sudo rustup toolchain install nightly
	sudo rustup default nightly
	
	echo "export PATH=\$PATH:"`pwd`"/bin" >> ~/.profile
	export PATH="$PATH:`pwd`/bin"
	flutter channel dev
	flutter config --enable-linux-desktop

	cd appflowy/frontend
	cargo install --force cargo-make
	cargo install --force duckscript_cli

	cargo make -p production-linux-x86 appflowy-linux
}
package(){
 install	
}

The instructions are not so wise to explain.
Time is limited, I cannot waste time on this doc out of date and useless

<!-- gh-comment-id:989173327 --> @starsareintherose commented on GitHub (Dec 8, 2021): ``` #Maintainer Guoyi Zhang <GuoyiZhang at malacology dot net> pkgname=appflowy _pkg=AppFlowy pkgver=2021.12.8 pkgrel=1 pkgdesc="an open-source alternative to Notion" arch=('x86_64') url="https://www.appflowy.io/" license=('AGPL') depends=('curl' 'sqlite3' 'openssl' 'clang' 'cmake' 'ninja' 'flutter' 'gtk3' 'rustup') provides=('appflowy') conflicts=('appflowy-bin' 'appflowy-git') source=("git+https://github.com/AppFlowy-IO/appflowy.git") sha256sums=('SKIP') prepare(){ cd $srcdir/$pkgname #cp backend/configuration/base.example.yaml backend/configuration/base.yaml # cp backend/configuration/.env.example backend/configuration/.env } build(){ # source $HOME/.cargo/env sudo rustup toolchain install nightly sudo rustup default nightly echo "export PATH=\$PATH:"`pwd`"/bin" >> ~/.profile export PATH="$PATH:`pwd`/bin" flutter channel dev flutter config --enable-linux-desktop cd appflowy/frontend cargo install --force cargo-make cargo install --force duckscript_cli cargo make -p production-linux-x86 appflowy-linux } package(){ install } ``` The instructions are not so wise to explain. Time is limited, I cannot waste time on this doc out of date and useless
Author
Owner

@MikeWallaceDev commented on GitHub (Dec 12, 2021):

@starsareintherose @Gausoft Please look at the newest version of The Linux build instructions. These instructions have been tested on Ubuntu and Manjaro(Arch). I built AppFlowy on Arch myself, so I garantee that it works :)

Also, I believe that the AUR has been updated and may work correctly. (I did not test this)

@annieappflowy Can you please close this issue?

<!-- gh-comment-id:991817003 --> @MikeWallaceDev commented on GitHub (Dec 12, 2021): @starsareintherose @Gausoft Please look at the newest version of [The Linux build instructions](https://github.com/AppFlowy-IO/appflowy/blob/main/doc/BUILD_ON_LINUX.md). These instructions have been tested on Ubuntu and Manjaro(Arch). I built AppFlowy on Arch myself, so I garantee that it works :) Also, I believe that the AUR has been updated and may work correctly. (I did not test this) @annieappflowy Can you please close this issue?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#65
No description provided.