输入# apt-get install apache php4 php4-gd php4-mysql mysql-server mysql-client
输入后,系统说apache、php4、php4-gd、php4-mysql已经安装上了;
再输入apt-get install mysql-server mysql-client
系统信息:
You might want to run `apt-get -f install' to correct these:
Sorry, but the following packages have unmet dependencies:
xsim: Depends: libdb3++ (>= 3.2.9-16) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
于是运行:apt-get -f install,系统好像开始安装libdb3++,结束
再运行apt-get install mysql-server mysql-client,系统不再报上面缺少依赖libdb3++的信息。但停在Start MySQL database server:mysqld处,时间比较长
运行另一个终端,用ps –a 查看,发现mysql已经在运行了。