Leopard開発環境作成メモ
まずXCode等の開発環境がLeopardのDVDディスクに入ってるのでインストールする。
Apache 2.2.6
プリインストールのApache2でphp5を有効にする。
/etc/apache2/httpd.conf を開き、
#LoadModule php5_module libexec/apache2/libphp5.so
のコメントを外す。以上。
MacPortsを使うのが楽
postgresのパッケージを調べる
$ port search postgres
インストール(必要ならば言語バインディング、JDBCドライバ等も)
$ sudo port install postgresql83
“To use the postgresql server, install the postgresql83-server port”とか言われるので、それも入れる
$ sudo port install postgresql83-server
色々言われる、曰く
########################################################### # A startup item has been generated that will aid in # starting postgresql83-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.postgresql83-server.plist ########################################################### To create a database instance, after install do sudo mkdir -p /opt/local/var/db/postgresql83/defaultdb sudo chown postgres:postgres /opt/local/var/db/postgresql83/defaultdb sudo su postgres -c '/opt/local/lib/postgresql83/bin/initdb -D /opt/local/var/db/postgresql83/defaultdb' To tweak your DBMS, consider increasing kern.sysv.shmmax by adding an increased kern.sysv.shmmax .. to /etc/sysctl.conf
だそうなので起動スクリプトを追加し、初期化する。postgresユーザはインストール時に作られてるっぽい
なおMacOSX 10.5では
$ dscl . -list /Users
とするとユーザ一覧が見れる
バイナリインストーラが配布されているので簡単にインストールできる。