3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

'brew install cabal-install' がコケる

Last updated at Posted at 2012-06-01

エラー内容

brew install cabal-install                                                                                                                                
==> Downloading http://www.haskell.org/cabal/release/cabal-install-0.14.0/cabal-install-0.14.0.tar.gz
Already downloaded: /Library/Caches/Homebrew/cabal-install-0.14.0.tar.gz
==> sh bootstrap.sh
Could not find task "__numeric_version".
Could not find task "__numeric_version".
bootstrap.sh: line 81: [: too many arguments

Error during cabal-install bootstrap:
Version mismatch between ghc and ghc-pkg If you set the GHC variable then set GHC_PKG too
==> Build Environment
CPU: dual-core 64-bit penryn
MacOS: 10.7.4-i386
Xcode: 4.3.2
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
LD: /usr/bin/clang
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments
MAKEFLAGS: -j2
Error: Failed executing: sh bootstrap.sh (cabal-install.rb:12)
These existing issues may help you:
    https://github.com/mxcl/homebrew/issues/12155
Otherwise, please report the bug:
    https://github.com/mxcl/homebrew/wiki/reporting-bugs

解決

Version mismatch between ghc and ghc-pkg If you set the GHC variable then set GHC_PKG too が直接の原因っぽい。

GHC=/usr/local/bin/ghc brew install cabal-install

としたら入った

原因

わかった。
which ghc~/.gem/ruby/1.9.1/bin/ghc だった

http://rubygems.org/gems/github_cli
"Glasgow Haskell Compiler" ではない(ズコー)

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?