CentOS 6でgitのバージョンを上げる¶
CentOS 6.4の標準搭載gitはバージョンが1.7.1ですが、問題をはらんでいます。
CentOS 6のgitバージョンを1.7.1から新しくする
RPMforgeのgitをインストール¶
wandiscoのgitをインストール¶
Subversion、Git、Hadoopの商用サポートを提供しているWandiscoがCentOS 6向けRPMリポジトリを公開しています。
- CentOS 6 64bit版RPMリポジトリ
http://opensource.wandisco.com/centos/6/git/x86_64/
- /etc/yum.repos.d/wandisco.repoに追記(ファイルがなければ新規作成)
[wandisco-git] name=WANdisco Distribution of git baseurl=http://opensource.wandisco.com/centos/6/git/$basearch enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-WANdisco
- (まだ取り込んでなければ)GPGキーを取り込み
# rpm --import http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco
# yum update git --enablerepo=wandisco-git
依存関係解決のための暫定処置¶
2015-07-04現在、WANDiscoのgit-2.4.1ではCentOS 6の標準gitをエラーなく更新できました。 |
wandiscoのリポジトリからgitをインストールしようとすると、多数の依存関係のエラーが発生します。
$ sudo yum --enablerepo=wandisco-git install git Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: www.ftp.ne.jp * extras: www.ftp.ne.jp * updates: www.ftp.ne.jp Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package git.x86_64 0:1.9.0-1.WANdisco.173 will be installed --> Processing Dependency: perl-Git = 1.9.0-1.WANdisco.173 for package: git-1.9.0-1.WANdisco.173.x86_64 --> Processing Dependency: perl >= 5.008 for package: git-1.9.0-1.WANdisco.173.x86_64 --> Processing Dependency: perl(File::stat) for package: git-1.9.0-1.WANdisco.173.x86_64 --> Processing Dependency: perl(Exporter) for package: git-1.9.0-1.WANdisco.173.x86_64 --> Processing Dependency: perl(File::Basename) for package: git-1.9.0-1.WANdisco.173.x86_64 --> Processing Dependency: perl(File::Copy) for package: git-1.9.0-1.WANdisco.173.x86_64 --> Processing Dependency: perl(vars) for package: git-1.9.0-1.WANdisco.173.x86_64 --> Processing Dependency: perl(warnings) for package: git-1.9.0-1.WANdisco.173.x86_64 --> Processing Dependency: perl(constant) for package: git-1.9.0-1.WANdisco.173.x86_64 --> Processing Dependency: perl(Getopt::Long) for package: git-1.9.0-1.WANdisco.173.x86_64 --> Processing Dependency: perl(strict) for package: git-1.9.0-1.WANdisco.173.x86_64 --> Processing Dependency: perl(File::Spec) for package: git-1.9.0-1.WANdisco.173.x86_64 --> Processing Dependency: perl(lib) for package: git-1.9.0-1.WANdisco.173.x86_64 --> Processing Dependency: perl(Git) for package: git-1.9.0-1.WANdisco.173.x86_64 --> Processing Dependency: rsync for package: git-1.9.0-1.WANdisco.173.x86_64 --> Processing Dependency: perl(Error) for package: git-1.9.0-1.WANdisco.173.x86_64 --> Processing Dependency: perl(File::Temp) for package: git-1.9.0-1.WANdisco.173.x86_64 --> Processing Dependency: perl(File::Find) for package: git-1.9.0-1.WANdisco.173.x86_64 --> Processing Dependency: /usr/bin/perl for package: git-1.9.0-1.WANdisco.173.x86_64 --> Processing Dependency: perl(File::Path) for package: git-1.9.0-1.WANdisco.173.x86_64 --> Running transaction check ---> Package perl.x86_64 4:5.10.1-136.el6 will be installed --> Processing Dependency: perl-libs = 4:5.10.1-136.el6 for package: 4:perl-5.10.1-136.el6.x86_64 --> Processing Dependency: perl-libs for package: 4:perl-5.10.1-136.el6.x86_64 --> Processing Dependency: perl(version) for package: 4:perl-5.10.1-136.el6.x86_64 --> Processing Dependency: perl(Pod::Simple) for package: 4:perl-5.10.1-136.el6.x86_64 --> Processing Dependency: perl(Module::Pluggable) for package: 4:perl-5.10.1-136.el6.x86_64 --> Processing Dependency: libperl.so()(64bit) for package: 4:perl-5.10.1-136.el6.x86_64 ---> Package perl-Error.noarch 1:0.17015-4.el6 will be installed ---> Package perl-Git.noarch 0:1.9.0-1.WANdisco.173 will be installed --> Processing Dependency: perl(YAML::Any) for package: perl-Git-1.9.0-1.WANdisco.173.noarch --> Processing Dependency: perl(SVN::Client) for package: perl-Git-1.9.0-1.WANdisco.173.noarch --> Processing Dependency: perl(SVN::Delta) for package: perl-Git-1.9.0-1.WANdisco.173.noarch --> Processing Dependency: perl(SVN::Core) for package: perl-Git-1.9.0-1.WANdisco.173.noarch --> Processing Dependency: perl(SVN::Ra) for package: perl-Git-1.9.0-1.WANdisco.173.noarch ---> Package rsync.x86_64 0:3.0.6-9.el6_4.1 will be installed --> Running transaction check ---> Package perl-Module-Pluggable.x86_64 1:3.90-136.el6 will be installed ---> Package perl-Pod-Simple.x86_64 1:3.13-136.el6 will be installed --> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Simple-3.13-136.el6.x86_64 ---> Package perl-YAML.noarch 0:0.70-4.el6 will be installed ---> Package perl-libs.x86_64 4:5.10.1-136.el6 will be installed ---> Package perl-version.x86_64 3:0.77-136.el6 will be installed ---> Package subversion-perl.x86_64 0:1.6.11-10.el6_5 will be installed --> Processing Dependency: subversion = 1.6.11-10.el6_5 for package: subversion-perl-1.6.11-10.el6_5.x86_64 --> Running transaction check ---> Package perl-Pod-Escapes.x86_64 1:1.04-136.el6 will be installed ---> Package subversion.i686 0:1.6.11-10.el6_5 will be installed --> Processing Dependency: perl(URI) >= 1.17 for package: subversion-1.6.11-10.el6_5.i686 --> Processing Dependency: libz.so.1 for package: subversion-1.6.11-10.el6_5.i686 --> Processing Dependency: libsqlite3.so.0 for package: subversion-1.6.11-10.el6_5.i686 --> Processing Dependency: libsasl2.so.2 for package: subversion-1.6.11-10.el6_5.i686 --> Processing Dependency: libpthread.so.0(GLIBC_2.0) for package: subversion-1.6.11-10.el6_5.i686 --> Processing Dependency: libpthread.so.0 for package: subversion-1.6.11-10.el6_5.i686 --> Processing Dependency: libneon.so.27 for package: subversion-1.6.11-10.el6_5.i686 --> Processing Dependency: libexpat.so.1 for package: subversion-1.6.11-10.el6_5.i686 --> Processing Dependency: libdb-4.7.so for package: subversion-1.6.11-10.el6_5.i686 --> Processing Dependency: libcrypt.so.1 for package: subversion-1.6.11-10.el6_5.i686 --> Processing Dependency: libc.so.6(GLIBC_2.4) for package: subversion-1.6.11-10.el6_5.i686 --> Processing Dependency: libaprutil-1.so.0 for package: subversion-1.6.11-10.el6_5.i686 --> Processing Dependency: libapr-1.so.0 for package: subversion-1.6.11-10.el6_5.i686 --> Running transaction check ---> Package apr.i686 0:1.3.9-5.el6_2 will be installed --> Processing Dependency: libuuid.so.1(UUID_1.0) for package: apr-1.3.9-5.el6_2.i686 --> Processing Dependency: libuuid.so.1 for package: apr-1.3.9-5.el6_2.i686 ---> Package apr-util.i686 0:1.3.9-3.el6_0.1 will be installed ---> Package cyrus-sasl-lib.i686 0:2.1.23-13.el6_3.1 will be installed ---> Package db4.i686 0:4.7.25-18.el6_4 will be installed ---> Package expat.i686 0:2.0.1-11.el6_2 will be installed ---> Package glibc.i686 0:2.12-1.132.el6 will be installed --> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.12-1.132.el6.i686 --> Processing Dependency: libfreebl3.so for package: glibc-2.12-1.132.el6.i686 ---> Package neon.i686 0:0.29.3-3.el6_4 will be installed --> Processing Dependency: libproxy.so.0 for package: neon-0.29.3-3.el6_4.i686 --> Processing Dependency: libpakchois.so.0 for package: neon-0.29.3-3.el6_4.i686 --> Processing Dependency: libkrb5.so.3 for package: neon-0.29.3-3.el6_4.i686 --> Processing Dependency: libk5crypto.so.3 for package: neon-0.29.3-3.el6_4.i686 --> Processing Dependency: libgssapi_krb5.so.2(gssapi_krb5_2_MIT) for package: neon-0.29.3-3.el6_4.i686 --> Processing Dependency: libgssapi_krb5.so.2 for package: neon-0.29.3-3.el6_4.i686 --> Processing Dependency: libgnutls.so.26(GNUTLS_1_4) for package: neon-0.29.3-3.el6_4.i686 --> Processing Dependency: libgnutls.so.26 for package: neon-0.29.3-3.el6_4.i686 --> Processing Dependency: libcom_err.so.2 for package: neon-0.29.3-3.el6_4.i686 ---> Package perl-URI.noarch 0:1.40-2.el6 will be installed ---> Package sqlite.i686 0:3.6.20-1.el6 will be installed --> Processing Dependency: libreadline.so.6 for package: sqlite-3.6.20-1.el6.i686 ---> Package zlib.i686 0:1.2.3-29.el6 will be installed --> Running transaction check ---> Package gnutls.i686 0:2.8.5-13.el6_5 will be installed --> Processing Dependency: libtasn1.so.3(LIBTASN1_0_3) for package: gnutls-2.8.5-13.el6_5.i686 --> Processing Dependency: libtasn1.so.3 for package: gnutls-2.8.5-13.el6_5.i686 --> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4) for package: gnutls-2.8.5-13.el6_5.i686 --> Processing Dependency: libstdc++.so.6(CXXABI_1.3) for package: gnutls-2.8.5-13.el6_5.i686 --> Processing Dependency: libstdc++.so.6 for package: gnutls-2.8.5-13.el6_5.i686 --> Processing Dependency: libgcrypt.so.11(GCRYPT_1.2) for package: gnutls-2.8.5-13.el6_5.i686 --> Processing Dependency: libgcrypt.so.11 for package: gnutls-2.8.5-13.el6_5.i686 --> Processing Dependency: libgcc_s.so.1(GCC_3.0) for package: gnutls-2.8.5-13.el6_5.i686 --> Processing Dependency: libgcc_s.so.1 for package: gnutls-2.8.5-13.el6_5.i686 ---> Package krb5-libs.i686 0:1.10.3-10.el6_4.6 will be installed --> Processing Dependency: libselinux.so.1 for package: krb5-libs-1.10.3-10.el6_4.6.i686 --> Processing Dependency: libkeyutils.so.1(KEYUTILS_0.3) for package: krb5-libs-1.10.3-10.el6_4.6.i686 --> Processing Dependency: libkeyutils.so.1 for package: krb5-libs-1.10.3-10.el6_4.6.i686 ---> Package libcom_err.i686 0:1.41.12-18.el6 will be installed ---> Package libproxy.i686 0:0.3.0-4.el6_3 will be installed --> Processing Dependency: libproxy-python = 0.3.0-4.el6_3 for package: libproxy-0.3.0-4.el6_3.i686 --> Processing Dependency: libproxy-bin = 0.3.0-4.el6_3 for package: libproxy-0.3.0-4.el6_3.i686 --> Processing Dependency: libdbus-1.so.3 for package: libproxy-0.3.0-4.el6_3.i686 ---> Package libuuid.i686 0:2.17.2-12.14.el6 will be installed ---> Package nss-softokn-freebl.i686 0:3.14.3-9.el6 will be installed ---> Package pakchois.i686 0:0.4-3.2.el6 will be installed ---> Package readline.i686 0:6.0-4.el6 will be installed --> Processing Dependency: libtinfo.so.5 for package: readline-6.0-4.el6.i686 --> Running transaction check ---> Package dbus-libs.i686 1:1.2.24-7.el6_3 will be installed ---> Package keyutils-libs.i686 0:1.4-4.el6 will be installed ---> Package libgcc.i686 0:4.4.7-4.el6 will be installed ---> Package libgcrypt.i686 0:1.4.5-11.el6_4 will be installed --> Processing Dependency: libgpg-error.so.0 for package: libgcrypt-1.4.5-11.el6_4.i686 ---> Package libproxy-bin.x86_64 0:0.3.0-4.el6_3 will be installed --> Processing Dependency: libproxy.so.0()(64bit) for package: libproxy-bin-0.3.0-4.el6_3.x86_64 ---> Package libproxy-python.x86_64 0:0.3.0-4.el6_3 will be installed ---> Package libselinux.i686 0:2.0.94-5.3.el6_4.1 will be installed ---> Package libstdc++.i686 0:4.4.7-4.el6 will be installed ---> Package libtasn1.i686 0:2.3-3.el6_2.1 will be installed ---> Package ncurses-libs.i686 0:5.7-3.20090208.el6 will be installed --> Running transaction check ---> Package libgpg-error.i686 0:1.7-4.el6 will be installed ---> Package libproxy.x86_64 0:0.3.0-4.el6_3 will be installed --> Finished Dependency Resolution Error: Multilib version problems found. This often means that the root cause is something else and multilib version checking is just pointing out that there is a problem. Eg.: 1. You have an upgrade for subversion which is missing some dependency that another package requires. Yum is trying to solve this by installing an older version of subversion of the different architecture. If you exclude the bad architecture yum will tell you what the root cause is (which package requires what). You can try redoing the upgrade with --exclude subversion.otherarch ... this should give you an error message showing the root cause of the problem. 2. You have multiple architectures of subversion installed, but yum can only see an upgrade for one of those arcitectures. If you don't want/need both architectures anymore then you can remove the one with the missing update and everything will work. 3. You have duplicate versions of subversion installed already. You can use "yum check" to get yum show these errors. ...you can also use --setopt=protected_multilib=false to remove this checking, however this is almost never the correct thing to do as something else is very likely to go wrong (often causing much more problems). Protected multilib versions: subversion-1.6.11-10.el6_5.i686 != subversion-1.8.8-1.x86_64 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
そこで、いったんCentOS 6標準gitをインストールしておいて、それからWANdiscoのgitにアップデートする手順を取ります。
# yum install git
このあと再びWANdiscoのgitをインストールしてみましたが、エラーは解消されません。subversion関係でのエラーが発生します。
ここで、WANdiscoのgitの前にWANdiscoのsubversionをインストールしていたのが原因のようです。
そこで、WANdiscoのsubversion関係パッケージを幾つか追加インストールしました(Perl関係が怪しいので)。
(/var/log/yum.logから抜粋)
Mar 25 21:37:18 Installed: subversion-devel-1.8.8-1.x86_64 Mar 25 21:37:30 Installed: subversion-perl-1.8.8-1.x86_64 Mar 25 21:37:45 Installed: subversion-javahl-1.8.8-1.x86_64
そして、再々度、WANdiscoのgitをインストールしたらOKとなりました。
約9年前に更新