
24 May
2013
24 May
'13
2:15 p.m.
On Fri, May 24, 2013 at 06:45:28PM +0200, Giacomo Tesio wrote:
Can I use cabal install without being root?
I'd like to use packages from hackage instead of those provided by apt-get as far as possibile. Is it possible at all? I guess that libraries depending on FFI won't works...
In fact, you *should only* use cabal install without being root. If you ever have to write "sudo cabal install ..." you are doing something wrong. Libraries depending on FFI will work fine. Cabal cannot automatically install external (non-Haskell) dependencies, so you must install any such dependencies yourself (using apt-get) before calling cabal install. Of course, you will probably have to run apt-get with sudo. -Brent