我在 VPS 上运行 centos6。当我写命令时,
# rpm -ivh ftp://195.220.108.108/linux/remi/enterprise/6/test/i386/php-fpm-5.5.4-1.el6.remi.i686.rpmrpm -ivh ftp://195.220.108.108/linux/remi/enterprise/6/test/i386/php-fpm-5.5.4-1.el6.remi.i686.rpm
输出是
# rpm -ivh ftp://195.220.108.108/linux/remi/enterprise/6/test/i386/php-fpm-5.5.4-1.el6.remi.i686.rpm
Retrieving ftp://195.220.108.108/linux/remi/enterprise/6/test/i386/php-fpm-5.5.4-1.el6.remi.i686.rpm
error: Failed dependencies:
php-common(x86-32) = 5.5.4-1.el6.remi is needed by php-fpm-5.5.4-1.el6.remi.i686
所以我去安装 php-common
# rpm -Uvh ftp://195.220.108.108/linux/remi/enterprise/6/test/i386/php-common-5.5.4-1.el6.remi.i686.rpm
它带有这些依赖项
Retrieving ftp://195.220.108.108/linux/remi/enterprise/6/test/i386/php-common-5.5.4-1.el6.remi.i686.rpm
error: Failed dependencies:
php-pecl-jsonc(x86-32) is needed by php-common-5.5.4-1.el6.remi.i686
php-pecl-zip(x86-32) is needed by php-common-5.5.4-1.el6.remi.i686
php-common(x86-32) = 5.4.20-1.el6.remi is needed by (installed) php-cli-5.4.20-1.el6.remi.i686
php-common(x86-32) = 5.4.20-1.el6.remi is needed by (installed) php-pdo-5.4.20-1.el6.remi.i686
php-common(x86-32) = 5.4.20-1.el6.remi is needed by (installed) php-gd-5.4.20-1.el6.remi.i686
php-common(x86-32) = 5.4.20-1.el6.remi is needed by (installed) php-5.4.20-1.el6.remi.i686
php-common(x86-32) = 5.4.20-1.el6.remi is needed by (installed) php-fpm-5.4.20-1.el6.remi.i686
php-common(x86-32) = 5.4.20-1.el6.remi is needed by (installed) php-xml-5.4.20-1.el6.remi.i686
php-common(x86-32) = 5.4.20-1.el6.remi is needed by (installed) php-mbstring-5.4.20-1.el6.remi.i686
我的问题 - 有没有办法一次安装它们?对不起,如果我这么菜鸟!