[Haskell-cafe] Win32: cabal install --prefix=$HOME --user ?

Ryan Yates fryguybob at gmail.com
Thu Jun 16 16:19:06 CEST 2011

There is a nice table in the cabal docs that explains how prefix gets used:


For Vista and above C:\Documents and settings\myusername\ is
C:\Users\myusername.  The equivalent to $HOME on Windows would be
$USERPROFILE but the syntax of expanding an environment variable is
going to depend on the shell you are using:

cmd window:  cabal install --prefix=%USERPROFILE% --user
PowerShell:  cabal install --prefix=${env:USERPROFILE} --user
msys window:  cabal install --prefix=$USERPROFILE --user

Note that msys does define $HOME and it is a different physical path


On Thu, Jun 16, 2011 at 5:48 AM, Dmitri O.Kondratiev <dokondr at gmail.com> wrote:
> On win32 "cabal install --prefix=$HOME --user" fails:
> cabal install --prefix=$HOME --user
> Resolving dependencies...
> Configuring split-0.1.4...
> cabal: expected an absolute directory name for --prefix: $HOME
> cabal: Error: some packages failed to install:
> split-0.1.4 failed during the configure step. The exception was:
> ExitFailure 1
> What is the right equivalent of "cabal install --prefix=$HOME --user" on
> Win32?
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

More information about the Haskell-Cafe mailing list