Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Error when installing on m2 Mac #15

@BenjaminBini

Description

@BenjaminBini

Hi,

The install script fails on my m2 mac because it fails to recognize the proc architecture.

Output of install.sh:

📦️ Installing:

_____  ______ ______
\__  \ \____ \____  \
 / __ \|  |_> >  |_> >
(____  /   __/|   __/
     \/|__|   |__|

🚀️ The Cross-Platform Package Management Assistant with Super Powers

🐧️ Detecting OS...

🍎️ MacOS
💻️ Detecting CPU arch...

🏰️: arm64

❌️ CPU Architecture not supported... Exiting...

=> Done.

This code is wrong:

CPUARCH=""
UNAMEM=$(uname -m)
echo -e "🏰️: $UNAMEM\n"

if [[ "$UNAMEM" == "x86_64" ]] || [[ "$UNAMEM" == "amd64" ]]; then
  CPUARCH="amd64"
elif [[ "$UNAMEM" == "arm" ]]; then
  CPUARCH="arm64"
else
  echo -e "❌️ CPU Architecture not supported... Exiting...\n"
  exit 1
fi

because MacOS returns arm64 for uname command:

$ uname -m
arm64

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions