install

通常時

λ cabal install cabal-install

HEAD を入れたい場合

λ git clone https://github.com/haskell/cabal.git
λ cd cabal/cabal-install
λ cabal v2-install exe:cabal
λ cabal --version
cabal-install version 3.1.0.0
compiled using version 3.1.0.0 of the Cabal library
  • .local/bin/cabal.ghcup/bin/cabal が優先されていることがあるので、必要に応じて削除すること

トラブルシューティング

cabal: installdir is not defined.

λ cabal install exe:ormolu --overwrite-policy=always
Wrote tarball sdist to
/Users/gupi/Desktop/repos/hs-tools/ormolu/dist-newstyle/sdist/ormolu-0.0.1.0.tar.gz
Resolving dependencies...
Up to date
cabal: installdir is not defined. Set it in your cabal config file or use
--installdir=<path>

cabal: Path '/Users/gupi/.cabal/bin/ormolu' already exists.

Last updated