0

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?

1 Answer 1

3

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.
2
  • 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. Commented Nov 27, 2012 at 3:34
  • @ChrisJohnsen Great suggestion. Updated my answer. Commented Nov 27, 2012 at 8:39

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.