Skip to content

Instantly share code, notes, and snippets.

@cartazio
Created January 22, 2012 03:16
Show Gist options
  • Select an option

  • Save cartazio/1655271 to your computer and use it in GitHub Desktop.

Select an option

Save cartazio/1655271 to your computer and use it in GitHub Desktop.

Revisions

  1. Carter Tazio Schonwald revised this gist Feb 3, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,6 @@
    NOTE: on lion (and snow leopard i suppose), make sure you are using a 64 bit install of ghc. Also, unless you are suggesting an edit to these directions, please go ask people on the relevant mailing list or wiki for help :)
    NOTE: gtk2hs 0.12.2 won't build with ghc 7.4.1, but the current darcs repo for gtk2hs does build
    NOTE: on 7.4 there seems to be a problem when in ghci and drawing to a window, but not when rendering to pdf. I don't know why this is, but if you do, let me know. I'll update this as i have more info

    note that these directions probably can use some cleanup, but i'm choosing these steps so that rebuilding any haskell library doesn't require remembering ANYTHING :-)
    (tested on ghc 7.2.2, assumes you have standard developer things installed on mac, like x11 and stuff)
  2. Carter Tazio Schonwald revised this gist Feb 3, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    NOTE: on lion (and snow leopard i suppose), make sure you are using a 64 bit install of ghc. Also, unless you are suggesting an edit to these directions, please go ask people on the relevant mailing list or wiki for help :)
    NOTE: gtk2hs 0.12.2 won't build with ghc 7.4.1, but the current darcs repo for gtk2hs does build

    note that these directions probably can use some cleanup, but i'm choosing these steps so that rebuilding any haskell library doesn't require remembering ANYTHING :-)
    (tested on ghc 7.2.2, assumes you have standard developer things installed on mac, like x11 and stuff)
  3. Carter Tazio Schonwald revised this gist Jan 30, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -8,8 +8,8 @@ note that these directions probably can use some cleanup, but i'm choosing these
    2) brew install cairo gtk gettext fontconfig

    3) brew link cairo gettext fontconfig and all the other dependencies listed for brew's gtk formula
    this is best done with
    > brew link `brew deps gtk`
    this is best done with
    by hand running brew link for each of the items in `brew deps gtk` along with fontconfig and gettext.
    some of these will already linked, and some won't be, so this command makes it simpler
    # brew will complain, who cares, this makes your life easier (at least if you're living in a haskell world :p )

  4. Carter Tazio Schonwald revised this gist Jan 30, 2012. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -13,6 +13,8 @@ this is best done with
    some of these will already linked, and some won't be, so this command makes it simpler
    # brew will complain, who cares, this makes your life easier (at least if you're living in a haskell world :p )

    NOTE: you will need to make sure that all these Brew libs are built, and linked in

    4) download libfreetype, heres a URL you can use http://sourceforge.net/projects/freetype/files/freetype2/2.4.8/freetype-2.4.8.tar.bz2/download?use_mirror=iweb
    5) unpack libfreetype, and then run
    ./configure ; make ; make install
  5. Carter Tazio Schonwald revised this gist Jan 30, 2012. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,11 @@ note that these directions probably can use some cleanup, but i'm choosing these

    2) brew install cairo gtk gettext fontconfig

    3) brew link cairo gettext fontconfig # brew will complain, who cares, this makes your life easier (at least if you're living in a haskell world :p )
    3) brew link cairo gettext fontconfig and all the other dependencies listed for brew's gtk formula
    this is best done with
    > brew link `brew deps gtk`
    some of these will already linked, and some won't be, so this command makes it simpler
    # brew will complain, who cares, this makes your life easier (at least if you're living in a haskell world :p )

    4) download libfreetype, heres a URL you can use http://sourceforge.net/projects/freetype/files/freetype2/2.4.8/freetype-2.4.8.tar.bz2/download?use_mirror=iweb
    5) unpack libfreetype, and then run
  6. cartazio revised this gist Jan 26, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    NOTE: on lion (and snow leopard i suppose), make sure you are using a 64 bit install of ghc.
    NOTE: on lion (and snow leopard i suppose), make sure you are using a 64 bit install of ghc. Also, unless you are suggesting an edit to these directions, please go ask people on the relevant mailing list or wiki for help :)

    note that these directions probably can use some cleanup, but i'm choosing these steps so that rebuilding any haskell library doesn't require remembering ANYTHING :-)
    (tested on ghc 7.2.2, assumes you have standard developer things installed on mac, like x11 and stuff)
  7. cartazio revised this gist Jan 26, 2012. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    NOTE: on lion (and snow leopard i suppose), make sure you are using a 64 bit install of ghc.

    note that these directions probably can use some cleanup, but i'm choosing these steps so that rebuilding any haskell library doesn't require remembering ANYTHING :-)
    (tested on ghc 7.2.2, assumes you have standard developer things installed on mac, like x11 and stuff)

  8. cartazio revised this gist Jan 22, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    note that these directions probably can use some cleanup, but i'm choosing these steps so that rebuilding any haskell library doesn't require remember ANYTHING :)
    note that these directions probably can use some cleanup, but i'm choosing these steps so that rebuilding any haskell library doesn't require remembering ANYTHING :-)
    (tested on ghc 7.2.2, assumes you have standard developer things installed on mac, like x11 and stuff)

    1) cabal install gtk2hs-buildtools #(this should work with any haskell platform install)
    @@ -19,7 +19,7 @@ this should work sans complaints!
    now you can eg
    cabal install chart-gtk
    and run
    this https://gist.github.com/1655252 example chart either by building with ghc and running the executable
    this https://gist.github.com/1655252 example chart code either by building with ghc and running the executable
    or by running main in ghc, and
    or
    try out some other cool libraries like diagrams!
  9. cartazio created this gist Jan 22, 2012.
    25 changes: 25 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    note that these directions probably can use some cleanup, but i'm choosing these steps so that rebuilding any haskell library doesn't require remember ANYTHING :)
    (tested on ghc 7.2.2, assumes you have standard developer things installed on mac, like x11 and stuff)

    1) cabal install gtk2hs-buildtools #(this should work with any haskell platform install)

    2) brew install cairo gtk gettext fontconfig

    3) brew link cairo gettext fontconfig # brew will complain, who cares, this makes your life easier (at least if you're living in a haskell world :p )

    4) download libfreetype, heres a URL you can use http://sourceforge.net/projects/freetype/files/freetype2/2.4.8/freetype-2.4.8.tar.bz2/download?use_mirror=iweb
    5) unpack libfreetype, and then run
    ./configure ; make ; make install
    this will install the static and dynamic library files for lib freetype in /usr/local/ (../include and ../lib) , which is what you'll want, though this will contribute to brew doctor complaining, but again, this is the easiest way

    6) cabal install gtk

    this should work sans complaints!

    now you can eg
    cabal install chart-gtk
    and run
    this https://gist.github.com/1655252 example chart either by building with ghc and running the executable
    or by running main in ghc, and
    or
    try out some other cool libraries like diagrams!