服務器正在運行的Centos 6.5 PHP 5.4.40。錯誤安裝在CentOS 6.5的php-devel的和PHP 5.4
請輸入:
yum install php-devel
結果如下:
Loaded plugins: fastestmirror, refresh-packagekit, replace, security
Loading mirror speeds from cached hostfile
* base: mirror.tngwebhost.com
* epel: fedora.westmancom.com
* extras: mirror.tocici.com
* updates: mirror.oss.ou.edu
* webtatic: uk.repo.webtatic.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-devel.x86_64 0:5.3.3-46.el6_6 will be installed
--> Processing Dependency: php(x86-64) = 5.3.3-46.el6_6 for package: php-devel-5.3.3-46.el6_6.x86_64
--> Running transaction check
---> Package php.x86_64 0:5.3.3-46.el6_6 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-46.el6_6 for package: php-5.3.3-46.el6_6.x86_64
--> Processing Dependency: php-cli(x86-64) = 5.3.3-46.el6_6 for package: php-5.3.3-46.el6_6.x86_64
--> Running transaction check
---> Package php-cli.x86_64 0:5.3.3-46.el6_6 will be installed
---> Package php-common.x86_64 0:5.3.3-46.el6_6 will be installed
--> Processing Conflict: php54w-common-5.4.40-1.w6.x86_64 conflicts php-common < 5.4.0
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package php54w-common.x86_64 0:5.4.40-1.w6 will be updated
--> Processing Dependency: php54w-common(x86-64) = 5.4.40-1.w6 for package: php54w-mbstring-5.4.40-1.w6.x86_64
--> Processing Dependency: php54w-common(x86-64) = 5.4.40-1.w6 for package: php54w-gd-5.4.40-1.w6.x86_64
--> Processing Dependency: php54w-common(x86-64) = 5.4.40-1.w6 for package: php54w-pdo-5.4.40-1.w6.x86_64
--> Processing Dependency: php54w-common(x86-64) = 5.4.40-1.w6 for package: php54w-5.4.40-1.w6.x86_64
--> Processing Dependency: php54w-common(x86-64) = 5.4.40-1.w6 for package: php54w-cli-5.4.40-1.w6.x86_64
--> Processing Dependency: php54w-common(x86-64) = 5.4.40-1.w6 for package: php54w-xml-5.4.40-1.w6.x86_64
--> Processing Dependency: php54w-common(x86-64) = 5.4.40-1.w6 for package: php54w-dba-5.4.40-1.w6.x86_64
--> Processing Dependency: php54w-common(x86-64) = 5.4.40-1.w6 for package: php54w-bcmath-5.4.40-1.w6.x86_64
---> Package php54w-common.x86_64 0:5.4.45-1.w6 will be an update
--> Running transaction check
---> Package php54w.x86_64 0:5.4.40-1.w6 will be updated
---> Package php54w.x86_64 0:5.4.45-1.w6 will be an update
---> Package php54w-bcmath.x86_64 0:5.4.40-1.w6 will be updated
---> Package php54w-bcmath.x86_64 0:5.4.45-1.w6 will be an update
---> Package php54w-cli.x86_64 0:5.4.40-1.w6 will be updated
---> Package php54w-cli.x86_64 0:5.4.45-1.w6 will be an update
---> Package php54w-dba.x86_64 0:5.4.40-1.w6 will be updated
---> Package php54w-dba.x86_64 0:5.4.45-1.w6 will be an update
---> Package php54w-gd.x86_64 0:5.4.40-1.w6 will be updated
---> Package php54w-gd.x86_64 0:5.4.45-1.w6 will be an update
---> Package php54w-mbstring.x86_64 0:5.4.40-1.w6 will be updated
---> Package php54w-mbstring.x86_64 0:5.4.45-1.w6 will be an update
---> Package php54w-pdo.x86_64 0:5.4.40-1.w6 will be updated
---> Package php54w-pdo.x86_64 0:5.4.45-1.w6 will be an update
---> Package php54w-xml.x86_64 0:5.4.40-1.w6 will be updated
---> Package php54w-xml.x86_64 0:5.4.45-1.w6 will be an update
--> Processing Conflict: php54w-common-5.4.45-1.w6.x86_64 conflicts php-common < 5.4.0
--> Finished Dependency Resolution
Error: php54w-common conflicts with php-common-5.3.3-46.el6_6.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
另一位用戶運行5.3的時候就因此不得不問題,嘗試了他們的建議與變化沒有運氣。錯誤的最後兩行作出建議,但不想嘗試,服務器可能產生負面影響隨機命令。任何想法或我可以提供的更多信息?
要注意,最終要安裝SSH2,但需要PHP-devel的。
看起來像php-devel已經過時了,因爲PHP甚至超過了5.4。當然,WTH是否需要PHP?還有一個討厭CentOS的理由。 不是你。只是CentOS。我也必須爲幾個項目運行它...... –
相信我我討厭CentOS。我爲我的所有項目使用Ubuntu,因此以前沒有遇到過這些奇怪的事情。盡力幫助另一個人,但是如果可以的話,儘可能解決他們的問題。聽起來像它可能更麻煩,它是值得的。 – cchiera