moocfi / haskell-mooc

Haskell MOOC University of Helsinki
Other
307 stars 414 forks source link

stack build fails, hspec missing dependency libtinfo #98

Open VillePuuska opened 8 months ago

VillePuuska commented 8 months ago

Running stack build in Ubuntu 22.04 inside WSL2 (in Win 10) failed with an error along the lines of (forgot to copy the actual error before closing the terminal):

hspec-core                 > error: cannot find -ltinfo
hspec-core                 > error: ld returned 1 exit status
hspec-core                 > failed in phase `Linker'. (Exit code: 1)

Fixed by installing libtinfo

sudo apt install libtinfo-dev

Maybe worth adding to list of common problems.