Centos 6의 EPEL에서 Nginx를 설치하려고 하면 위의 종속성이 누락되었습니다.
아래에 outbpt를 복사했습니다.
# yum install nginx
Loaded plugins: fastestmirror, priorities, replace, security
Setting up Install Process
Determining fastest mirrors
epel/metalink | 25 kB 00:00
* epel: mirror.netweaver.uk
* extras: ftp.heanet.ie
* updates: ftp.heanet.ie
epel | 4.7 kB 00:00
epel/primary_db | 6.0 MB 00:01
epel-httpd24 | 2.9 kB 00:00
extras | 3.4 kB 00:00
extras/primary_db | 28 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 3.2 MB 00:00
22 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package nginx.x86_64 0:1.10.2-1.el6 will be installed
--> Processing Dependency: nginx-all-modules = 1.10.2-1.el6 for package: nginx-1.10.2-1.el6.x86_64
--> Processing Dependency: nginx-filesystem = 1.10.2-1.el6 for package: nginx-1.10.2-1.el6.x86_64
--> Processing Dependency: nginx-filesystem for package: nginx-1.10.2-1.el6.x86_64
--> Running transaction check
---> Package nginx-all-modules.noarch 0:1.10.2-1.el6 will be installed
--> Processing Dependency: nginx-mod-http-geoip = 1.10.2-1.el6 for package: nginx-all-modules-1.10.2-1.el6.noarch
--> Processing Dependency: nginx-mod-http-image-filter = 1.10.2-1.el6 for package: nginx-all-modules-1.10.2-1.el6.noarch
--> Processing Dependency: nginx-mod-http-perl = 1.10.2-1.el6 for package: nginx-all-modules-1.10.2-1.el6.noarch
--> Processing Dependency: nginx-mod-http-xslt-filter = 1.10.2-1.el6 for package: nginx-all-modules-1.10.2-1.el6.noarch
--> Processing Dependency: nginx-mod-mail = 1.10.2-1.el6 for package: nginx-all-modules-1.10.2-1.el6.noarch
--> Processing Dependency: nginx-mod-stream = 1.10.2-1.el6 for package: nginx-all-modules-1.10.2-1.el6.noarch
---> Package nginx-filesystem.noarch 0:1.10.2-1.el6 will be installed
--> Running transaction check
---> Package nginx-mod-http-geoip.x86_64 0:1.10.2-1.el6 will be installed
--> Processing Dependency: GeoIP for package: nginx-mod-http-geoip-1.10.2-1.el6.x86_64
--> Processing Dependency: libGeoIP.so.1()(64bit) for package: nginx-mod-http-geoip-1.10.2-1.el6.x86_64
---> Package nginx-mod-http-image-filter.x86_64 0:1.10.2-1.el6 will be installed
--> Processing Dependency: gd for package: nginx-mod-http-image-filter-1.10.2-1.el6.x86_64
--> Processing Dependency: libgd.so.2()(64bit) for package: nginx-mod-http-image-filter-1.10.2-1.el6.x86_64
---> Package nginx-mod-http-perl.x86_64 0:1.10.2-1.el6 will be installed
---> Package nginx-mod-http-xslt-filter.x86_64 0:1.10.2-1.el6 will be installed
---> Package nginx-mod-mail.x86_64 0:1.10.2-1.el6 will be installed
---> Package nginx-mod-stream.x86_64 0:1.10.2-1.el6 will be installed
--> Running transaction check
---> Package GeoIP.x86_64 0:1.6.5-1.el6 will be installed
--> Processing Dependency: GeoIP-data for package: GeoIP-1.6.5-1.el6.x86_64
--> Processing Dependency: geoipupdate for package: GeoIP-1.6.5-1.el6.x86_64
---> Package nginx-mod-http-image-filter.x86_64 0:1.10.2-1.el6 will be installed
--> Processing Dependency: gd for package: nginx-mod-http-image-filter-1.10.2-1.el6.x86_64
--> Processing Dependency: libgd.so.2()(64bit) for package: nginx-mod-http-image-filter-1.10.2-1.el6.x86_64
--> Running transaction check
---> Package GeoIP-GeoLite-data.noarch 0:2018.04-1.el6 will be installed
--> Processing Dependency: GeoIP-GeoLite-data-extra = 2018.04-1.el6 for package: GeoIP-GeoLite-data-2018.04-1.el6.noarch
---> Package geoipupdate.x86_64 0:3.1.1-2.el6 will be installed
---> Package nginx-mod-http-image-filter.x86_64 0:1.10.2-1.el6 will be installed
--> Processing Dependency: gd for package: nginx-mod-http-image-filter-1.10.2-1.el6.x86_64
--> Processing Dependency: libgd.so.2()(64bit) for package: nginx-mod-http-image-filter-1.10.2-1.el6.x86_64
--> Running transaction check
---> Package GeoIP-GeoLite-data-extra.noarch 0:2018.04-1.el6 will be installed
---> Package nginx-mod-http-image-filter.x86_64 0:1.10.2-1.el6 will be installed
--> Processing Dependency: gd for package: nginx-mod-http-image-filter-1.10.2-1.el6.x86_64
--> Processing Dependency: libgd.so.2()(64bit) for package: nginx-mod-http-image-filter-1.10.2-1.el6.x86_64
--> Finished Dependency Resolution
Error: Package: nginx-mod-http-image-filter-1.10.2-1.el6.x86_64 (epel)
Requires: gd
Error: Package: nginx-mod-http-image-filter-1.10.2-1.el6.x86_64 (epel)
Requires: libgd.so.2()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
답변1
OP의 문제를 해결한 것 같아서 내 의견을 답변으로 바꿉니다.
이것gd-2.0.35-11.el6.x86_64.rpmOP 시스템(CentOS 6, x86-64)에 해당하는 패키지는 CentOS 6 "기본" 저장소에서 찾을 수 있습니다.
yum
질문에 표시된 출력은 활성화된 모든 저장소에 대해 저장소 데이터가 다운로드되고 캐시된다는 것을 보여줍니다. 이 목록에는 '기본' 저장소가 없습니다. 따라서 "기본" 저장소는 OP 시스템에서 비활성화되었을 가능성이 높습니다.
CentOS-Base.repo
/etc/yum.repos.d
"기본" 저장소는 디렉토리의 파일을 편집하고 매개변수를 설정하여 다시 활성화할 수 있습니다 enabled = 1
.
이 도구를 사용하면 보다 직접적인 방법으로 이 작업을 수행할 수도 있습니다 yum-config-manager
. yum-config-manager --enable base
저장소를 활성화하려면 명령을 실행하기만 하면 됩니다 .