Things to try: * update the "resolver" field in /root/.stack/global-project/stack.yaml to lts-7.14
If that doesn't work, you can try the nuclear option: * delete everything in /root/.stack/snapshots -- Dan Burton On Mon, Dec 26, 2016 at 2:25 AM, yu ming <luckyp...@gmail.com> wrote: > i ran "stack install wai-app-static",it shows: > > root@AR:/usr/local# stack install wai-app-static > wai-app-static-3.1.6.1: configure > wai-app-static-3.1.6.1: build > > -- While building package wai-app-static-3.1.6.1 using: > /root/.stack/setup-exe-cache/i > 386-linux/Cabal-simple_mPHDZzAJ_1.24.0.0_ghc-8.0.1 > --builddir=.stack-work/dist/i386-linux/Cabal-1.24.0.0 build --ghc-options > " -ddump-hi -ddump-to-file" > Process exited with code: ExitFailure 1 > Logs have been written to: /usr/local/yblog/.stack-work/l > ogs/wai-app-static-3.1.6.1.log > > Configuring wai-app-static-3.1.6.1... > Building wai-app-static-3.1.6.1... > Preprocessing library wai-app-static-3.1.6.1... > [1 of 9] Compiling WaiAppStatic.Types ( WaiAppStatic/Types.hs, > .stack-work/dist/i386-linux/Cabal-1.24.0.0/build/WaiAppStatic/Types.o ) > [2 of 9] Compiling Util ( Util.hs, > .stack-work/dist/i386-linux/Cabal-1.24.0.0/build/Util.o ) > [3 of 9] Compiling WaiAppStatic.Listing ( WaiAppStatic/Listing.hs, > .stack-work/dist/i386-linux/Cabal-1.24.0.0/build/WaiAppStatic/Listing.o ) > > /tmp/stack21583/wai-app-static-3.1.6.1/WaiAppStatic/Listing.hs:67:34: > warning: [-Wname-shadowing] > This binding for ‘pieces’ shadows the existing binding > bound at WaiAppStatic/Listing.hs:27:16 > > /tmp/stack21583/wai-app-static-3.1.6.1/WaiAppStatic/Listing.hs:120:24: > warning: [-Wunused-local-binds] > Defined but not used: ‘isFile’ > [4 of 9] Compiling WaiAppStatic.Storage.Filesystem ( > WaiAppStatic/Storage/Filesystem.hs, .stack-work/dist/i386-linux/Ca > bal-1.24.0.0/build/WaiAppStatic/Storage/Filesystem.o ) > [5 of 9] Compiling WaiAppStatic.Storage.Embedded.Runtime ( > WaiAppStatic/Storage/Embedded/Runtime.hs, .stack-work/dist/i386-linux/Ca > bal-1.24.0.0/build/WaiAppStatic/Storage/Embedded/Runtime.o ) > [6 of 9] Compiling WaiAppStatic.Storage.Embedded.TH ( > WaiAppStatic/Storage/Embedded/TH.hs, .stack-work/dist/i386-linux/Ca > bal-1.24.0.0/build/WaiAppStatic/Storage/Embedded/TH.o ) > > > /tmp/stack21583/wai-app-static-3.1.6.1/WaiAppStatic/Storage/Embedded/TH.hs:10:1: > warning: [-Wunused-imports] > The import of ‘Control.Applicative’ is redundant > except perhaps to import instances from ‘Control.Applicative’ > To import instances alone, use: import Control.Applicative() > [7 of 9] Compiling WaiAppStatic.Storage.Embedded ( > WaiAppStatic/Storage/Embedded.hs, .stack-work/dist/i386-linux/Ca > bal-1.24.0.0/build/WaiAppStatic/Storage/Embedded.o ) > [8 of 9] Compiling Network.Wai.Application.Static ( > Network/Wai/Application/Static.hs, .stack-work/dist/i386-linux/Ca > bal-1.24.0.0/build/Network/Wai/Application/Static.o ) > <command line>: can't load .so/.DLL for: /root/.stack/snapshots/i386-li > nux/lts-7.1/8.0.1/lib/i386-linux-ghc-8.0.1/random-1.1-54KmMH > XjttlERYcr1mvsAe/libHSrandom-1.1-54KmMHXjttlERYcr1mvsAe-ghc8.0.1.so > (/root/.stack/snapshots/i386-linux/lts-7.1/8.0.1/lib/i386-li > nux-ghc-8.0.1/random-1.1-54KmMHXjttlERYcr1mvsAe/libHSrandom- > 1.1-54KmMHXjttlERYcr1mvsAe-ghc8.0.1.so: undefined symbol: > timezm1zi6zi0zi1_DataziTimeziClockziCTimespec_getCTimespec1_closure) > root@AR:/usr/local# > > how to fix the errors? > thanks > > -- > You received this message because you are subscribed to the Google Groups > "haskell-stack" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to haskell-stack+unsubscr...@googlegroups.com. > To post to this group, send email to haskell-stack@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/haskell-stack/a7b34522-c879-4a4c-90bb-361962467c70% > 40googlegroups.com > <https://groups.google.com/d/msgid/haskell-stack/a7b34522-c879-4a4c-90bb-361962467c70%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "haskell-stack" group. To unsubscribe from this group and stop receiving emails from it, send an email to haskell-stack+unsubscr...@googlegroups.com. To post to this group, send email to haskell-stack@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/haskell-stack/CALSygwcrFtR3DkEF%3DgbckrCP2Q9CPkPj59HXQA6n9Z6sE9bLag%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.