Skip to content

Instantly share code, notes, and snippets.

@peccu
Created August 9, 2010 05:37
Show Gist options
  • Select an option

  • Save peccu/514985 to your computer and use it in GitHub Desktop.

Select an option

Save peccu/514985 to your computer and use it in GitHub Desktop.
= Gentoo/Prefix on MacOSX(Snow Leopard)でemerge ghcに挑戦中
[2010-08-09 13:37:12]
>>>[osx]
>>>[gentoo]
>>>[haskell]
Gentoo/Prefixでの話です
>|zsh|
% emerge -uaDNv ghc
||<
だとこんなエラーになりました
>||
Configuring installPackage-1.0...
cabal-bin: ghc version >=6.4 is required but the version of
/Users/peccu/Gentoo/var/tmp/portage/dev-lang/ghc-6.10.4-r1/work/ghc-6.10.4/ghc/stage2-inplace/ghc
could not be determined.
||<
poratageでは無理なのかと思って,MacPortsで入れちゃいました.
>|zsh|
% sudo port install haskell-platform
||<
そのインストール中に
>http://twitter.com/naota344/status/20643665746:title>
@peccul あー、失敗しますよ。MacのHaskell Platformいれて、USE=ghcboorstrap emerge ghc して、Haskell Platform消す感じで。でも、あと少しebuildもいじらないといけないです<<
とのことで,portsから入れ始めて良かったみたい.でもなかなか終わらないので放置して寝た.
起きたら終わってたので,
>|zsh|
% USE=ghcbootstrap emerge -uaDNv ghc
||<
すると
>||
cd extensible-exceptions && /Users/peccu/Gentoo/var/tmp/portage/dev-lang/ghc-6.10.4-r1/work/ghc-6.10.4/libraries/cabal-bin /usr/bin/ghc /Users/peccu/Gentoo/var/tmp/portage/dev-lang/ghc-6.10.4-r1/work/ghc-6.10.4/libraries/bootstrapping.conf 1.6.0.3 configure --distpref=dist-bootstrapping --with-compiler=/usr/bin/ghc --with-hc-pkg=/usr/bin/ghc-pkg --package-db=/Users/peccu/Gentoo/var/tmp/portage/dev-lang/ghc-6.10.4-r1/work/ghc-6.10.4/libraries/bootstrapping.conf.tmp
Configuring extensible-exceptions-0.1.1.0...
cabal-bin: failed to parse output of 'ghc-pkg dump'
m
||<
ふむ.これがconfigureの失敗ね
>http://twitter.com/naota344/status/20644495760:title>
@peccul あ、あとなんかどうやら configure あたりにmac用に patch あててますね。ちょっと整理して github に持ってきます。
<<
では偉大なるなおたさんのrepositoryを使ってみようと思います.
>http://twitter.com/naota344/status/20645241030:title>
http://github.com/naota/gentoo-prefix-overlay ほいよ。Gentoo prefix用のrepository作ったでごわす。emacs-vcs と ghc あたりがそれっぽく動いてみたりするでごわすよ。全部重度の自己責任で。
<<
なんでもlaymanというものでoverlayしちゃうみたい.
laymanって,非標準のportage treeをあたかも標準portageのように使える仕組みみたい.→[[http://blog.goo.ne.jp/gleaning/e/a3d316d978eb1d54be004afb3d98eb28:title]]
というわけで偉大なるなおたさんのREADMEに従ってoverlayしてみる
>http://github.com/naota/gentoo-prefix-overlay:title>
${EPREFIX}/etc/layman/layman.cfg の overlays のところに
http://github.com/naota/gentoo-prefix-overlay/raw/master/repository.xml をこんな感じでに追加する
overlays : http://www.gentoo.org/proj/en/overlays/repositories.xml
http://github.com/naota/gentoo-prefix-overlay/raw/master/repository.xml
そして layman -a naota-prefix すれば使えるはず。
<<
でも$EPREFIX/etc/laymanがなかったので
>|zsh|
% emerge -uaDNv layman
||<
<<いまここ>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment