From: Brian Gernhardt <brian@gernhardtsoftware.com>
To: Thiago Farina <tfransosi@gmail.com>
Cc: Johannes Sixt <j.sixt@viscovery.net>,
Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>,
Alex Riesen <raa.lkml@gmail.com>,
git@vger.kernel.org
Subject: Re: [PATCH] Add more instructions about how to install git.
Date: Tue, 8 Sep 2009 11:19:59 -0400 [thread overview]
Message-ID: <D79F79B1-A4F4-4AEA-9E3B-F0CF59019B88@gernhardtsoftware.com> (raw)
In-Reply-To: <a4c8a6d00909080752p5b663fc8r8bf1c60023ef39b4@mail.gmail.com>
On Sep 8, 2009, at 10:52 AM, Thiago Farina wrote:
> On Tue, Sep 8, 2009 at 10:38 AM, Johannes Sixt<j.sixt@viscovery.net>
> wrote:
>> Then guessed wrong. You really only have to say "make". The use of
>> autoconf and ./configure is purely optional and not necessary.
> I don't think so.
> Running only "make".
> $ make
> GIT_VERSION = 1.6.5.rc0
> * new build flags or prefix
> CC fast-import.o
> In file included from builtin.h:4,
> from fast-import.c:143:
> git-compat-util.h:129:25: error: openssl/ssl.h: No such file or
> directory
> git-compat-util.h:130:25: error: openssl/err.h: No such file or
> directory
You don't have OpenSSL, a perquisite mentioned in the INSTALL file at
line 55. You can do the following:
make NO_OPENSSL=Yes
or save the option so you don't have to retype it each time:
echo "NO_OPENSSL=Yes" > config.mak
make
Or install OpenSSL or run the autoconf.
The Makefile tries it's best to be as smart as possible without being
a configure script of it's own (see ll. 656-925), and it's highly
commented at the beginning so that only a minimal knowledge of make is
required (ll. 4-198). I suppose we could note that the defines
should be put in a config.mak file.
> Running configure and then make
> $ make configure
> GIT_VERSION = 1.6.5.rc0.dirty
> GEN configure
$ ./configure
[lots of output]
> $ make
> CC fast-import.o
As pointed out before, you forgot to run the generated configure
script (as already documented at Makefile:20).
However, it's generally considered preferable to hand-create a
config.mak for the few options you need on a regular basis and let the
Makefile do it's work. The autoconf files occasionally lag behind the
rest of development as they're not widely used by git developers
(AFAICT).
I'd personally argue that we should point out in INSTALL that git can
be configured via a hand-written config.mak using the defines
described at the top of the Makefile before we talk about using
autoconf. (Perhaps with quick notes about the most commonly used
defines.)
For example, my config.mak contains:
prefix=/usr/local
ASCIIDOC8=Yes
MAN_BOLD_LITERAL=Yes
BLK_SHA1=Yes
The rest of the configuration for my OS (OS X/Darwin, specifically)
are handled by the Makefile.
~~ Brian
next prev parent reply other threads:[~2009-09-08 15:20 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-08 5:11 [PATCH] Add more instructions about how to install git Thiago Farina
2009-09-08 5:44 ` Alex Riesen
2009-09-08 6:20 ` Matthieu Moy
2009-09-08 7:56 ` Michael J Gruber
2009-09-08 14:24 ` Thiago Farina
2009-09-08 14:37 ` Erik Faye-Lund
2009-09-08 14:38 ` Johannes Sixt
2009-09-08 14:52 ` Thiago Farina
2009-09-08 14:56 ` Mikael Magnusson
2009-09-08 15:19 ` Brian Gernhardt [this message]
2009-09-08 19:41 ` Matthieu Moy
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=D79F79B1-A4F4-4AEA-9E3B-F0CF59019B88@gernhardtsoftware.com \
--to=brian@gernhardtsoftware.com \
--cc=Matthieu.Moy@grenoble-inp.fr \
--cc=git@vger.kernel.org \
--cc=j.sixt@viscovery.net \
--cc=raa.lkml@gmail.com \
--cc=tfransosi@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.