[Ruby] ruby-postgres
ruby で postgreSQL を利用するには、
FreeBSD なら
Windows なら
FreeBSD なら
$ tar zxvf ruby-postgres-*.tar.gzで大丈夫です。
$ ruby extconf.rb --with-pgsql-dir=/usr/local/pgsql
Windows なら
gem install ruby-postgresとして、さらに libpq.dll にアクセスできるようにするために環境変数の PATH に
今までの値;C:\Program Files\PostgreSQL\8.1\binを追加します。
Comments