Centos 6へのnginxのインストール不足している依存関係gdとlibgd.so.2 [閉じる]

Centos 6へのnginxのインストール不足している依存関係gdとlibgd.so.2 [閉じる]

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-manageryum-config-manager --enable baseリポジトリをアクティブにするには、コマンドを実行するだけです。

おすすめ記事