#user"test"&DATABASE "testdb" を作る
~/app/postgresql-8.2.3/bin/createuser test
Shall the new role be superuser? (y/n) n
Shall the new role allowed to create databases? (y/n) n
Shall the new role allowed to create more new roles? (y/n) n
CREATE ROLE ←#これでtestアカウントでPostgresqlにアクセスできるようになる
wget http;//ruby.scripting.ca/postgres/archive/ruby-postgres-0.7.1.tar.gz
tar xvfz ~/files/ruby-postgres-0.7.1.tar.gz
cd ruby-postgres-0.7.1/
ruby extconft.rb --with-pgsql-include-dir=/home/test/app/postgresql-8.2.0/include --with-pgsql-lib-dir=/home/test/app/postgresql-8.2.0/lib
* can`t find header files for ruby.と表示されたらruby-develが入っていないので入れる
wget http://ftp.riken.jp/Linux/fedora/core/4/i386os/Fedora/RPMS/ruby-devel-1.8.2-7.i386.rpm
make
make install