目次
Trac 0.10.4-ja-1ではPostgreSQL-8.3.1を使用すると問題があるみたい。
互換性のない変更点 文字でない型 (日付型など) を自動的に text 型に変換しないようにしました。 今までは text 型入力を受けとる演算子や関数に文字でない値が渡されると、自動的に text 型にキャストしていました。 これからは text 型でないデータを渡したい場合には text 型への明示的なキャストが必要になります。
# wget -P /usr/local/src http://www.ring.gr.jp/pub/misc/db/postgresql/source/v8.2.6/postgresql-8.2.6.tar.gz
# cd /usr/local/src # tar zxvf postgresql-8.2.6.tar.gz
# groupadd postgres # useradd -g postgres postgres # passwd postgres
# chown -R postgres:postgres /usr/local/src/postgresql-8.2.6
# mkdir /usr/local/postgresql-8.2.6 # chown -R postgres:postgres /usr/local/postgresql-8.2.6
# su - postgres
$ cd /usr/local/src/postgresql-8.2.6 $ ./configure \ > --prefix=/usr/local/postgresql-8.2.6 \ > --enable-nls=ja \ > --with-openssl \ > --without-docdir
$ make $ make install
# ln -s /usr/local/postgresql-8.2.6 /usr/local/pgsql # chown -R postgres:postgres /usr/local/pgsql
$ vi ~/.bash_profile PGHOME=/usr/local/pgsql PGDATA=$PGHOME/data PGLIB=$PGHOME/lib PATH=$PATH:$HOME/bin:$PGHOME/bin export PGHOME PGDATA PGLIB PATH
$ source ~/.bash_profile
$ initdb --encoding=EUC_JP --no-locale
# cp /usr/local/src/postgresql-8.2.6/contrib/start-scripts/linux /etc/rc.d/init.d/pgsql
# vi /etc/rc.d/init.d/pgsql
# chmod 755 /etc/rc.d/init.d/pgsql # chkconfig --add pgsql # chkconfig pgsql on # chkconfig --list pgsql pgsql 0:off 1:off 2:on 3:on 4:on 5:on 6:off
# vi /etc/ld.so.conf /usr/local/pgsql/lib ← 追加して保存 # /etc/ldconfig -v ← 変更の適用
# su - postgres $ createuser -S -D -R tracuser
$ createdb -O tracuser trac_hoge-project --encoding=utf8