LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   installation errors with git during 'make' and 'make install' (https://www.linuxquestions.org/questions/linux-newbie-8/installation-errors-with-git-during-make-and-make-install-771842/)

etheria 11-27-2009 12:41 AM

installation errors with git during 'make' and 'make install'
 
Hi. I just downloaded git (git-1.6.5.3.tar.bz2) from git's website (git-scm.com) and encountered problems during the installation specifically after executing 'make' in the terminal. I had no problems with './configure'. Output after typing 'make':

CC fast-import.o
In file included from builtin.h:6,
from fast-import.c:143:
cache.h:17:18: error: zlib.h: No such file or directory
In file included from builtin.h:6,
from fast-import.c:143:
cache.h:22: error: expected ‘)’ before ‘strm’
cache.h:23: error: expected ‘)’ before ‘strm’
cache.h:24: error: expected ‘)’ before ‘strm’
fast-import.c:280: error: ‘Z_DEFAULT_COMPRESSION’ undeclared here (not in a function)
fast-import.c: In function ‘store_object’:
fast-import.c:1036: error: ‘z_stream’ undeclared (first use in this function)
fast-import.c:1036: error: (Each undeclared identifier is reported only once
fast-import.c:1036: error: for each function it appears in.)
fast-import.c:1036: error: expected ‘;’ before ‘s’
fast-import.c:1072: error: ‘s’ undeclared (first use in this function)
fast-import.c:1083: error: ‘Z_FINISH’ undeclared (first use in this function)
fast-import.c:1083: error: ‘Z_OK’ undeclared (first use in this function)
fast-import.c: In function ‘git_pack_config’:
fast-import.c:2390: error: ‘Z_BEST_COMPRESSION’ undeclared (first use in this function)
make: *** [fast-import.o] Error 1

I'm new to all this and am not sure what the error is... Please help.. THank you in advance.. :)

davidcroda 11-27-2009 01:54 AM

What distro of linux are you using?

You can install git with most package managers ie.

apt-get install git

yum install git

AwesomeMachine 11-27-2009 01:56 AM

Hi etheria, and welcome to LQ.

I would try looking in config.log. The configure might have completed, but it probably didn't complete correctly. Your distro should have a git package. You could use a package manager to install it. I don't know which package manager you have, because I don't know what Linux distro you are using.

JohnGraham 11-27-2009 03:30 AM

Quote:

Originally Posted by etheria (Post 3771036)
cache.h:17:18: error: zlib.h: No such file or directory

Alternatively, if you're set on building the package from source, it looks like you need the libz development package. You can either build it or get it from your package manager ('apt-get install libz-dev' on Debian-like systems or (as a first guess...) 'yum install libz-devel' on RedHat-like systems).

John G

etheria 11-27-2009 10:39 AM

Thank you for your replies. I am using ubuntu desktop. Is the git included with ubuntu different from the one you download from git's website.

etheria 11-27-2009 11:38 AM

By the way, i was already able to install the git tarball.. All I needed to do was to download zlib.. Thanks for that! :)


All times are GMT -5. The time now is 11:20 AM.