Deploying Yesod to Heroku, can't build statically

后端 未结 3 1464
旧巷少年郎
旧巷少年郎 2020-11-22 15:51

I\'m very new to Yesod and I\'m having trouble building Yesod statically so I can deploy to Heroku.

I have changed the default .cabal file to reflect static compilat

3条回答
  •  悲哀的现实
    2020-11-22 16:03

    You have several issues.

    You should not build production binaries on bleeding edge distributions. The libraries on the production system will not be forward compatible.

    You should not link glibc statically - it will always at runtime try to load additional libraries. For example cpu-based assembly. That is what your first warnings are about.

    The last linker errors look like they are related to a missing openssl library on the command line.

    But all in all - downgrade your distribution.

提交回复
热议问题