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

Support Apple M1 CPU #826

Open
2 of 4 tasks
toffguy77 opened this issue Apr 8, 2021 · 6 comments
Open
2 of 4 tasks

Support Apple M1 CPU #826

toffguy77 opened this issue Apr 8, 2021 · 6 comments

Comments

@toffguy77
Copy link

toffguy77 commented Apr 8, 2021

Prerequisites

  • I am running the latest version. (up upgrade)
  • I searched to see if the issue already exists.
  • I inspected the verbose debug output with the -v, --verbose flag.
  • Are you an Up Pro subscriber?

Description

It is not possible ti install Up on Apple M1 Macbook Pro

Steps to Reproduce

❯ curl -sf https://up.apex.sh/install | sh
apex/up: platform darwin/arm64 is not supported.  Make sure this script is up-to-date and file request at https://github.com/apex/up/issues/new

Slack

Join us on Slack https://chat.apex.sh/

@toffguy77 toffguy77 changed the title Support Apple M1 pro Support Apple M1 processor Apr 8, 2021
@toffguy77 toffguy77 changed the title Support Apple M1 processor Support Apple M1 CPU Apr 8, 2021
@heycalmdown
Copy link

--- up.original.sh	2021-04-28 15:40:30.000000000 +0900
+++ up.sh	2021-04-28 15:40:56.000000000 +0900
@@ -58,6 +58,7 @@
   found=1
   case "$platform" in
     darwin/amd64) found=0 ;;
+    darwin/arm64) found=0 ;;
     darwin/386) found=0 ;;
     linux/amd64) found=0 ;;
     linux/386) found=0 ;;
@@ -124,6 +125,7 @@
     x86) arch="386" ;;
     i686) arch="386" ;;
     i386) arch="386" ;;
+    arm64) arch="amd64" ;;
     aarch64) arch="arm64" ;;
     armv5*) arch="arm5" ;;
     armv6*) arch="arm6" ;;

Just a hack for Rosetta 2

@toymachiner62
Copy link

--- up.original.sh	2021-04-28 15:40:30.000000000 +0900
+++ up.sh	2021-04-28 15:40:56.000000000 +0900
@@ -58,6 +58,7 @@
   found=1
   case "$platform" in
     darwin/amd64) found=0 ;;
+    darwin/arm64) found=0 ;;
     darwin/386) found=0 ;;
     linux/amd64) found=0 ;;
     linux/386) found=0 ;;
@@ -124,6 +125,7 @@
     x86) arch="386" ;;
     i686) arch="386" ;;
     i386) arch="386" ;;
+    arm64) arch="amd64" ;;
     aarch64) arch="arm64" ;;
     armv5*) arch="arm5" ;;
     armv6*) arch="arm6" ;;

Just a hack for Rosetta 2

Is this the official solution? If so can you elaborate on the solution? Like where did you get the up.sh file if you can't run this command $ curl -sf https://up.apex.sh/install | sh?

@kazzkiq
Copy link

kazzkiq commented Dec 24, 2021

@toymachiner62 this command literally fetches up.sh and executes it.

All you have to do is open the link directly, copy the content, save it somewhere in your mac (e.g. up.sh), add the lines mentioned and run it via sh /path/to/your/up.sh.

@toymachiner62
Copy link

toymachiner62 commented Dec 26, 2021

arm64) arch="amd64" ;;

Thanks for this.

Getting a different error now:

$ up version
apex/up: found version ersion for darwin/amd64
apex/up: downloading https://github.com/apex/up/releases/download/version/up_ersion_darwin_amd64.tar.gz
curl: (22) The requested URL returned error: 404

I'm on an M1 Max CPU if that matters.

@jaimeiniesta
Copy link
Contributor

Hi, I also found this, but could install the script from a Rosetta terminal.

@gkurl
Copy link

gkurl commented Jun 8, 2022

Tried installing this on my M1 Macbook Pro using the above up.sh fix, but all I get is:

apex/up: checking GitHub for latest version usage: cut -b list [-n] [file ...] cut -c list [file ...] cut -f list [-s] [-w | -d delim] [file ...]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants