0

I have cloned the project, it's working my old machine and also my team mates and tried to build it:

docker-compose build

but it throw build error for these libraries

Errors were encountered while processing:
 ghc
 libghc-hsopenssl-dev
 libghc-network-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)
ERROR: Service 'web' failed to build : The command '/bin/sh -c apt-get install -y libgnutls28-dev libghc-hsopenssl-dev libghc-hsopenssl-dev' returned a non-zero code: 100

I am wondering where maybe the error? is it with macOS updates? or libraries compatibility or the new m1 architecture?

I tried:

docker-compose build --no-cache

and adding -f in command in Dockerfile

apt-get install -y libgnutls28-dev libghc-hsopenssl-dev libghc-hsopenssl-dev -f
solimanware
  • 2,952
  • 4
  • 20
  • 40
  • What have you tried to debug the problem? – Nico Haase Feb 10 '21 at 15:56
  • @NicoHaase I tried it on another machine running Catalina and it worked! – solimanware Feb 10 '21 at 15:57
  • @Microsmsm Given that Haskell isn't supported on M1, I'm going to guess the problem could be with `ghc`. I'm looking at [this list](https://github.com/ThatGuySam/doesitarm). – cam Feb 10 '21 at 17:12
  • @tentative what maybe the replacement? I looked in dockerfile and saw this: ```apt-get install -y libgnutls28-dev libghc-hsopenssl-dev libghc-hsopenssl-dev``` – solimanware Feb 10 '21 at 18:35
  • On intel-based macs? – kometen Feb 10 '21 at 18:42
  • On my m1 machine – solimanware Feb 10 '21 at 18:46
  • 1
    You might try running everything under the rosetta2 emulation layer. https://stackoverflow.com/questions/64882584/how-to-run-the-homebrew-installer-under-rosetta-2-on-m1-macbook . Short version is "go into your applications in Finder, select Terminal and press cmd(⌘)+I and check the 'Open using Rosetta' option." – Nicholas Rees Feb 10 '21 at 19:54

0 Answers0