最近裝jenkins遇到的問題,記錄一下。
jenkins的插件對git的版本有要求,所以要升級git。我是懶人,不想編譯,就像這個yum直接升級吧
1、yum的方式升級git
http://codelife.me/blog/2013/06/25/upgrade-git-on-centos-6-4/
在升級git的過程中又遇到了另一個問題,就是報這樣的錯誤。
2、
Error: Package: git-1.7.12.4-1.el6.rfx.x86_64 (rpmforge-extras)
Requires: libz.so.1(ZLIB_1.2.0)(64bit)
You could try using –skip-broken to work around the problem
You could try running: rpm -Va –nofiles –nodigest
在費了好大勁之後在這裡找到原因了,其實是個bug。
參考這裡:http://forums.perforce.com/index.php?/topic/3095-getting-error-while-pushhing-things-sing-git-client-to-git-fusion-repository/
解決方法就是手動升級。
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/zlib-1.2.3-29.el6.x86_64.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/zlib-devel-1.2.3-29.el6.x86_64.rpm
yum install zlib-devel-1.2.3-29.el6.x86_64.rpm zlib-1.2.3-29.el6.x86_64.rpm
OK,搞定了!