准备环境(Preparing the environment) 为了能正解安装PHP,我们需要准备一些依赖包(dependencies)。 我喜欢有Apache,MySQL和Postgres的支持,所以我们要确保这些软件已安装,以便PHP能打到它们: aptitude install build-essential vimaptitude install apache2 apache2-mpm-prefork apache2-prefork-dev apache2-utils apache2.2-commonaptitude install postgresql-9.1 postgresql-client-9.1 postgresql-client-common postgresql-common postgresql-server-dev-9.1aptitude install mysql-client mysql-client-5.5 mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5 libmcrypt-dev curl openssl
注意,这里我还需要安装一些其它的包,如:openssl,curl,libmcrypt-dev,以及build-essential (它对make和make install是必须的)。
|