Open ndzik opened 2 years ago
Looks like wai-logger-2.4.0 was uploaded at 2022-01-30T00:52:35Z.
GHC 8.10.7
hoogle successfully installed in December 2021 using GHC 8.10.7 and wai-logger-2.3.7
with this cabal executable
https://downloads.haskell.org/~cabal/cabal-install-3.6.0.0/ cabal-install-3.6.0.0-x86_64-linux.tar.xz
$ tar xvf cabal-install-3.6.0.0-x86_64-linux.tar.xz
cabal
$ ./cabal --version
cabal-install version 3.6.0.0
compiled using version 3.6.1.0 of the Cabal library
$
Running strings cabal | grep lHS | cut -f 1 -d ] | cut -f 2 -d [ | tr , '\n'
prints the Haskell
libraries (and Cffi library as bundled with rts) the executable had been compiled with.
Strip and locally install cabal.
$ strip --strip-unneeded cabal
$ mkdir -p ~/.cabal/bin && mv cabal ~/.cabal/bin
$
wai-logger-2.4.0 changed a minor log message a bit. Building should not be influenced at all.
Hopefully the right address here (;
So I tried to install
hoogle
viacabal
using the following command:Down the road I receive the following error:
Workaround: What worked for me was
cabal install hoogle --ghc-options="-dynamic-too"
. Now I do not know why this worked and the only reason I tried this out was because of an issue withhaskell-language-server
in which a similar error was mentioned in the thread and this answer containing above suggestion. I figured I try it and everything works now.System: ArchLinux GHC: Everything haskell related is installed with
ghcup
. I tried the above withGHC 8.10.7
. Cabal: Tried with versions3.6.2.0
and3.4.1.0
and it only works with the above flag for both.Maybe this is also an issue for
cabal
? I think someone might point me to the right direction, just figured I post something s.t. some other lost soul might find a solution.Might this be related to me being on ArchLinux? Since I am not using any Arch
ghc
orhaskell-*
packages I figured this should not pose a problem but who am I to judge.Thanks for your time!