Installation failed
Oleg Grenrus
oleg.grenrus at iki.fi
Thu May 30 19:30:24 UTC 2019
Hi again Simon,
Few points, If you run Windows 10 (Pro?), you can setup to make symlinks
without needing administrator privileges. I used
https://github.com/git-for-windows/git/wiki/Symbolic-Links guide.
Unfortunately I don't remember all the details I did (i.e. if the guide
is complete), but enabling Developer Mode is easy to forget.
About installing and symlinking:
- `cabal update-config` should populate your ~/.cabal/config with new
default configuration. which will have install-dir: there too. You can
also manually edit it to add the new configuration option.
- Most of install woes are fixed in March [1], but there weren't a
release with those fixes.
- [1] https://github.com/haskell/cabal/pull/5870
Cheers,
Oleg
On 30.5.2019 16.57, Simon Peyton Jones wrote:
>
> Dear Cabal developers
>
> More woe:
>
> simonpj at MSRC-3645512:~$ cabal install lhs2tex
>
> Resolving dependencies...
>
> Up to date
>
> cabal: installdir is not defined. Set it in your cabal config file or use
>
> --installdir=<path>
>
> In the olden days, didn’t cabal install by default in ~/.cabal/bin?
>
> Never mind, let’s do what it asks:
>
> simonpj at MSRC-3645512:~$ cabal install lhs2tex --installdir=/usr/bin
>
> Resolving dependencies...
>
> Up to date
>
> Symlinking 'lhs2TeX'
>
> /usr/bin/lhs2TeX: createSymbolicLink: permission denied (Permission
> denied)
>
> Darn: I need to be super-user. Fine:
>
> simonpj at MSRC-3645512:~$ sudo cabal install lhs2tex --installdir=/usr/bin
>
> [sudo] password for simonpj:
>
> cabal: unrecognized 'install' option `--installdir=/usr/bin'
>
> OK _/now/_ I really am stumped. It asked me to provide that option,
> and now it says it’s unrecognised.
>
> (This is in a bash shell running in emacs, if it makes a difference.)
>
> What next?
>
> Thanks
>
> Simon
>
>
> _______________________________________________
> cabal-devel mailing list
> cabal-devel at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/cabal-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/cabal-devel/attachments/20190530/21a691d6/attachment.html>
More information about the cabal-devel
mailing list