亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

將Yesod部署到Heroku,無法靜態構建

將Yesod部署到Heroku,無法靜態構建

慕無忌1623718 2019-07-25 09:45:35
將Yesod部署到Heroku,無法靜態構建我是Yesod的新手,我無法靜態構建Yesod,因此我可以部署到Heroku。我更改了默認的.cabal文件以反映靜態編譯if flag(production)    cpp-options:   -DPRODUCTION    ghc-options:   -Wall -threaded -O2 -static -optl-staticelse    ghc-options:   -Wall -threaded -O0它不再構建。我得到了一大堆警告,然后是一大堆未定義的引用,如下所示:Linking dist/build/personal-website/personal-website .../usr/lib/ghc-7.0.3/libHSrts_thr.a(Linker.thr_o): In function`internal_dlopen':Linker.c:(.text+0x407): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking/usr/lib/ghc-7.0.3/unix-2.4.2.0/libHSunix-2.4.2.0.a(HsUnix.o): In function `__hsunix_getpwent':HsUnix.c:(.text+0xa1): warning: Using 'getpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking/usr/lib/ghc-7.0.3/unix-2.4.2.0/libHSunix-2.4.2.0.a(HsUnix.o): In function `__hsunix_getpwnam_r':HsUnix.c:(.text+0xb1): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking/usr/lib/libpq.a(thread.o): In function `pqGetpwuid':(.text+0x15): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking/usr/lib/libpq.a(ip.o): In function `pg_getaddrinfo_all':(.text+0x31): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking/usr/lib/ghc-7.0.3/site-local/network-2.3.0.2/libHSnetwork-2.3.0.2.a(BSD__63.o): In function `sD3z_info':(.text+0xe4): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking/usr/lib/ghc-7.0.3/site-local/network-2.3.0.2/libHSnetwork-2.3.0.2.a(BSD__164.o): In function `sFKc_info':(.text+0x12d): warning: Using 'getprotobyname' in statically linked applications requires at runtime the shared libraries from the glibc
查看完整描述

3 回答

  • 3 回答
  • 0 關注
  • 641 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號