我对此很陌生,试图在我的CentOS上运行的VPS上安装git。在CentOS上安装Git失败?
我试过yum install git-core
和yum install git
,两者都产生了No package git-core available. Nothing to do
。我想git
不在CentOs回购。
我在这里尝试了另一种方法:http://www.lunix.com.au/blog/install-gitosis-on-centos5/。
运行rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
给我的留言:
error: skipping http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm - transfer failed - Unknown or unexpected error warning: u 0x9079f18 ctrl 0x907ad30 nrefs != 0 (download.fedora.redhat.com http)
有另一种方式来安装git
?
UPDATE
我得到以下错误在正确的回购后添加:
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package git.i386 0:1.7.4.1-1.el5 set to be updated
--> Processing Dependency: perl-Git = 1.7.4.1-1.el5 for package: git
--> Processing Dependency: perl(Error) for package: git
--> Processing Dependency: perl(Git) for package: git
--> Finished Dependency Resolution
git-1.7.4.1-1.el5.i386 from epel has depsolving problems
--> Missing Dependency: perl(Git) is needed by package git-1.7.4.1-1.el5.i386 (epel)
git-1.7.4.1-1.el5.i386 from epel has depsolving problems
--> Missing Dependency: perl-Git = 1.7.4.1-1.el5 is needed by package git-1.7.4.1-1.el5.i386 (epel)
git-1.7.4.1-1.el5.i386 from epel has depsolving problems
--> Missing Dependency: perl(Error) is needed by package git-1.7.4.1-1.el5.i386 (epel)
Error: Missing Dependency: perl-Git = 1.7.4.1-1.el5 is needed by package git-1.7.4.1-1.el5.i386 (epel)
Error: Missing Dependency: perl(Git) is needed by package git-1.7.4.1-1.el5.i386 (epel)
Error: Missing Dependency: perl(Error) is needed by package git-1.7.4.1-1.el5.i386 (epel)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
我想,这可能是由于的cPanel,所以我做了yum --disableexcludes=main install git
。然后它解决了依赖关系,我让它下载git包,但然后失败:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 217521f6
GPG key retrieval failed: [Errno 5] OSError: [Errno 2] No such file or directory:
/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
你可以从源代码构建它。但是我非常怀疑CentOS没有可用的git包。 – ThiefMaster
@ThiefMaster我做了'yum install git',它说theres没有发现git包... – Nyxynyx
这意味着你没有配置正确的存储库,或者你没有正确配置存储库 – Tilo