Closed
Description
Describe the bug
When building cabal from source, ./Setup configure
cannot find any packages
To Reproduce
Steps to reproduce the behavior:
$ tar -xf ghc-9.2.1-x86_64-deb10-linux.tar.xz
$ cd ghc-9.2.1
$ ./configure
$ sudo make install
$ cd ../
$ tar -xf cabal-install-3.6.2.0.tar.gz
$ cd cabal-install-3.6.2.0/
$ sudo apt install libnuma-dev
$ ghc --make Setup.hs
$ ./Setup configure --user --enable-library-profiling
Configuring cabal-install-3.6.2.0...
Setup: Encountered missing or private dependencies:
HTTP >=4000.1.5 && <4000.4,
async >=2.0 && <2.3,
base >=4.8 && <4.15,
base16-bytestring >=0.1.1 && <1.1.0.0,
cryptohash-sha256 >=0.11 && <0.12,
echo >=0.1.3 && <0.2,
edit-distance >=0.2.2 && <0.3,
hackage-security >=0.6.0.1 && <0.7,
hashable >=1.0 && <1.4,
network-uri >=2.6.0.2 && <2.7,
random >=1.2 && <1.3,
regex-base >=0.94.0.0 && <0.95,
regex-posix >=0.96.0.0 && <0.97,
resolv >=0.1.1 && <0.2,
tar >=0.5.0.3 && <0.6,
time >=1.5.0.1 && <1.11,
zlib >=0.5.3 && <0.7
$ ./Setup build
Run the 'configure' command first.
$ /usr/local/bin/ghc --print-libdir
/usr/local/lib/ghc-9.2.1
$ ls /usr/local/lib/ghc-9.2.1
array-0.5.4.0 bytestring-0.11.1.0 directory-1.3.6.2 ghc-bignum-1.2 ghc-heap-9.2.1 ghc-usage.txt include llvm-passes parsec-3.1.14.0 settings terminfo-0.4.1.5 unix-2.7.2.2
base-4.16.0.0 Cabal-3.6.0.0 exceptions-0.10.4 ghc-boot-9.2.1 ghci-9.2.1 haskeline-0.8.2 integer-gmp-1.1 llvm-targets pretty-1.1.3.6 stm-2.5.0.0 text-1.2.5.0 xhtml-3000.2.2.1
bin containers-0.6.5.1 filepath-1.4.2.1 ghc-boot-th-9.2.1 ghci-usage.txt hpc-0.6.1.0 latex mtl-2.2.2 process-1.6.13.2 template-haskell-2.18.0.0 time-1.11.1.1
binary-0.8.9.0 deepseq-1.4.6.0 ghc-9.2.1 ghc-compact-0.1.0.0 ghc-prim-0.8.0 html libiserv-9.2.1 package.conf.d rts template-hsc.h transformers-0.5.6.2
Please use version-prefixed commands (e.g. v2-build
or v1-build
) to avoid ambiguity.
Expected behavior
./Setup
to be configured and ready to be used as ./Setup build
System information
- Ubuntu 20.04 LTS 64bit
cabal
,ghc
versions: cabal 3.6.2.0 and ghc 9.2.1
Additional context
No other versions of cabal or ghc are installed