【求助】GCC安装 出错

【求助】GCC安装 出错

提示如下
        ../../gcc-4.0.1/gcc/java/jcf-io.c -o java/jcf-io.o
../../gcc-4.0.1/gcc/java/jcf-io.c:43:18: zlib.h: No such file or directory
../../gcc-4.0.1/gcc/java/jcf-io.c: In function `read_zip_member':
../../gcc-4.0.1/gcc/java/jcf-io.c:193: error: `Z_NO_COMPRESSION' undeclared (first use in this function)
../../gcc-4.0.1/gcc/java/jcf-io.c:193: error: (Each undeclared identifier is reported only once
../../gcc-4.0.1/gcc/java/jcf-io.c:193: error: for each function it appears in.)
../../gcc-4.0.1/gcc/java/jcf-io.c:206: error: `z_stream' undeclared (first use in this function)
../../gcc-4.0.1/gcc/java/jcf-io.c:206: error: parse error before "d_stream"
../../gcc-4.0.1/gcc/java/jcf-io.c:207: error: `d_stream' undeclared (first use in this function)
../../gcc-4.0.1/gcc/java/jcf-io.c:207: error: `alloc_func' undeclared (first use in this function)
../../gcc-4.0.1/gcc/java/jcf-io.c:207: error: parse error before numeric constant
../../gcc-4.0.1/gcc/java/jcf-io.c:208: error: `free_func' undeclared (first use in this function)
../../gcc-4.0.1/gcc/java/jcf-io.c:208: error: parse error before numeric constant
../../gcc-4.0.1/gcc/java/jcf-io.c:209: error: `voidpf' undeclared (first use in this function)
../../gcc-4.0.1/gcc/java/jcf-io.c:209: error: parse error before numeric constant
../../gcc-4.0.1/gcc/java/jcf-io.c:225: warning: implicit declaration of function `inflateInit2'
../../gcc-4.0.1/gcc/java/jcf-io.c:225: error: `MAX_WBITS' undeclared (first use in this function)
../../gcc-4.0.1/gcc/java/jcf-io.c:226: warning: implicit declaration of function `inflate'
../../gcc-4.0.1/gcc/java/jcf-io.c:226: error: `Z_NO_FLUSH' undeclared (first use in this function)
../../gcc-4.0.1/gcc/java/jcf-io.c:227: warning: implicit declaration of function `inflateEnd'
make[1]: *** [java/jcf-io.o] 错误 1
make[1]: Leaving directory `/home/feng/tools/gcc-build/gcc'
make: *** [all-gcc] 错误 2
[root@fengyun gcc-build]# ls
怎么回事啊?      
rpm -qa | grep gcc
是什么结果?

我没有装过gcc-4.0.1,你解压了tarball后里面的说明文档有没有提及对JAVA环境的要求?有什么需要note的内容吗?