Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when installing on m2 Mac #15

Closed
BenjaminBini opened this issue Sep 23, 2024 · 5 comments
Closed

Error when installing on m2 Mac #15

BenjaminBini opened this issue Sep 23, 2024 · 5 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@BenjaminBini
Copy link

BenjaminBini commented Sep 23, 2024

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
@BenjaminBini
Copy link
Author

It also fails with release download.
The URL is wrong, it contains "macos" instead of "darwin".

@BenjaminBini
Copy link
Author

Definitely some additional bugs:

image

@hkdb
Copy link
Owner

hkdb commented Sep 23, 2024

Thanks for reporting this! I am a bit slammed with work in the next few weeks but will certainly find time to get this fixed as soon as I can.

@BenjaminBini
Copy link
Author

I'll try to submit a PR if I have time in the next days 👍

@hkdb hkdb added bug Something isn't working help wanted Extra attention is needed labels Sep 24, 2024
@hkdb
Copy link
Owner

hkdb commented Dec 23, 2024

Got my hands on a m3 air to work on this. v0.19 should fix this plus more...

@hkdb hkdb closed this as completed Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants