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

heroku-node/share/node: cannot execute binary file: Exec format error #1726

Open
al-the-x opened this issue Jan 21, 2021 · 0 comments
Open

Comments

@al-the-x
Copy link

This project is for the Heroku CLI only and issues are reviewed as we are able. If you need more immediate assistence or help with anything not specific to the CLI itself, please use https://help.heroku.com.

Do you want to request a feature or report a bug?

Currently a bug but perhaps a feature? Please support brew install heroku within Linuxbrew!

What is the current behavior?

Installation via brew on Linux (Pop_OS! 20.10) succeeds but attempts to run heroku thereafter produce an error:

#> heroku --help
~/.linuxbrew/bin/heroku: line 45: ~/.linuxbrew/opt/heroku-node/share/node: cannot execute binary file: Exec format error
#> file ~/.linuxbrew/opt/heroku-node/share/node
~.linuxbrew/Cellar/heroku-node/12.16.2/share/node: Mach-O 64-bit x86_64 executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|WEAK_DEFINES|BINDS_TO_WEAK|HAS_TLV_DESCRIPTORS>

I presume that the node binary that ships with heroku-node is prebuilt for Mac OS. I attempted to brew install -s heroku-node and got a cached copy of the binary, not a compilation.

What is the expected behavior?

Installing heroku on Linux via Linuxbrew should work identically to Homebrew on Mac OS. I keep a .Brewfile in my home directory and setup every server I admin and my local Linux boxes with brew bundle --global. It was surprising to find out that heroku was unusable.

See #1566 for a previous bug that was worked around by installing the standalone version. I am installing via snap ATM, which is less ideal, since snap doesn't ship on Pop_OS! by default, and I cannot keep my installed packages in a manifest like .Brewfile.

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

1 participant