ivanjermakov/wordle

Does not work on macOS Catalina

viimajesty opened this issue · 9 comments

Installing from binary does not work on macOS Catalina with zsh.

OS: macOS 10.15.7
Model: 16" MacBook Pro (Intel core i7)

Commands run:

wget https://github.com/ivanjermakov/wordle/releases/latest/download/wordle
chmod +x wordle
sudo mv wordle /usr/bin/
and
chmod a+x ./wordle

Error:
zsh: exec format error: ./wordle

Thank you

Binary is compiled for x86-64 on Ubuntu LTS, so it won't run on macOS. Can you please try installing it from source using Haskell Stack?

thanks, that works!

on m1 mac stack gives issue while installing via brew so cannot compile

on m1 mac stack gives issue while installing via brew so cannot compile

Can you share the error log?

Have you tried newer verion of stack (mentioned here)?

yes but I have the following error

brew install --HEAD stack
Running `brew update --preinstall`...
==> Auto-updated Homebrew!
Updated 3 taps (shivammathur/php, homebrew/core and homebrew/cask).
==> New Formulae
asyncapi                                 linode-cli                               rure                                     terminalimageviewer                      usbutils
==> Updated Formulae
Updated 62 formulae.
==> Updated Casks
Updated 41 casks.

Warning: Treating stack as a formula. For the cask, use homebrew/cask/stack
==> Cloning https://github.com/commercialhaskell/stack.git
Updating /Users/xeon/Library/Caches/Homebrew/haskell-stack--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at aac15d03 Add FreeBSD aarch64 support
==> cabal v2-update
==> cabal v2-install --jobs=8 --max-backjumps=100000 --install-method=copy --installdir=/opt/homebrew/Cellar/haskell-stack/HEAD-aac15d0/bin

Last 15 lines from /Users/xeon/Library/Logs/Homebrew/haskell-stack/02.cabal:
    • Couldn't match type ‘Data.Aeson.KeyMap.KeyMap Value’
                     with ‘HashMap Text v0’
      Expected type: HashMap Text v0
        Actual type: Object
    • In the first argument of ‘HashMap.keys’, namely ‘obj’
      In the first argument of ‘Set.fromList’, namely
        ‘(HashMap.keys obj)’
      In the first argument of ‘Set.difference’, namely
        ‘(Set.fromList (HashMap.keys obj))’
    |
124 |                              (Set.fromList (HashMap.keys obj))
    |                                                          ^^^
cabal: Failed to build pantry-0.5.3 (which is required by stack-2.7.4). See
the build log above for details.


READ THIS: https://docs.brew.sh/Troubleshooting

Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels.

@xeon-zolt That's unfortunate. Since this is not a wordle bug, I will close this ticket. Please continue watching #5632 for updates.

Yup I am aware of it