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.. :) |
What distro of linux are you using?
You can install git with most package managers ie. apt-get install git yum install git |
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. |
Quote:
John G |
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.
|
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. |