めも帖

「めも帖」代わりにダラダラと書いていったり、めもしたりしているだけです。

MacPortsでPHP5をインストールする

MacPortsでPHP5をインストールしようと思います。

MacPortsでPHP5をインストールする

$ sudo port install php5 +apache2 +mysql5 +postgresql83 +pear

オプションのリスト

調べてみると、色々とコンパイルのオプションが多いようです。
これは、迷うなあ。

$ port variants php5php5 has the variants:
	darwin_6: Platform variant, do not select manually
	darwin_7: Platform variant, do not select manually
	macosx: Platform variant, do not select manually
	no_web: Don't include any web server support
	apache: Add Apache 1 web server module
	apache2: Add Apache 2.2 web server module (default)
	fastcgi: Add FastCGI web server binary
	gmp: Add GNU MP functions
	dbase: Add dBase file format support
	imap: enable operation with IMAP protocol
	pspell: Add pspell spell-checking functions
	tidy: add Tidy support
	mssql: add support for MS-SQL server
	snmp: use Apple snmp
	macports_snmp: use MacPorts snmp
	mysql3: build MySQL 3 support
	mysql4: build MySQL 4 support
	mysql5: build MySQL 5 support
	oracle: Add Oracle oci8 database functions with the Oracle Instant Client
	postgresql82: provide postgresql82 support
	postgresql83: provide postgresql83 support
	sqlite: build sqlite support
	ipc: build IPC support
	pcntl: provide process control
	pear: add pear stuff
	readline: Add GNU readline functions
	sockets: Add socket communication functions
	t1lib: Add PostScript Type 1 font support with t1lib
	universal: Build for multiple architectures