スタック ツールを使い始めるために、http://seanhess.github.io/2015/08/04/practical-haskell-getting-started.htmlをフォローしています。
$> stack --version
Version 0.1.3.1, Git revision 908b04205e6f436d4a5f420b1c6c646ed2b804d7
「GHCのインストール」のステップで、次のようになりますPermission denied
。
$> stack setup
Run from outside a project, using implicit global config
Using resolver: lts-3.2 from global config file: /Users/karl/.stack/global/stack.yaml
Preparing to download ghc-7.10.2 .../Users/karl/.stack/programs/x86_64-osx/ghc-7.10.2.tar.bz2.tmp:
openBinaryFile: permission denied (Permission denied)
これは予期されたものですか (ガイドのバグ)、または のバグstack
ですか?
で同じコマンドを実行するとsudo
、問題が解決するようです。これは意図した方法ですか?
$> sudo stack setup
Password:
Downloaded ghc-7.10.2.
Installed GHC.
stack will use a locally installed GHC
For more information on paths, see 'stack path' and 'stack exec env'
To use this GHC and packages outside of a project, consider using:
stack ghc, stack ghci, stack runghc, or stack exec
OS X 10.10.4 (Yosemite) の新規インストールを実行しています。