Package: git-1.7.6.1-1.el5.rf.i386 (rpmforge) Requires: libcurl.so.3
Solution 1
The problem is that you are trying to install the el5 version of git
(git-1.7.6.1-1.el5.rf.i386). I had the same issue as described here.
I fixed it by enabling the rpmforge extras and it picked up el6 of git (then could just yum install)
I'm sure this is an issue with the centos default repos, I mean it should install el6 by default?
Solution 2
I had the same problem under CentOS 6.3. Running yum provides git
gave me two choices:
git-1.7.1-2.el6_0.1.x86_64 : Fast Version Control System
git-1.7.4.1-1.el5.x86_64 : Fast Version Control System
So, I did a yum install git-1.7.1-2.el6_0.1.x86_64
and it installed the .el6 version of git
, along with perl-Error
and perl-Git
, and issues no errors and NO missing libcurl.so.3
files!
Solution 3
I don't think installing the curl
package installs libcurl.so.3
. The curl
package provides the curl
program and associated files, not the library.
For Centos, the package you need is probably called something like curl-devel
.
I'm a surprised yum
didn't offer to install the dependencies for you. On CentOS 5.6, the yum
man page says that yum install
"Is used to install the latest version of a package or group of packages while ensuring that all dependencies are satisfied". I suppose it's possible that the dependencies aren't configured correctly, but that seems unlikely for something as popular as git
.
Try yum install curl-devel
followed by yum install git
.
Solution 4
First off, under root, at /etc/yum.conf
edit the file, and comment out the exclude line with a leading ;
i.e. ;exclude
(I use WinSCP at http://winscp.net to log in as it has a built-in modified notepad editor, along with PuTTY for SSH access.)
After reading the above about installing curl-devel
, it didn't work for me. But yum reinstall curl-devel
worked. I then followed that up with yum install git
, and it proceeded to install git and 2 additional needed files.
Solution 5
I tried
$ yum install git-all.noarch
which doesn't depend on architectures.
Related videos on Youtube
Ludwig Schulze
Nothing to say about me... but if you insist, just take a look at my actions, they speak better than I could ever do. Even when I'm not part of the solution, I will not be part of the problem. Better to have nothing, no matter when, than to accept rubbish. — Random Wuxia <!> when you wish for peace and quiet, trouble tends to find ways to catch up to you. [1]: http://stackexchange.com/users/flair/416592.png "profile for Braiam on Stack Exchange, a network of free, community-driven Q&A sites" width="208" height="58" [2]: http://stackexchange.com/users/416592
Updated on September 18, 2022Comments
-
Ludwig Schulze over 1 year
After I run
yum install git
it shows the error
Error: Package: git-1.7.6.1-1.el5.rf.i386 (rpmforge) Requires: libcurl.so.3 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
Do I need to install libcurl.so.3 or download git from the web and install?
-
Admin over 12 yearsI already installed crul, but it still shows the error
-
VonC over 12 yearsAgree, except I don't find very recent curl-devel rpm for CentOS6. +1
-
bahamat over 12 yearsThis looks like it was intended to be a comment to Keith Thompson's answer.
-
Avisek Chakraborty almost 11 yearsi have enabled it, also didarestart, but still its pointing to el5. Plz help
-
Avisek Chakraborty almost 11 yearsok. Norrad's answer worked
-
Avisek Chakraborty almost 11 yearsworked for me too. Thanx
-
Donny Kurnia over 9 yearsWorks for me in my client server