Git RPM dependancies seem broken
Forum
  1. Forums
  2. General
  3. General Discussion
  1. Wesley Render
  2. Tuesday, 11 September 2012
  3.  Subscribe via email
I noticed the rpm version of Git is included.  Thanks! but I get the following error when trying to install.


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
Rate this post:
  1. 12.09.2012 03:09:15
  2. # 1
Richard Hordern Accepted Answer
Posts: 212
Joined: 19.03.2011
0
Votes
Undo
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\'t 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 :
http://kernel.org/pub/software/scm/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
  1. 12.09.2012 09:09:37
  2. # 2
Wesley Render Accepted Answer
Posts: 49
Joined: 16.05.2011
0
Votes
Undo
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 can't 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/installing-git-294411.html
  1. 12.09.2012 09:09:52
  2. # 3
Wesley Render Accepted Answer
Posts: 49
Joined: 16.05.2011
0
Votes
Undo
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.
  1. 12.09.2012 10:09:28
  2. # 4
Wesley Render Accepted Answer
Posts: 49
Joined: 16.05.2011
0
Votes
Undo
For cagefs support for Git.  I created a file called /etc/cagefs/conf.d/git.cfg and added the following:
[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. 
 -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.
  1. 13.09.2012 04:09:50
  2. # 5
Richard Hordern Accepted Answer
Posts: 212
Joined: 19.03.2011
0
Votes
Undo
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 ! :)
  1. 13.09.2012 04:09:21
  2. # 6
chcp a Accepted Answer
Posts: 20
Joined: 29.10.2010
0
Votes
Undo
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
  1. 13.09.2012 05:09:17
  2. # 7
Richard Hordern Accepted Answer
Posts: 212
Joined: 19.03.2011
0
Votes
Undo
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…
  1. 13.09.2012 08:09:42
  2. # 8
Wesley Render Accepted Answer
Posts: 49
Joined: 16.05.2011
0
Votes
Undo
Git is working outside of cagefs, but not in cagefs.

Yes. Curl does seem to work inside cagefs.  I just tested downloading a file.  I'll try contacting support.
  1. 14.09.2012 10:09:55
  2. # 9
Wesley Render Accepted Answer
Posts: 49
Joined: 16.05.2011
0
Votes
Undo
Cloud Linux support was able to resolve it by helping define the cfg file. Here is the cagefs cfg file which is working:
[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/
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.