2012-07-31 138 views
0

我是一個Linux新手,試圖安裝php5和httpd到我的亞馬遜ec2 linux實例中:yum -y install php * httpd;安裝php *與mysql服務器衝突

我腹背受敵具有以下衝突:

---> 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服務器,版本爲5.5.24。

請教如何克服這個問題。提前致謝!

回答

1

好消息是,您已經安裝了php!如果它不工作,請檢查配置。壞消息是你的問題不是一個MySQL服務器問題,它是一個PHP的,據我所知libmysql與mysqlnd衝突(這意味着安裝了PHP,但運行一箇舊的驅動程序)。除非您的Web應用程序已經使用mysqlnd依賴函數,否則您並不需要升級,例如$stmt->get_result();