
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... Giacomo

Hi, Dnia 2013-05-24, pią o godzinie 18:45 +0200, Giacomo Tesio pisze:
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...
Yes, you can. Just try. If you will install something as root with cabal, it will install it in root home directory, not in global system directories. Emanuel

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

On Fri, May 24, 2013 at 10:15 PM, Giacomo Tesio
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...
Giacomo
http://www.vex.net/~trebla/haskell/sicp.xhtml used to be required reading. Not sure it has changed...
participants (4)
-
Brent Yorgey
-
Emanuel Koczwara
-
Giacomo Tesio
-
Rustom Mody