Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I do not have root access on my Ubuntu but want to install git. I was following this tutorial but when running make or make install it says curl is not installed.

Can I use wget instead if this is a make config setting?

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

No, but you could build Git without the Curl dependency on libcurl. It will disable features. Remember that wget is just a binary, whereas Curl provides a shared library as well and that is used by Git. Three options here:

  • ./configure Git with the option --without-curl. Docs say:

    --with-curl        support http(s):// transports (default is YES)
                       ARG can be also prefix for curl library and headers
    
  • You could install your own libcurl, configure it with a non-standard --prefix= path and let Git link to that path instead of a system-wide library path. It's is probably going to cost quite some effort if you're not comfortable compiling manually.

  • It will be a lot easier however if you ask the administrator of that machine to install the git package.
share|improve this answer
1  
Also, Git can be built without libcurl, though it will lack support for http: and https: protocols (maybe local, git:, and SSH-based access will suffice): make NO_CURL=1 or echo NO_CURL=1 >> config.mak ; make. –  Chris Johnsen Nov 27 '12 at 3:34
    
@ChrisJohnsen Great suggestion. Updated my answer. –  gertvdijk Nov 27 '12 at 8:39
    
Thanks for the answer! –  Indianer Nov 27 '12 at 11:05
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.