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

Mac OS 11.6 zsh: exec format error: ./redbean.com #427

Closed
frederikfab opened this issue Jun 17, 2022 · 3 comments
Closed

Mac OS 11.6 zsh: exec format error: ./redbean.com #427

frederikfab opened this issue Jun 17, 2022 · 3 comments

Comments

@frederikfab
Copy link

When trying to run the redbean demo, i get an error from zsh

curl https://redbean.dev/redbean-demo-2.0.1.com >redbean.com
chmod +x redbean.com
./redbean.com -v

The output is
zsh: exec format error: ./redbean.com

since zsh is now the default shell in MacOS, this seems to need attention. Running it in bash works fine however.

bash
./redbean.com

works as expected

@Infinita740
Copy link

Hi,

I think this is a known issue.

Workaround from https://redbean.dev#install:

bash -c './redbean.com -v'  # zsh/fish workaround (we upstreamed patches!)

@jart
Copy link
Owner

jart commented Jun 18, 2022

Thank you for helping our friend @Infinita740. Please use bash in the meantime. You can also upgrade to the latest version of zsh. I upstreamed a patch with the zhs project over a year ago. I believe it'll eventually make its way into the default MacOS shell. zsh-users/zsh@326d9c2

@jart jart closed this as completed Jun 18, 2022
@bstro
Copy link

bstro commented Mar 17, 2023

I'm on MacOS 11.6.7 and upgraded my version of zsh to 5.9 but still run into the same error. Using bash -c ./redbean.com as a workaround.

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

4 participants