Thomas
Thomas

Reputation: 1

Error compiling for Git installion on Linux

I am trying to install Git on a Raspberry Pi 3.
I am following this: https://linuxize.com/post/how-to-install-git-on-raspberry-pi/#installing-git-from-the-source
When I run:

sudo make prefix=/usr/local all

then it throws this:

LINK t/helper/test-tool
reftable/libreftable.a(block.o): In function `block_reader_init':
/usr/src/git-2.35.1/reftable/block.c:213: undefined reference to `uncompress2'
collect2: error: ld returned 1 exit status
Makefile:2949: recipe for target 't/helper/test-tool' failed
make: * [t/helper/test-tool] Error 1

Does anyone know how to fix this or can point me to something that can help me?

Upvotes: 0

Views: 1220

Answers (1)

rezshar
rezshar

Reputation: 630

if you want to install Git on your Raspberry it recommended that install with apt install git . it's the easiest way but if you need to compile it from sourc try this:

 undefined reference to `uncompress2'

this error means that the uncompress2 package is not installed. try to install these package on your Raspberry and try again.

apt install zlib1g-dev 

or

apt install zlib-devel

Upvotes: 1

Related Questions