Package: git-1.7.6.1-1.el5.rf.i386 (rpmforge) Requires: libcurl.so.3

16,372

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.

Share:
16,372

Related videos on Youtube

Ludwig Schulze
Author by

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, 2022

Comments

  • Ludwig Schulze
    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
    Admin over 12 years
    I already installed crul, but it still shows the error
  • VonC
    VonC over 12 years
    Agree, except I don't find very recent curl-devel rpm for CentOS6. +1
  • bahamat
    bahamat over 12 years
    This looks like it was intended to be a comment to Keith Thompson's answer.
  • Avisek Chakraborty
    Avisek Chakraborty almost 11 years
    i have enabled it, also didarestart, but still its pointing to el5. Plz help
  • Avisek Chakraborty
    Avisek Chakraborty almost 11 years
    ok. Norrad's answer worked
  • Avisek Chakraborty
    Avisek Chakraborty almost 11 years
    worked for me too. Thanx
  • Donny Kurnia
    Donny Kurnia over 9 years
    Works for me in my client server