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 arm build #127

Closed
bertday opened this issue Jun 5, 2021 · 20 comments
Closed

Support Apple arm build #127

bertday opened this issue Jun 5, 2021 · 20 comments

Comments

@bertday
Copy link

bertday commented Jun 5, 2021

Hello!

When I try to brew install akamai, I'm getting the following error:

Error: akamai: no bottle available!
You can try to install from source with:
  brew install --build-from-source akamai

I've tried installing verbosely and with debugging (-vd flags), which prepends that error with:

/opt/homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/akamai.rb
/opt/homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/go.rb

Has anyone else run into this issue, or can think of other diagnostics I might be able to run?

Thank you everyone in advance for any help/thoughts on this!

@lkowalsk-akamai-com
Copy link
Contributor

Hi @rbrtmrtn,
can you share some more details about your device? What OS, which architecture, etc.

@bertday
Copy link
Author

bertday commented Jun 10, 2021

Hi @lkowalsk-akamai-com, thank you for following up and I'm happy to share more about my setup.

OS: macOS Big Sur 11.4
CPU: Apple M1 (ARM64)
Output of brew -v:

Homebrew 3.1.11
Homebrew/homebrew-core (git revision fc705274e8; last commit 2021-06-10)
Homebrew/homebrew-cask (git revision 54e0991bc7; last commit 2021-06-10)

I hope this is helpful but please feel free to let me know if I missed any details.

@chenrui333
Copy link

I think the issue is the arm64 build on this homebrew PR was not successful.

As I just triggered a new run in here, the arm64 build was not successful either.
https://github.com/Homebrew/homebrew-core/runs/2872471573

==> /opt/homebrew/Cellar/akamai/1.2.1/bin/akamai install --force purge

Attempting to fetch command from https://github.com/akamai/cli-purge.git... [          ] ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
Attempting to fetch command from https://github.com/akamai/cli-purge.git... ... [OK]

Installing... ... [WARN]

Downloading binary... ... [FAIL]
Unable to install selected package
Error: akamai: failed
An exception occurred within a child process:
  Minitest::Assertion: Expected /Purge/ to match "\n                                                            \n                Welcome to Akamai CLI v1.2.1                \n                                                            \n\nHelp Akamai improve Akamai CLI by automatically sending anonymous diagnostics and usage data.\nExamples of data being sent include upgrade statistics, and packages installed and updated.\nNote: if you choose to opt-out, a single %s event will be submitted to help track overall usage.\n anonymous\n\e[0G\e[2K\e[1;92m? \e[0m\e[1;99mSend anonymous diagnostics and usage data to Akamai? [Y/n]:  \e[0m\e[37m(Y/n) \e[0m\e[?25l\e7\e[999;999f\e[6n\e[6nunable to locate runtime: go. Please verify if the executable is included in your PATH\nUnable to download binary: invalid response status while fetching command binary: 404\n\e[31m ERROR\e[0m[0000] Unable to download binary: invalid response status while fetching command binary: 404 \e[31mcommand\e[0m=install\n\e[31m ERROR\e[0m[0000] INSTALL ERROR: Unable to install selected package \e[31mcommand\e[0m=install\n".

@bertday
Copy link
Author

bertday commented Jun 21, 2021

Thank you for digging into this @chenrui333! That was my suspicion too, that ARM64 wasn't building correctly. @lkowalsk-akamai-com just wanted to give a quick ping on this... Thank you everyone for your help, I really appreciate it!

@chenrui333
Copy link

maybe we should rename the issue to something like support apple arm build?

@lkowalsk-akamai-com
Copy link
Contributor

Hi @rbrtmrtn and @chenrui333
Current CLI is not supported on Apple M1. This will need to be investigated and prioritized. I agree with @chenrui333 that it would be good to change the name of this issue to be in line with what was identified.

@jtognazzi
Copy link

Any news here ?
What is the easiest way to have Akamai CLI running on Apple arm64 ?

@lkowalsk-akamai-com
Copy link
Contributor

Hi @jtognazzi , this is definietelly something that is on our radar, but we do not have any dates that we could share right now.

@elvischang-lll
Copy link

Any update on the M1 Apple support on Akamai CLI home-brew install?

@lkowalsk-akamai-com
Copy link
Contributor

lkowalsk-akamai-com commented Apr 8, 2022

Hi @elvischang-lll
This is becoming bigger priority for us, so we should be adding this support in coming months. Will update this thread if I will get some visibility on more precise timing. Thank you for your patience.

@elvischang-lll
Copy link

elvischang-lll commented Apr 8, 2022

Thanks @lkowalsk-akamai-com...

Guess would need new docker image...
Status: Downloaded newer image for akamai/shell:latest
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault

@tomtom16
Copy link

I managed to build the src of akamai/cli and akamai/cli-purge on arm64.
You can kinda follow the steps of their README.md but need to have go in a version not higher than 1.16 and have the env variable GO111MODULE=auto

@robertolopezlopez
Copy link
Contributor

robertolopezlopez commented Apr 21, 2022 via email

@robertolopezlopez
Copy link
Contributor

@elvischang-lll :

Guess would need new docker image... Status: Downloaded newer image for akamai/shell:latest WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

qemu: uncaught target signal 11 (Segmentation fault) - core dumped Segmentation fault

That's not a cli issue, although if course related. Follow this thread: akamai/akamai-docker#58

Regards,

Roberto

@robertolopezlopez
Copy link
Contributor

Hi @elvischang-lll , @jtognazzi , @chenrui333 , @rbrtmrtn ,

With today release, we have finally started shipping Darwin ARM64 binaries. Please beware that still some Go submodules do not supply such binaries yet.

Closing this issue here.

Regards,

Roberto

@robertolopezlopez
Copy link
Contributor

It is already on homebrew https://formulae.brew.sh/formula/akamai#default

image

@elvischang-lll
Copy link

elvischang-lll commented Oct 11, 2022 via email

@wzagrajcz
Copy link
Contributor

Hello @elvischang-lll,
To install a package You need to use the full name, not an alias. Can You please try with
akamai install property-manager?

Regards,
Wojciech

@dictav
Copy link

dictav commented Dec 8, 2022

I cannot install some commands...

$ akamai install property-manager
Attempting to fetch command from https://github.com/akamai/cli-property-manager.git... ... [OK]
Installing... ... [OK]
$ akamai install purge
Attempting to fetch command from https://github.com/akamai/cli-purge.git... ... [OK]
Installing... ... [WARN]
unable to build binary: purge
? Binary command(s) found, would you like to download and install it? Yes
Downloading binary... ... [FAIL]
Unable to download binary: invalid response status while fetching command binary: 404
 ERROR[0002] Unable to download binary: invalid response status while fetching command binary: 404 command=install
 ERROR[0002] INSTALL ERROR: Unable to install selected package command=install
Unable to install selected package

@lkowalsk-akamai-com
Copy link
Contributor

cli-purge does not support M1 yet. Please file issue under cli-purge GH project to have a follow up on that. Thank you

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

No branches or pull requests

9 participants