git install in Ubuntu
1.
ubuntu% cd /tmp
ubuntu% wget http://www.kernel.org/pub/software/scm/git/git-1.6.0.tar.gz
ubuntu% tar zxvf git-1.6.0.tar.gz
ubuntu% cd git-1.6.0
ubuntu% ./configure
ubuntu% make
→
cache.h:9:18: error: zlib.h: No such file or directory
fast-import.c:278: error: ‘Z_DEFAULT_COMPRESSION’ undeclared here (not in a function)
fast-import.c: In function ‘store_object’:
fast-import.c:1037: error: ‘z_stream’ undeclared (first use in this function)
fast-import.c:1037: error: (Each undeclared identifier is reported only once
fast-import.c:1037: error: for each function it appears in.)
fast-import.c:1037: error: expected ‘;’ before ‘s’
fast-import.c:1073: error: ‘s’ undeclared (first use in this function)
fast-import.c:1084: error: ‘Z_FINISH’ undeclared (first use in this function)
fast-import.c:1084: error: ‘Z_OK’ undeclared (first use in this function)
fast-import.c: In function ‘validate_raw_date’:
fast-import.c:1749: warning: ignoring return value of ‘strtoul’, declared with attribute warn_unused_result
fast-import.c:1758: warning: ignoring return value of ‘strtoul’, declared with attribute warn_unused_result
fast-import.c: In function ‘parse_progress’:
fast-import.c:2329: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
fast-import.c: In function ‘git_pack_config’:
fast-import.c:2382: error: ‘Z_BEST_COMPRESSION’ undeclared (first use in this function)
make: *** [fast-import.o] Error 1
2.sudo yum install
3. sudo apt-get build-dep git-core git
4.sudo make;make install
标签: Android

1 条评论:
this is important than any other thing.
http://source.android.com/download
发表评论
订阅 博文评论 [Atom]
<< 主页