blitzcode / hue-dashboard

A web interface for monitoring and controlling Philips Hue lights
http://www.blitzcode.net/haskell.shtml#hue-dashboard
279 stars 23 forks source link

Unable to run `stack exec` on Mac 10.14 #8

Open johnpc opened 4 years ago

johnpc commented 4 years ago
➜  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 commented 4 years ago

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 commented 4 years ago

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

jonathanrelf commented 4 years ago

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