All of lore.kernel.org
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Alexander Kuleshov <kuleshovmail@gmail.com>
Cc: "git\@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: Question about installing git from source
Date: Tue, 23 Dec 2014 09:03:38 -0800	[thread overview]
Message-ID: <xmqqioh247th.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <CANCZXo42SdM8hMdTFYgvD8D+RmXua1oJvB+FfTjjfR=yWqhmkg@mail.gmail.com> (Alexander Kuleshov's message of "Tue, 23 Dec 2014 14:55:06 +0600")

Alexander Kuleshov <kuleshovmail@gmail.com> writes:

> 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.

  reply	other threads:[~2014-12-23 17:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-23  8:55 Question about installing git from source Alexander Kuleshov
2014-12-23 17:03 ` Junio C Hamano [this message]
2014-12-23 17:13   ` Alexander Kuleshov
2014-12-23 17:43     ` Junio C Hamano
2014-12-23 17:53       ` Alexander Kuleshov
2014-12-24  7:52         ` Alexander Kuleshov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xmqqioh247th.fsf@gitster.dls.corp.google.com \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=kuleshovmail@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.