LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-27-2009, 12:41 AM   #1
etheria
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Rep: Reputation: 0
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..
 
Old 11-27-2009, 01:54 AM   #2
davidcroda
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Rep: Reputation: 0
What distro of linux are you using?

You can install git with most package managers ie.

apt-get install git

yum install git
 
Old 11-27-2009, 01:56 AM   #3
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian jessie/sid; OpenSuSE; Fedora
Posts: 1,593

Rep: Reputation: 162Reputation: 162
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.
 
Old 11-27-2009, 03:30 AM   #4
JohnGraham
Member
 
Registered: Oct 2009
Posts: 467

Rep: Reputation: 138Reputation: 138
Quote:
Originally Posted by etheria View Post
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
 
Old 11-27-2009, 10:39 AM   #5
etheria
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
Old 11-27-2009, 11:38 AM   #6
etheria
LQ Newbie
 
Registered: Nov 2009
Posts: 3

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
libogg not installing, make and make install don't give errors, but fail lilmike Linux - Newbie 6 11-14-2009 07:33 PM
A series of errors while running make- installation of gnuplot defrak Linux - Software 5 09-22-2009 10:42 AM
LFS 6.3 .... 6.12.1. Installation of GCC make errors Axo Linux From Scratch 4 03-29-2008 02:18 AM
Constant errors during "make" or "make install" with SUSE 10.1 Alpha 4 TehFlyingDutchman Linux - Software 3 12-30-2005 06:25 PM
Chap 5 Binutils make LDFLAGS & make install errors shotokan Linux From Scratch 5 04-10-2005 03:01 AM


All times are GMT -5. The time now is 09:57 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration