Perhaps try to bootstrap from

cabal get cabal-install

?

Cheers,
Vanessa McHale

On 2/9/20 1:39 AM, Compl Yue via cabal-devel wrote:

Hello folks,

I'm trying to install cabal after built ghc 8.8.2 on smartos, seems the src bundled within ghc src tarball not working:

[root@hswander /build/ghc-8.8.2/libraries/Cabal/cabal-install]# ./bootstrap.sh
Using gcc for C compiler. If this is not what you want, set CC.
Using /opt/local/gcc7/libexec/gcc/x86_64-sun-solaris2.11/7.4.0/collect2 instead.
Checking installed packages for ghc-8.4.4...
deepseq is already installed and the version is ok.
binary is already installed and the version is ok.
time is already installed and the version is ok.
transformers is already installed and the version is ok.
mtl is already installed and the version is ok.
text is already installed and the version is ok.
parsec is already installed and the version is ok.
network-uri-2.6.1.0 will be downloaded and installed.
network-2.7.0.0 will be downloaded and installed.
HTTP-4000.3.12 will be downloaded and installed.
zlib-0.6.2 will be downloaded and installed.
random-1.1 will be downloaded and installed.
stm is already installed and the version is ok.
hashable-1.2.7.0 will be downloaded and installed.
async-2.2.1 will be downloaded and installed.
base16-bytestring-0.1.1.6 will be downloaded and installed.
base64-bytestring-1.0.0.1 will be downloaded and installed.
cryptohash-sha256-0.11.101.0 will be downloaded and installed.
resolv-0.1.1.1 will be downloaded and installed.
mintty-0.1.2 will be downloaded and installed.
echo-0.1.3 will be downloaded and installed.
edit-distance-0.2.2.1 will be downloaded and installed.
ed25519-0.0.5.0 will be downloaded and installed.
tar-0.5.1.0 will be downloaded and installed.
digest-0.0.1.2 will be downloaded and installed.
lukko-0.1.1 will be downloaded and installed.
hackage-security-0.6.0.0 will be downloaded and installed.
Cabal-3.0.1.0 will be downloaded and installed.

Downloading Cabal-3.0.1.0...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found

Error during cabal-install bootstrap:
Failed to download Cabal.
[root@hswander /build/ghc-8.8.2/libraries/Cabal/cabal-install]#

I wonder what's the official way to do it?

btw, I don't know why I can not send msg to the freenode #cabal channel:


(15时11分28秒) ComplYue: ping
(15时11分28秒) Cannot send to nick/channel

Thanks with best regards,

Compl



_______________________________________________
cabal-devel mailing list
cabal-devel@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/cabal-devel