#sudo port install postgresql82-server
だと、コンパイルエラーでインストールできない。既知のバグのよう。
http://trac.macosforge.org/projects/macports/ticket/12994
を参考に、一度installに失敗したあとに、Portfileを上書きする。
http://www.twothree.dk/macports/postgresql825-fix/Portfile
をダウンロードして、
#sudo cp Portfile /opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/postgresql82/
# A startup item has been generated that will aid in
# starting postgresql82-server with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo launchctl load -w /Library/LaunchDaemons/org.macports.postgresql82-server.plist
---> Installing postgresql82-server 8.2.5_0
To create a database instance, after install do
sudo mkdir -p /opt/local/var/db/postgresql82/defaultdb
sudo chown postgres:postgres /opt/local/var/db/postgresql82/defaultdb
sudo su postgres -c '/opt/local/lib/postgresql82/bin/initdb -D /opt/local/var/db/postgresql82/defaultdb'
To tweak your DBMS, consider increasing kern.sysv.shmmax by adding an increased kern.sysv.shmmax .. to /etc/sysctl.conf
---> Activating postgresql82-server 8.2.5_0
---> Cleaning postgresql82-server
0 件のコメント:
コメントを投稿