MacにMacPortsとGaucheを入れてみた

MacGaucheを入れてみようと思ったらMacPortsがあると簡単にインストールできるらしい。で、噂に聞くMacPortsやらを使ってインストールしようと思ったら、これって標準で入っている訳ではないんだね。

ということで、インストール。最新バージョンは1.9.1みたい。以下の本家サイトで確認。

The MacPorts Project -- Home

ビルド済みのパッケージもあるみたいなのでこれを使うと多分簡単。以下のURLから「MacPorts-1.9.1-10.6-SnowLeopard.dmg」をダウンロード。

http://distfiles.macports.org/MacPorts/

インストールが終わったらport info パッケージ名で情報を確認してみる。

$ port info gauche
gauche @0.9 (lang, scheme)
Variants:             euc_jp, no_gdbm, no_iconv, no_ipv6, no_multibyte, no_slib, no_threads, sjis

Description:          Gauche is a script interpreter based on Scheme. Gauche conforms the language standard 'Revised^5 Report on the Algorithmic
                      Language Scheme' and supports various common libraries defined in SRFIs. The goal of Gauche is to provide a handy tool for
                      programmers and system administrators to handle daily works conveniently and efficiently in the production environment. There
                      are lots of Scheme implementations available, and each of them has its design emphasis and weeknesses. Gauche is designed with
                      emphasis on Quick startup, Multibyte strings, Modular development, Integrated object system, System interface and Enhanced I/O.
Homepage:             http://www.shiro.dreamhost.com/scheme/gauche/

Library Dependencies: gdbm, libiconv, slib
Platforms:            darwin
License:              unknown
Maintainers:          akitada@macports.org, openmaintainer@macports.org

バージョンは0.9で最新っぽいね。
Gauche - A Scheme Implementation
ということで、インストールしてみる!

$ sudo port install gauche

インストールできたら動作確認してみる。

$ gosh 
gosh> (+ 1 2)
3

やった。ちょー簡単だね。

次は、Gauche on Rails っていうフレームワークがあるらしい!ので、これを試してみようかな。
http://en.kendincos.net/video-rldrftll--lisp-web--gauche-on-rails--.html

また、Amazon EC2が2010年11月1日から1年間無料で利用できるサービスを開始したらしい。

Amazon EC2、1年間限定でフリーミアムサービスを開始。日本でも利用可能 - ITmedia エンタープライズ

Gaucheが動く環境でサービス公開ってなかなか敷居が高かったけど、とりあえず1年無料ということで試しにやってみる絶好の機会だと思われる。

やってみよー。