RE: "fatal: Not a git repository" issued during 'make' from source code
- From
rsbecker@nexbridge.com <rsbecker@nexbridge.com>
- Date
- Aug 11, 2023, 20:46 UTC
- Message-ID
- <034d01d9cc94$df9db0e0$9ed912a0$@nexbridge.com>
- In-Reply-To
- <xmqqr0o9qpon.fsf@gitster.g>
On Friday, August 11, 2023 4:39 PM, Junio C Hamano wrote:
>Subject: Re: "fatal: Not a git repository" issued during 'make' from source
code
Show 11 quoted lines
> ><rsbecker@nexbridge.com> writes: > >> On Friday, August 11, 2023 3:57 PM, Mun Johl wrote: >>>I am new to git and am trying to compile git-2.41.0 on RHEL7. When I run >> 'make >>>prefix=/usr/local all doc', I get the following error: >>> >>>fatal: Not a git repository (or any parent up to mount point /tools) >>> >>>Which I infer means that I need to do the build within a git repo. Is
that
Show 6 quoted lines
>> correct? Or >>>have I missed some basic step in the build process? >> >> Yes, you must be in the cloned git repository in order to run the build. > >Shouldn't we be able to build out of a tarball?
I don't get the impression he started with a tarball, so subsequently sent the doc ref for that. Using just "make" is not sufficient from a tarball.