Does setting LD_LIBRARY_PATH fix the problem? On Fri, Jun 2, 2017 at 5:37 PM, 'Stephan Schiffels' via haskell-stack < haskell-stack@googlegroups.com> wrote:
> Sorry, but does someone know any help here? > > Am Dienstag, 11. April 2017 21:18:52 UTC+2 schrieb Stephan Schiffels: >> >> Hi, I am trying to install a package and so far fail in the "stack setup" >> step. Here is the error: >> >> $ stack setup >> The GHC located at /home/ss839/.stack/programs/x8 >> 6_64-linux/ghc-gmp4-8.0.1/bin/ghc failed to compile a sanity check. >> Please see: >> >> http://docs.haskellstack.org/en/stable/install_and_upgrade/ >> >> for more information. Exception was: >> Running /home/ss839/.stack/programs/x86_64-linux/ghc-gmp4-8.0.1/bin/ghc >> /tmp/stack-sanity-check30968/Main.hs -no-user-package-db in directory >> /tmp/stack-sanity-check30968/ exited with ExitFailure 1 >> >> [1 of 1] Compiling Main ( /tmp/stack-sanity-check30968/Main.hs, >> /tmp/stack-sanity-check30968/Main.o ) >> Linking /tmp/stack-sanity-check30968/Main ... >> >> /usr/bin/ld: cannot find -lgmp >> collect2: ld returned 1 exit status >> `gcc' failed in phase `Linker'. (Exit code: 1) >> >> >> The problem is that libgmp is in a non-standard location: >> /opt/gmp-6.1.1/lib. I know how I can point "stack build" to that location, >> using --extra-lib-dirs. But there doesn't seem to be such an option for >> stack setup, is there? >> >> Any help is much appreciated, thanks! >> >> Stephan >> > -- > 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/040525cf-98e4-4715-834b-67fea3554aad% > 40googlegroups.com > <https://groups.google.com/d/msgid/haskell-stack/040525cf-98e4-4715-834b-67fea3554aad%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/CAKA2JgJUYo3mzAkDE_TmKKBKKiQvBmJ0f0YmAz6HgcthEm0QgQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.