gaucheのアップデートと拡張パッケージのインストール

gauche をアップデートしなきゃ,というのと,gauche-gl をインストールしないと,ということがあったので,自分用のメモです.

前提

  • MacBookAir (Lion)
  • macport で gauche 0.9.3.3 をインストール済み
    • /opt/local/bin/gosh
  • gauche-gl はインストールしていない

gauche 0.9.4 にアップデートする

アップデートというより,インストールしなおし,って感じになった.

  • macport で gauche 0.9.4 を探す(ついでに gauche-gl 0.6 も探す)
    • port search gauche
      • gauche 0.9.3.3 と gauche-gl 0.4.4 (どちらもバージョンが古い)
  • homebrew で gauche 0.9.4 を探す(ついでに gauche-gl 0.6 も探す)
    • brew search gauche
    • brew info gauche
  • macport でインストール済みの gauche 0.9.3.3 をアンインストールする
    • sudo port uninstall gauche
  • homebrew で gauche 0.9.4 をインストールする
    • brew install gauche
      • /usr/local/bin/gosh
  • 自分は Sublime Text 2 の SublimeREPL で評価するのだが,gauche をインストールして,ST2 側では特に何もせずに使用することができた.やったね.

gauche-gl をインストールする

homebrew で gauche-gl が見つからないので,Gauche-gl : OpenGL binding for Gauche を参考に必要なもののインストールなど,していく.

$ gosh
gosh> (use gl)
#<undef>
gosh> (exit)
  • サンプルのファイル gears.scm が実行できるかを確認する.サンプルファイルは Gauche-gl-0.6/examples にある
    • gosh examples/gears.scm

gauche-gl をちょろっと触ってみた感想など