[Haskell-cafe] Win32: cabal install --prefix=$HOME --user ?
Dmitri O.Kondratiev
dokondr at gmail.com
Thu Jun 16 16:47:16 CEST 2011
On Thu, Jun 16, 2011 at 6:18 PM, Ryan Yates <fryguybob at gmail.com> wrote:
> There is a nice table in the cabal docs that explains how prefix gets used:
>
> http://www.haskell.org/ghc/docs/7.0.4/html/Cabal/builders.html#simple-paths
>
> 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
> than $USERPROFILE.
>
>
Ryan, thanks!
This win32 $HOME story is clear now.
And why not just use:
"cabal install"
instead of:
"cabal install --prefix=%USERPROFILE% --user"
for win32 platform?
Where in this case "cabal install" root will be?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110616/4563eb19/attachment.htm>
More information about the Haskell-Cafe
mailing list