在裝有 cpanel 的 CentOS 64bit 的機器上裝 git / How to install Git on Cpanel based 64bit Centos servers

昨天把 Linode 1024 的機器裝好 cPanel 後
開始要裝 git
把目前的專案拉到 vps 上
結果發生悲劇

[root@cpanel.lupopi.com ~]# yum install git
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: ftp.jaist.ac.jp
 * extras: ftp.jaist.ac.jp
 * updates: ftp.jaist.ac.jp
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package git.x86_64 0:1.7.1-2.el6_0.1 will be installed
–> Processing Dependency: perl-Git = 1.7.1-2.el6_0.1 for package: git-1.7.1-2.el6_0.1.x86_64
–> Processing Dependency: perl(Git) for package: git-1.7.1-2.el6_0.1.x86_64
–> Processing Dependency: perl(Error) for package: git-1.7.1-2.el6_0.1.x86_64
–> Finished Dependency Resolution
Error: Package: git-1.7.1-2.el6_0.1.x86_64 (base)
           Requires: perl(Git)
Error: Package: git-1.7.1-2.el6_0.1.x86_64 (base)
           Requires: perl-Git = 1.7.1-2.el6_0.1
Error: Package: git-1.7.1-2.el6_0.1.x86_64 (base)
           Requires: perl(Error)
 You could try using –skip-broken to work around the problem
** Found 5 pre-existing rpmdb problem(s), ‘yum check’ output follows:
bandmin-1.6.1-5.noarch has missing requires of perl(bandmin.conf)
bandmin-1.6.1-5.noarch has missing requires of perl(bmversion.pl)
bandmin-1.6.1-5.noarch has missing requires of perl(services.conf)
exim-4.77-1.x86_64 has missing requires of perl(SafeFile)
frontpage-2002-SR1.2.i386 has missing requires of libexpat.so.0

這是什麼鬼錯誤啊
找了一下 google, 各式各樣的解法都有
只有下面這個有解

yum –disableexcludes=main install git
這行打下去 就裝好了

————————————————————————————————————————-
工商時間

如果有想買 linode 的朋友可以點這個連結喔
http://www.linode.com/?r=a78b4b469b25b62d125034805f6a17728b1852aa

或是在 referral code 的地方填上
a78b4b469b25b62d125034805f6a17728b1852aa

這樣可以贊助我20USD

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *