[Ruby] ruby-postgres

ruby で postgreSQL を利用するには、
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 (0) | trackbacks (0)

Comments

Comment Form

icons:

Trackbacks