리눅스

centos gd 라이브러리 설치하기

조원태 2017. 11. 14. 22:45
반응형

centos gd 라이브러리 설치하기


yum install gd php-gd


위 와 같이 할경우  아래와 같이 에러가 나온다면


[root@localhost public_html]# yum install gd php-gd

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

 * base: www.ftp.ne.jp

 * epel: ftp.riken.jp

 * extras: www.ftp.ne.jp

 * remi-safe: repo1.sea.innoscale.net

 * updates: www.ftp.ne.jp

 * webtatic: sp.repo.webtatic.com

Package gd-2.0.35-26.el7.x86_64 already installed and latest version

Resolving Dependencies

--> Running transaction check

---> Package php-gd.x86_64 0:5.4.16-42.el7 will be installed

--> Processing Dependency: php-common(x86-64) = 5.4.16-42.el7 for package: php-gd-5.4.16-42.el7.x86_64

--> Finished Dependency Resolution

Error: Package: php-gd-5.4.16-42.el7.x86_64 (base)

           Requires: php-common(x86-64) = 5.4.16-42.el7

           Installed: php-common-5.5.38-7.el7.remi.x86_64 (@remi-php55)

               php-common(x86-64) = 5.5.38-7.el7.remi

           Available: php-common-5.4.16-42.el7.x86_64 (base)

               php-common(x86-64) = 5.4.16-42.el7

           Available: php55w-common-5.5.38-1.w7.x86_64 (webtatic)

               php-common(x86-64) = 5.5.38-1.w7

           Available: php56w-common-5.6.31-1.w7.x86_64 (webtatic)

               php-common(x86-64) = 5.6.31-1.w7

           Available: php56w-common-5.6.31-2.w7.x86_64 (webtatic)

               php-common(x86-64) = 5.6.31-2.w7

           Available: php56w-common-5.6.32-1.w7.x86_64 (webtatic)

               php-common(x86-64) = 5.6.32-1.w7

           Available: php70w-common-7.0.22-2.w7.x86_64 (webtatic)

               php-common(x86-64) = 7.0.22-2.w7

           Available: php70w-common-7.0.23-1.w7.x86_64 (webtatic)

               php-common(x86-64) = 7.0.23-1.w7

           Available: php70w-common-7.0.23-2.w7.x86_64 (webtatic)

               php-common(x86-64) = 7.0.23-2.w7


다른 방법으로 설치 해야 합니다.



yum install php-gd --enablerepo=remi,remi-php55


위와 같이 하시면 설치 될거에요

반응형