Thread (2 messages) 2 messages, 2 authors, 2023-12-21

Re: Unable to install git-2.43.0 from source on macOS Big Sur 11.7.10

From: Jonathan Abrams <hidden>
Date: 2023-12-21 19:40:25

After deactivating the conda environment, I get a different error.  The commands I entered are:

conda deactivate
make configure
./configure --prefix=/usr
make V=1 all doc

This ends with the following error.
/usr/bin/perl ./build-docdep.perl >doc.dep
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C ../  GIT-VERSION-FILE
make[2]: `GIT-VERSION-FILE' is up to date.
fatal: not a git repository (or any of the parent directories): .git
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C ../  GIT-VERSION-FILE
make[2]: `GIT-VERSION-FILE' is up to date.
    * new asciidoc flags
asciidoc  -f asciidoc.conf -amanmanual='Git Manual' -amansource='Git 2.43.0' -arevdate='' -b xhtml11 -d manpage -o git-add.html git-add.txt
make[1]: asciidoc: No such file or directory
make[1]: *** [git-add.html] Error 1
make: *** [doc] Error 2

Your suggestion to run the following commands results in a different error.  The suggested commands were:
cd git-2.43.0
conda deactivate
make distclean
make all

This ends with the following error.
GIT_VERSION = 2.43.0
    * new build flags
    CC oss-fuzz/fuzz-commit-graph.o
    CC oss-fuzz/fuzz-pack-headers.o
    CC oss-fuzz/fuzz-pack-idx.o
    CC daemon.o
    * new link flags
    CC common-main.o
In file included from common-main.c:3:
./gettext.h:17:11: fatal error: 'libintl.h' file not found
#       include <libintl.h>
                ^~~~~~~~~~~
1 error generated.
make: *** [common-main.o] Error 1

Looking around line 17 in ./gettext.h, I see this.
#ifndef NO_GETTEXT
#	include <libintl.h>

Executing gettext --version returned nothing.  I then downloaded gettext and installed it using the following commands.
./configure
make
make check
sudo make install

I then executed your suggested commands again.
conda deactivate
make distclean
make all
sudo make install

This installed GIT.  Thank you for your guidance!

Jonathan S. Abrams
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help