Announcement

Collapse
No announcement yet.

Git RPM dependancies seem broken

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Git RPM dependancies seem broken

    I noticed the rpm version of Git is included. Thanks! but I get the following error when trying to install.

    Code:
    yum install git
    
    Loaded plugins: dellsysid, fastestmirror, rhnplugin, security
    
    Loading mirror speeds from cached hostfile
    
    * cloudlinux-x86_64-server-6: xmlrpc.cln.cloudlinux.com
    
    Setting up Install Process
    
    Resolving Dependencies
    
    --> Running transaction check
    
    ---> Package git.x86_64 0:1.7.1-2.el6.1 will be installed
    
    --> Processing Dependency: perl-Git = 1.7.1-2.el6.1 for package: git-1.7.1-2.el6.1.x86_64
    
    --> Processing Dependency: perl(Error) for package: git-1.7.1-2.el6.1.x86_64
    
    --> Processing Dependency: perl(Git) for package: git-1.7.1-2.el6.1.x86_64
    
    --> Finished Dependency Resolution
    
    Error: Package: git-1.7.1-2.el6.1.x86_64 (cloudlinux-x86_64-server-6)
    
    Requires: perl-Git = 1.7.1-2.el6.1
    
    Error: Package: git-1.7.1-2.el6.1.x86_64 (cloudlinux-x86_64-server-6)
    
    Requires: perl(Error)
    
    Error: Package: git-1.7.1-2.el6.1.x86_64 (cloudlinux-x86_64-server-6)
    
    Requires: perl(Git)
    
    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

  • #2
    Do you have perl* in your /etc/yum.conf exclude list ?

    If you run cPanel on your server then it is supposed to be there and it is normal that you can install perl/perl-Git

    I suggest that you install git from source as (presuming again that you do have cPanel) it should work fine :

    Dependencies :

    yum install gettext-devel expat-devel curl-devel zlib-devel openssl-devel

    Get URL for latest version of Git :


    cd /usr/local/src

    wget PUT_GIT_URL_HERE

    tar xvzf git-*.tar.gz
    cd git*
    make prefix=/usr/local all
    make prefix=/usr/local install

    Comment


    • #3
      I really appreciate the help. Would you also know what cloud linux cagefs configuration would be needed to properly make Git available to the end users?

      I may be missing these dependencies so I will try re-installing the latest version from source this way. One thing I also notice for the source version is there is no "make uninstall" available, so installing the source is a bit scary since you cant easily uninstall it.

      On another note, I also posted in the cPanel forums, but someone recommends not installing Git on cPanel servers. This seems very odd to me though as so many web applications are starting to use it. http://forums.cpanel.net/f391/instal...it-294411.html

      Comment


      • #4
        I was able to re-install git from here. http://code.google.com/p/git-core/downloads/list The versions you posted at Kernel.org seemed outdated and last modified in 2005.

        Comment


        • #5
          For cagefs support for Git. I created a file called /etc/cagefs/conf.d/git.cfg and added the following:

          Code:
          [git]
          
          comment=Git tools
          
          paths=/usr/local/bin/git, /usr/local/share/git-core
          I then ran the "/usr/sbin/cagefsctl --update" command.

          Git appears to be working properly when I run it under the root account, but when I run it in the cagefs environment it gives me the following error. I am running the "git clone" command.

          Code:
           -bash-4.1$ git clone http://git.drupal.org/sandbox/semperit/1289724.git civicrm_cdntaxreceipts
          
          Cloning into civicrm_cdntaxreceipts...
          
          fatal: Unable to find remote helper for http
          Something makes me think I am missing some libcurl or libcurl-devel directories in the cagefs filesystem. If you google this error, people normally resolve it by installing the libcurl-devel rpm. I believe Git uses the curl program to pull in information via http.

          Comment


          • #6
            Sorry about the link… I copy/pasted the link from an old install procedure I had on my computer…

            If you contact Cloudlinux support for this I would also be interested to know what was missing as I will be installing cagefs soon too !

            Comment


            • #7
              Hi there,

              yum install yum-utils
              yumdownloader git
              rpm -i git-downloaded.package --force --nodeps

              Use it at your own risk

              However I think the best option is compilation in cpanel servers

              Cpanel says in next versions will use rpms so this awfully old problem will be solved in maybe 2 years

              Comment


              • #8
                I think Wesley has got it installed and functionning outside cagefs and is looking for help to get it working inside cagefs.

                This is just a guess is /usr/bin/curl accessible from within cagefs ?

                From inside a cage see if curl -V returns anything…

                Comment


                • #9
                  Git is working outside of cagefs, but not in cagefs.

                  Yes. Curl does seem to work inside cagefs. I just tested downloading a file. Ill try contacting support.

                  Comment


                  • #10
                    Cloud Linux support was able to resolve it by helping define the cfg file. Here is the cagefs cfg file which is working:

                    Code:
                    [git]
                    
                    comment=Git tools
                    
                    paths=/usr/local/bin/git, /usr/local/share/git-core, /usr/local/bin/git-receive-pack, /usr/local/bin/git-upload-pack, /usr/local/bin/git,/usr/local/bin/git-cvsserver,/usr/local/bin/git-upload-archive,/usr/local/bin/gitk,/usr/local/bin/git-shell, /usr/local/libexec/git-core/

                    Comment

                    Working...
                    X