질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

yum으로 php 설치시 의존성 문제.

작성자 정보

  • 레익휘 작성
  • 작성일

컨텐츠 정보

본문

안녕하세요
다름 아니라 yum을 통해서 php를 서버에 설치하려고 하는데
아래와 같은 메시지와 함께
설치가 되지 않습니다.

의존성이 문제가 되는 부분인 듯 한데
정확하게 알 수 있을까요??

[root@ggc26 /]# yum -y install php
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
The program yum-complete-transaction is found in the yum-utils package.
--> Running transaction check
---> Package php.i386 0:5.1.6-27.el5_5.3 set to be updated
--> Processing Dependency: php-common = 5.1.6-27.el5_5.3 for package: php
--> Processing Dependency: php-cli = 5.1.6-27.el5_5.3 for package: php
--> Finished Dependency Resolution
php-5.1.6-27.el5_5.3.i386 from base has depsolving problems
  --> Missing Dependency: php-common = 5.1.6-27.el5_5.3 is needed by package php-5.1.6-27.el5_5.3.i386 (base)
php-5.1.6-27.el5_5.3.i386 from base has depsolving problems
  --> Missing Dependency: php-cli = 5.1.6-27.el5_5.3 is needed by package php-5.1.6-27.el5_5.3.i386 (base)
Error: Missing Dependency: php-common = 5.1.6-27.el5_5.3 is needed by package php-5.1.6-27.el5_5.3.i386 (base)
Error: Missing Dependency: php-cli = 5.1.6-27.el5_5.3 is needed by package php-5.1.6-27.el5_5.3.i386 (base)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
[root@ggc26 /]# 

관련자료

댓글 1

데이브님의 댓글

  • 데이브
  • 작성일
만약 기존의 php 패키지를 지우고 설치하셔도 무방하다면, 기존에 설치된 패키지를 모두 지우시고 새로 깔아보시면
될듯하네요.
yum remove php*
yum install php*
정도 하시면 될듯하네요.

공지사항


뉴스광장


  • 현재 회원수 :  60,032 명
  • 현재 강좌수 :  35,773 개
  • 현재 접속자 :  172 명