i installed custom haskell toolchain prefix $home/usr
, compiler lives in $home/usr/bin/ghc
, documentation in $home/usr/share/doc/ghc/...
. toolchain consists of ghc
installation, cabal
installation , libs need. set $path
in way, these programs in it. there no other installation of these tools on system.
now tried install other libraries. got same error when cabal tried install documentation:
~$ cabal install --global binary resolving dependencies... configuring binary-0.5.0.2... preprocessing library binary-0.5.0.2... building binary-0.5.0.2... ... snip ... registering binary-0.5.0.2... cabal: /usr/local/share/doc: permission denied
how can tell cabal documentation should live? don't want give information again , again in shell, best config file. want have haskell related stuff in home tree, avoid destroying system wrong command.
why installing "--global"? default put in /usr/local/. if standard per-user install docs installed home directory , should work fine.
that being said, configurable via file. cabal config file typically located @ ~/.cabal/config/
. here's relevant section of mine:
install-dirs global -- prefix: /usr/local -- bindir: $prefix/bin -- libdir: $prefix/lib -- libsubdir: $pkgid/$compiler -- libexecdir: $prefix/libexec -- datadir: $prefix/share -- datasubdir: $pkgid -- docdir: $datadir/doc/$pkgid -- htmldir: $docdir/html -- haddockdir: $htmldir
you can make whatever changes like, sure uncomment lines. there "install-dirs user" section, used in per-user installs.
Comments
Post a Comment