hue-dashboard icon indicating copy to clipboard operation
hue-dashboard copied to clipboard

Unable to run `stack exec` on Mac 10.14

Open johnpc opened this issue 6 years ago • 3 comments
trafficstars

➜  hue-dashboard git:(master) ✗ stack exec hue-dashboard
dyld: malformed mach-o: load commands size (36688) > 32768
[1]    12317 abort      stack exec hue-dashboard

johnpc avatar Sep 01 '19 21:09 johnpc

Side note, the provided Vagrant solution also has problems:

vagrant@ubuntu-xenial:/vagrant$ stack setup
Could not parse '/vagrant/stack.yaml':
AesonException "failed to parse field 'extra-deps': (Invalid package identifier: \"semigroupoids-5.0.1@rev:0\",\"semigroupoids-5.0.1@rev:0\")"
See https://github.com/commercialhaskell/stack/blob/release/doc/yaml_configuration.md.

johnpc avatar Sep 01 '19 21:09 johnpc

Fixed in vagrant by upgrading the stack binary using

curl -sSL https://get.haskellstack.org/ | sh -s - -f
stack upgrade
cd /vagrant
stack setup
stack build
stack exec hue-dashboard

still unable to run on Mac directly

johnpc avatar Sep 01 '19 21:09 johnpc

I have the same experience on Mac 10.13.6 running stack 2.1.3 Error output is subtly different:

stack exec hue-dashboard
dyld: malformed mach-o: load commands size (36864) > 32768
Abort trap: 6

I may try this suggestion that the poster suggested the haskell manually installed worked when the homebrew version didn't : https://www.reddit.com/r/haskell/comments/53ne56/haskell_on_macos_sierra_any_problems/d7yg1bf/?context=8&depth=9

jonathanrelf avatar Sep 25 '19 04:09 jonathanrelf