Hi, I am trying to install QuickCheck with cabal on Fedora 38. I installed haskell via the dnf package manager. The Glorious Glasgow Haskell Compilation System, version 9.2.8
& cabal-install version 3.6.2.0 compiled using version 3.6.2.0 of the Cabal library
.
Running the command: $ cabal install QuickCheck
Resolving dependencies...
Build profile: -w ghc-9.2.8 -O1
In order, the following will be built (use -v for more details):
- splitmix-0.1.0.4 (lib) (requires build)
- random-1.2.1.1 (lib) (requires build)
- QuickCheck-2.14.3 (lib) (requires build)
Starting splitmix-0.1.0.4 (lib)
Building splitmix-0.1.0.4 (lib)
Failed to build splitmix-0.1.0.4.
Build log (
/home/klock/.cabal/logs/ghc-9.2.8/splitmix-0.1.0.4-2080e76bdba4cdfe864671097a51e89a482f579f30120640379c6e933078fc7c.log
):
Configuring library for splitmix-0.1.0.4..
Preprocessing library for splitmix-0.1.0.4..
Building library for splitmix-0.1.0.4..
[1 of 4] Compiling Data.Bits.Compat ( src-compat/Data/Bits/Compat.hs, dist/build/Data/Bits/Compat.o, dist/build/Data/Bits/Compat.dyn_o )
[2 of 4] Compiling System.Random.SplitMix.Init ( src/System/Random/SplitMix/Init.hs, dist/build/System/Random/SplitMix/Init.o, dist/build/System/Random/SplitMix/Init.dyn_o )
[3 of 4] Compiling System.Random.SplitMix ( src/System/Random/SplitMix.hs, dist/build/System/Random/SplitMix.o, dist/build/System/Random/SplitMix.dyn_o )
[4 of 4] Compiling System.Random.SplitMix32 ( src/System/Random/SplitMix32.hs, dist/build/System/Random/SplitMix32.o, dist/build/System/Random/SplitMix32.dyn_o )
/usr/bin/ld.gold: error: cannot find -lgmp
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
cabal: Failed to build splitmix-0.1.0.4 (which is required by
QuickCheck-2.14.3). See the build log above for details.
This is the output of the log file:
$ cat splitmix-0.1.0.4-2080e76bdba4cdfe864671097a51e89a482f579f30120640379c6e933078fc7c.log
Configuring library for splitmix-0.1.0.4..
Preprocessing library for splitmix-0.1.0.4..
Building library for splitmix-0.1.0.4..
[1 of 4] Compiling Data.Bits.Compat ( src-compat/Data/Bits/Compat.hs, dist/build/Data/Bits/Compat.o, dist/build/Data/Bits/Compat.dyn_o )
[2 of 4] Compiling System.Random.SplitMix.Init ( src/System/Random/SplitMix/Init.hs, dist/build/System/Random/SplitMix/Init.o, dist/build/System/Random/SplitMix/Init.dyn_o )
[3 of 4] Compiling System.Random.SplitMix ( src/System/Random/SplitMix.hs, dist/build/System/Random/SplitMix.o, dist/build/System/Random/SplitMix.dyn_o )
[4 of 4] Compiling System.Random.SplitMix32 ( src/System/Random/SplitMix32.hs, dist/build/System/Random/SplitMix32.o, dist/build/System/Random/SplitMix32.dyn_o )
/usr/bin/ld.gold: error: cannot find -lgmp
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
Your help is very appreciated. Thanks.