git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Question about installing git from source

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 23, 2014, 17:03 UTC
Message-ID
<xmqqioh247th.fsf@gitster.dls.corp.google.com>
In-Reply-To
<CANCZXo42SdM8hMdTFYgvD8D+RmXua1oJvB+FfTjjfR=yWqhmkg@mail.gmail.com>
Alexander Kuleshov <kuleshovmail@gmail.com> writes:
Show 6 quoted lines
> Trying to install git from source, executing:
>
> make configure
> ./configure --prefix=/usr
> make --prefix=/usr all
> sudo make install DISTDIR=/usr

That does not seem to match any of the ways how INSTALL tells us to build and install.

Excerpts from INSTALL
    (1) ... If you want to do a global install, you can do
        $ make prefix=/usr all doc info ;# as yourself
        # make prefix=/usr install install-doc install-html install-info ;# as root
Note how "prefix" is spelled.
   (2) Alternatively you can use autoconf generated ./configure
       script to set up install paths (via config.mak.autogen), so
       you can write instead
        $ make configure ;# as yourself
        $ ./configure --prefix=/usr ;# as yourself
        $ make all doc ;# as yourself
        # make install install-doc install-html;# as root
Note how "make" does not have any "prefix".

Also when you install to a temporary directory so that you can tar up the resulting hierarchy, the variable to use is spelled DESTDIR, e.g.

	make DESTDIR=/var/tmp/git-2.2.1 install install-doc
> ...
> What's problem can be here?

Hopefully the above would be a good start to help you figure that out.

Previous: Alexander KuleshovNext: Alexander Kuleshov
Message 2 of 6 in “Question about installing git from source”
  1. Alexander KuleshovDec 23, 2014
  2. Junio C HamanoDec 23, 2014
  3. Alexander KuleshovDec 23, 2014
  4. Junio C HamanoDec 23, 2014
  5. Alexander KuleshovDec 23, 2014
  6. Alexander KuleshovDec 24, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.