$ stack setup Preparing to install GHC to an isolated location. This will not interfere with any system-level installation. Preparing to download ghc-8.0.2 ... Already downloaded. Unpacking GHC into /home/avi/.stack/programs/x86_64-linux/ghc-8.0.2.temp/ ... Configuring GHC ... Running /home/avi/.stack/programs/x86_64-linux/ghc-8.0.2.temp/ghc-8.0.2/configure --prefix=/home/avi/.stack/programs/x86_64-linux/ghc-8.0.2/ in directory /home/avi/.stack/programs/x86_64-linux/ghc-8.0.2.temp/ghc-8.0.2/ exited with ExitFailure 1 checking for path to top of build tree... /home/avi/.stack/programs/x86_64-linux/ghc-8.0.2.temp/ghc-8.0.2/configure: utils/ghc-pwd/dist-install/build/tmp/ghc-pwd-bindist: /bin/bash: bad interpreter: No such file or directory configure: error: cannot determine current directory Error: Error encountered while configuring GHC with /home/avi/.stack/programs/x86_64-linux/ghc-8.0.2.temp/ghc-8.0.2/configure --prefix=/home/avi/.stack/programs/x86_64-linux/ghc-8.0.2/ run in /home/avi/.stack/programs/x86_64-linux/ghc-8.0.2.temp/ghc-8.0.2/ The following directories may now contain files, but won't be used by stack: - /home/avi/.stack/programs/x86_64-linux/ghc-8.0.2.temp/ - /home/avi/.stack/programs/x86_64-linux/ghc-8.0.2/