From 631ca6393e4eaeeb7b6e7a5e94aa23acbc037815 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 4 Dec 2017 12:32:36 +0530 Subject: [PATCH] Linux installer: A nicer error message if the user tries to run the installer on an ARM machine --- setup/linux-installer.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup/linux-installer.py b/setup/linux-installer.py index cbf5006816..859d80bdc6 100644 --- a/setup/linux-installer.py +++ b/setup/linux-installer.py @@ -723,6 +723,12 @@ def check_umask(): def main(install_dir=None, isolated=False, bin_dir=None, share_dir=None, ignore_umask=False): if not ignore_umask and not isolated: check_umask() + machine = os.uname()[4] + if machine and machine.lower().startswith('arm'): + raise SystemExit( + 'You are running on an ARM system. The calibre binaries are only' + ' available for x86 systems. You will have to compile from' + ' source.') run_installer(install_dir, isolated, bin_dir, share_dir)