普通に./configure。
arのオプションでsなんか知らないといわれたので、port/Makefileのcrsのsを削る。
あとは上書きインストールだったので、特に問題はなかった。
initdbして
postmaster
で起動すると、
FATAL: invalid value for option 'LC_TIME': 'ja_JP.EUC'
というエラーで止まる。LC_TIMEをgrepしてみると、data/postgresql.confに LC_TIMEの定義部分があるので、ここを「C」にしてやる。んでまた起動。
IpcSemaphoreCreate: semget(key=5432003, num=17, 03600) failed: No space left on device This error does *not* mean that you have run out of disk space.
今度はmax_connectionが多いとか言われたので、明示的に指定してやる。
postmaster -c max_connections=10 &
これで起動した。