Gitユニットの取り付け

Gitユニットの取り付け

yumコマンドを使用してgitをインストールしようとしています。

以下はエラーログです。

Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package git.x86_64 0:1.8.2.1-1.el5 will be installed
--> Processing Dependency: perl-Git = 1.8.2.1-1.el5 for package: git-1.8.2.1-1.el5.x86_64
--> Processing Dependency: perl(Term::ReadKey) for package: git-1.8.2.1-1.el5.x86_64
--> Processing Dependency: perl(Git) for package: git-1.8.2.1-1.el5.x86_64
--> Processing Dependency: perl(Error) for package: git-1.8.2.1-1.el5.x86_64
--> Processing Dependency: libssl.so.6()(64bit) for package: git-1.8.2.1-1.el5.x86_64
--> Processing Dependency: libexpat.so.0()(64bit) for package: git-1.8.2.1-1.el5.x86_64
--> Processing Dependency: libcurl.so.3()(64bit) for package: git-1.8.2.1-1.el5.x86_64
--> Processing Dependency: libcrypto.so.6()(64bit) for package: git-1.8.2.1-1.el5.x86_64
--> Running transaction check
---> Package git.x86_64 0:1.8.2.1-1.el5 will be installed
--> Processing Dependency: libssl.so.6()(64bit) for package: git-1.8.2.1-1.el5.x86_64
--> Processing Dependency: libexpat.so.0()(64bit) for package: git-1.8.2.1-1.el5.x86_64
--> Processing Dependency: libcurl.so.3()(64bit) for package: git-1.8.2.1-1.el5.x86_64
--> Processing Dependency: libcrypto.so.6()(64bit) for package: git-1.8.2.1-1.el5.x86_64
---> Package perl-Error.noarch 1:0.17010-1.el5 will be installed
--> Processing Dependency: perl(:MODULE_COMPAT_5.8.8) for package: 1:perl-Error-0.17010-1.el5.noarch
---> Package perl-Git.x86_64 0:1.8.2.1-1.el5 will be installed
--> Processing Dependency: perl(:MODULE_COMPAT_5.8.8) for package: perl-Git-1.8.2.1-1.el5.x86_64
---> Package perl-TermReadKey.x86_64 0:2.30-4.el5 will be installed
--> Processing Dependency: perl(:MODULE_COMPAT_5.8.8) for package: perl-TermReadKey-2.30-4.el5.x86_64
--> Finished Dependency Resolution
Error: Package: git-1.8.2.1-1.el5.x86_64 (epel)
           Requires: libssl.so.6()(64bit)
Error: Package: git-1.8.2.1-1.el5.x86_64 (epel)
           Requires: libexpat.so.0()(64bit)
Error: Package: perl-Git-1.8.2.1-1.el5.x86_64 (epel)
           Requires: perl(:MODULE_COMPAT_5.8.8)
Error: Package: git-1.8.2.1-1.el5.x86_64 (epel)
           Requires: libcrypto.so.6()(64bit)
Error: Package: perl-TermReadKey-2.30-4.el5.x86_64 (epel)
           Requires: perl(:MODULE_COMPAT_5.8.8)
Error: Package: 1:perl-Error-0.17010-1.el5.noarch (epel)
           Requires: perl(:MODULE_COMPAT_5.8.8)
Error: Package: git-1.8.2.1-1.el5.x86_64 (epel)
           Requires: libcurl.so.3()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

注文するyum repolist

Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
repo id                                                                     repo name                                                                                                          status
epel                                                                        Extra Packages for Enterprise Linux 5 - x86_64                                                                      7,351
rpmforge                                                                    RHEL 6Server - RPMforge.net - dag                                                                                  11,275
repolist: 18,626

欠落している依存関係をインストールして解決するのに役立ちます。

uname --kernel-release
2.6.32-279.el6.x86_64

ベストアンサー1

RPMForgeリポジトリを無効にしてみてください。

次のコマンドを実行します。

$ sudo yum --disablerepo=rpmforge install git

EPELとRPMForgeリポジトリはうまくいきません。

EPEL6リポジトリをEPEL5と混合しますか?

上記の方法で問題が解決しない場合は、EPEL6リポジトリをCentOS 5インストールと混合した可能性があります。 CentOS 5のインストールを見ると、次のリポジトリがあります。

$ yum repolist
Loaded plugins: fastestmirror
repo id                                  repo name                                                                            status
base                                     CentOS-5 - Base                                                                       3,641
convirt                                  ConVirt repository                                                                        4
convirt-dep                              ConVirt Dependencies                                                                      7
elrepo                                   ELRepo.org Community Enterprise Linux Repository - el5                                  412
extras                                   CentOS-5 - Extras                                                                       270
rpmforge                                 RHEL 5 - RPMforge.net - dag                                                          11,275
updates                                  CentOS-5 - Updates                                                                      447
repolist: 16,056

gitRPMForgeの外側にどのバージョンがあるかを確認してください。

$ sudo yum --disablerepo=rpmforge list all git*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.nexcess.net
 * elrepo: elrepo.org
 * extras: centos.mirrors.tds.net
 * updates: mirrors.einstein.yu.edu
Installed Packages
git.x86_64                                                1.7.10.4-1.el5.rf                                                installed

上記は、RPMForgeを無効にすると、git私のリポジトリポートフォリオで利用可能な唯一のバージョンはRPMForgeのバージョンであり、最新バージョンは1.7であることを示しています。

これを考えると、CentOS 6のパッケージを混ぜているようです。

引用する

おすすめ記事