Originally Posted by dbbd
|
Trying to install git from source:
/tmp/git-1.6.4.4 # make
CC fast-import.o
In file included from builtin.h:6,
from fast-import.c:143:
cache.h:16:18: error: zlib.h: No such file or directory
In file included from builtin.h:6,
from fast-import.c:143:
cache.h:21: error: expected ‘)’ before ‘strm’
cache.h:22: error: expected ‘)’ before ‘strm’
cache.h:23: 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:2387: error: ‘Z_BEST_COMPRESSION’ undeclared (first use in this function)
make: *** [fast-import.o] Error 1
Trying to install git-core rpm:
rpm -ivh git-core-1.5.4.2-1.x86_64.rpm
error: Failed dependencies:
libcrypto.so.6()(64bit) is needed by git-core-1.5.4.2-1.x86_64
libcurl.so.3()(64bit) is needed by git-core-1.5.4.2-1.x86_64
libexpat.so.0()(64bit) is needed by git-core-1.5.4.2-1.x86_64
openssh-clients is needed by git-core-1.5.4.2-1.x86_64
perl(Git) is needed by git-core-1.5.4.2-1.x86_64
Thanks,
|
Faced similar problem while installing git 1.5.6 ;problem got resolved after installing zlib-devel rpm named zlib-devel1.2.3-135.52.x86_64.rpm can be fetched from the location
wgetftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/Base:/build/standard/x86_64/zlib-devel-1.2.3-135.52.x86_64.rpm
Thanks,
Dhiraj S