用mysql-server冲突安装php *

时间:2012-07-31 05:05:19

标签: php mysql linux amazon-ec2 apache

我是一个Linux新手,试图将php5和httpd安装到我的amazon ec2 linux实例中:yum -y install php * httpd;

我遇到了以下冲突:

---> Package unixODBC.i686 0:2.2.14-11.5.amzn1 will be installed
--> Running transaction check
---> Package ghostscript.i686 0:8.70-11.20.amzn1 will be installed
--> Processing Dependency: urw-fonts >= 1.1 for package: ghostscript-8.70-11.20.amzn1.i686
--> Processing Dependency: libcupsimage.so.2 for package: ghostscript-8.70-11.20.amzn1.i686
--> Processing Dependency: libjasper.so.1 for package: ghostscript-8.70-11.20.amzn1.i686
--> Processing Dependency: libcairo.so.2 for package: ghostscript-8.70-11.20.amzn1.i686
--> Processing Dependency: libcups.so.2 for package: ghostscript-8.70-11.20.amzn1.i686
--> Processing Dependency: ghostscript-fonts for package: ghostscript-8.70-11.20.amzn1.i686
---> Package gnutls.i686 0:2.8.5-4.6.amzn1 will be installed
--> Processing Dependency: libtasn1.so.3 for package: gnutls-2.8.5-4.6.amzn1.i686
--> Processing Dependency: libtasn1.so.3(LIBTASN1_0_3) for package: gnutls-2.8.5-4.6.amzn1.i686
---> Package lcms-libs.i686 0:1.19-1.5.amzn1 will be installed
---> Package libXt.i686 0:1.0.7-1.6.amzn1 will be installed
---> Package libgomp.i686 0:4.6.2-1.27.amzn1 will be installed
---> Package libtiff.i686 0:3.9.4-6.10.amzn1 will be installed
---> Package libwmf-lite.i686 0:0.2.8.4-22.7.amzn1 will be installed
--> Running transaction check
---> Package cairo.i686 0:1.8.8-3.1.4.amzn1 will be installed
--> Processing Dependency: libpixman-1.so.0 for package: cairo-1.8.8-3.1.4.amzn1.i686
---> Package cups-libs.i686 1:1.4.2-44.10.amzn1 will be installed
--> Processing Dependency: libavahi-common.so.3 for package: 1:cups-libs-1.4.2-44.10.amzn1.i686
--> Processing Dependency: libavahi-client.so.3 for package: 1:cups-libs-1.4.2-44.10.amzn1.i686
---> Package ghostscript-fonts.noarch 0:5.50-23.1.6.amzn1 will be installed
--> Processing Dependency: xorg-x11-font-utils for package: ghostscript-fonts-5.50-23.1.6.amzn1.noarch
---> Package jasper-libs.i686 0:1.900.1-15.5.amzn1 will be installed
---> Package libtasn1.i686 0:2.3-3.4.amzn1 will be installed
---> Package urw-fonts.noarch 0:2.4-10.7.amzn1 will be installed
--> Running transaction check
---> Package avahi-libs.i686 0:0.6.25-11.12.amzn1 will be installed
---> Package pixman.i686 0:0.18.4-1.5.amzn1 will be installed
---> Package xorg-x11-font-utils.i686 1:7.2-11.5.amzn1 will be installed
--> Processing Dependency: libXfont.so.1 for package: 1:xorg-x11-font-utils-7.2-11.5.amzn1.i686
--> Processing Dependency: libfontenc.so.1 for package: 1:xorg-x11-font-utils-7.2-11.5.amzn1.i686
--> Running transaction check
---> Package libXfont.i686 0:1.4.1-2.6.amzn1 will be installed
---> Package libfontenc.i686 0:1.0.5-2.6.amzn1 will be installed
--> Processing Conflict: php-mysql-5.3.14-2.21.amzn1.i686 conflicts php-mysqlnd
--> Finished Dependency Resolution
Error: php-mysql conflicts with php-mysqlnd
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

我以前安装过mysql-server,版本是5.5.24。

请告知如何克服这个问题。提前谢谢!

1 个答案:

答案 0 :(得分:1)

好消息是,你已经安装了php!如果它不起作用,请检查配置。坏消息是你的问题不是mysql服务器问题它是一个php,据我所知libmysql与mysqlnd冲突(这意味着安装了php但运行旧驱动程序)。除非您的Web应用程序已经使用了与mysqlnd相关的函数,否则您不需要升级,例如$stmt->get_result();