Skip to content

Commit 363bfef

Browse files
committed
Fix CPU ISA detection logic in standalone install script
On Linux, `uname -m` will report `aarch64` on 64-bit ARM CPUs. The previous logic in this script matched that against the expression `aarch*`, causing the script to wrongly select the 32-bit ARM architecture identifier, which gives a runtime error when launching the CLI due to the lack of 32-bit dynamic linker on the system (specifically, the error indicates that `ld-linux-armhf.so.3` is missing). Signed-off-by: Zach Mullen <zach.mullen@kitware.com>
1 parent eb9743f commit 363bfef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install-standalone.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
ARCH="\$(uname -m)"
3030
if [ "\$ARCH" == "x86_64" ]; then
3131
ARCH=x64
32+
elif [[ "\$ARCH" == "aarch64" || "\$ARCH" == "arm64" ]]; then
33+
ARCH=arm64
3234
elif [[ "\$ARCH" == aarch* ]]; then
3335
ARCH=arm
34-
elif [[ "\$ARCH" == "arm64" ]]; then
35-
ARCH=arm64
3636
else
3737
echoerr "unsupported arch: \$ARCH"
3838
exit 1

0 commit comments

Comments
 (0)