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
위와 같이 하시면 설치 될거에요
'리눅스' 카테고리의 다른 글
리눅스 tomcat heap memory 확인 및 설정하기 (0) | 2020.07.06 |
---|---|
리눅스 centos 모든 파일 인코딩 변경하기 (0) | 2017.09.07 |
htaccess www 붙이기 2차도메인 없애기 (0) | 2017.01.26 |
리눅스 파일 특정 문자열 치환 (0) | 2016.12.27 |
리눅스 날짜기준으로 특정 파일 삭제 하기 (0) | 2016.12.09 |