安装RESIN时出现的错误!

安装RESIN时出现的错误!

[root@song resin-3.0.13]# ./configure --prefix=//etc/resin
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... /bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
Using shared library flags from /usr/sbin/apxs
checking for JAVA_HOME... /usr/lib/jvm/jre-1.4.2-gcj
checking if Java is 64-bit... no
Using Apache CFLAGS: -O2 -g -pipe -m32 -march=i386 -mtune=pentium4
configure: WARNING: Can't find JNI directory /usr/lib/jvm/jre-1.4.2-gcj/include/linux
Using openssl include in ... /usr/include
Using openssl lib in ... /usr/lib
Using openssl libraries in ...  -lcrypt -lssl
configure: creating ./config.status
config.status: creating Makefile
config.status: creating bin/wrapper.pl
config.status: creating modules/c/src/Makefile
config.status: creating modules/c/src/common/Makefile
config.status: creating modules/c/src/apache1/Makefile
config.status: creating modules/c/src/apache2/Makefile
config.status: creating modules/c/src/resin_os/Makefile
config.status: creating contrib/init.resin
config.status: executing depfiles commands
[root@song resin-3.0.13]#

[root@song resin-3.0.13]# make
(cd modules/c/src; make)
make[1]: Entering directory `/usr/local/resin-3.0.13/modules/c/src'
for dir in common resin_os; do (cd $dir; make); done
make[2]: Entering directory `/usr/local/resin-3.0.13/modules/c/src/common'
gcc -c -I/usr/include -g -O2 -DPOLL stream.c
gcc -c -I/usr/include -g -O2 -DPOLL config.c
config.c: In function `read_config':
config.c:409: warning: assignment makes pointer from integer without a cast
config.c: In function `read_all_config':
config.c:678: warning: assignment makes pointer from integer without a cast
config.c: In function `cse_update_host':
config.c:853: warning: assignment makes pointer from integer without a cast
config.c: At top level:
config.c:864: error: conflicting types for 'cse_match_host_impl'
config.c:409: error: previous implicit declaration of 'cse_match_host_impl' was here
make[2]: *** [config.o] &íÎó 1
make[2]: Leaving directory `/usr/local/resin-3.0.13/modules/c/src/common'
make[2]: Entering directory `/usr/local/resin-3.0.13/modules/c/src/resin_os'
gcc -g -O2 -DPOLL -DRESIN_HOME=\"/usr/local/resin-3.0.13\" -I/usr/include  -I../common -DCPU=\"i386\" -DOS=   -c -o jni_os.o jni_os.c
jni_os.c:69:19: jvmdi.h: Ã&ÓÐÄÇ&&Îļ&&òÄ&¼
jni_os.c: In function `Java_com_caucho_loader_ClassEntry_canReloadNative':
jni_os.c:222: error: `JVMDI_Interface_1' undeclared (first use in this function)
jni_os.c:222: error: (Each undeclared identifier is reported only once
jni_os.c:222: error: for each function it appears in.)
jni_os.c:222: error: `jvmdi' undeclared (first use in this function)
jni_os.c:223: error: `JVMDI_capabilities' undeclared (first use in this function)
jni_os.c:223: error: syntax error before "capabilities"
jni_os.c:231: error: `JVMDI_VERSION_1' undeclared (first use in this function)
jni_os.c:236: error: `capabilities' undeclared (first use in this function)
jni_os.c: In function `Java_com_caucho_loader_ClassEntry_reloadNative':
jni_os.c:250: error: `JVMDI_Interface_1' undeclared (first use in this function)
jni_os.c:250: error: `jvmdi' undeclared (first use in this function)
jni_os.c:252: error: `JVMDI_class_definition' undeclared (first use in this function)
jni_os.c:252: error: syntax error before "defs"
jni_os.c:262: error: `JVMDI_VERSION_1' undeclared (first use in this function)
jni_os.c:267: error: `defs' undeclared (first use in this function)
make[2]: *** [jni_os.o] &íÎó 1
make[2]: Leaving directory `/usr/local/resin-3.0.13/modules/c/src/resin_os'
make[1]: *** [plugins] &íÎó 2
make[1]: Leaving directory `/usr/local/resin-3.0.13/modules/c/src'
make: *** [all] &íÎó 2
[root@song resin-3.0.13]#

[root@song resin-3.0.13]# make install
(cd modules/c/src; make install)
make[1]: Entering directory `/usr/local/resin-3.0.13/modules/c/src'
for dir in common resin_os; do (cd $dir; make install); done
make[2]: Entering directory `/usr/local/resin-3.0.13/modules/c/src/common'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/usr/local/resin-3.0.13/modules/c/src/common'
make[2]: Entering directory `/usr/local/resin-3.0.13/modules/c/src/resin_os'
gcc -g -O2 -DPOLL -DRESIN_HOME=\"/usr/local/resin-3.0.13\" -I/usr/include  -I../common -DCPU=\"i386\" -DOS=   -c -o jni_os.o jni_os.c
jni_os.c:69:19: jvmdi.h: Ã&ÓÐÄÇ&&Îļ&&òÄ&¼
jni_os.c: In function `Java_com_caucho_loader_ClassEntry_canReloadNative':
jni_os.c:222: error: `JVMDI_Interface_1' undeclared (first use in this function)
jni_os.c:222: error: (Each undeclared identifier is reported only once
jni_os.c:222: error: for each function it appears in.)
jni_os.c:222: error: `jvmdi' undeclared (first use in this function)
jni_os.c:223: error: `JVMDI_capabilities' undeclared (first use in this function)
jni_os.c:223: error: syntax error before "capabilities"
jni_os.c:231: error: `JVMDI_VERSION_1' undeclared (first use in this function)
jni_os.c:236: error: `capabilities' undeclared (first use in this function)
jni_os.c: In function `Java_com_caucho_loader_ClassEntry_reloadNative':
jni_os.c:250: error: `JVMDI_Interface_1' undeclared (first use in this function)
jni_os.c:250: error: `jvmdi' undeclared (first use in this function)
jni_os.c:252: error: `JVMDI_class_definition' undeclared (first use in this function)
jni_os.c:252: error: syntax error before "defs"
jni_os.c:262: error: `JVMDI_VERSION_1' undeclared (first use in this function)
jni_os.c:267: error: `defs' undeclared (first use in this function)
make[2]: *** [jni_os.o] &íÎó 1
make[2]: Leaving directory `/usr/local/resin-3.0.13/modules/c/src/resin_os'
make[1]: *** [install] &íÎó 2
make[1]: Leaving directory `/usr/local/resin-3.0.13/modules/c/src'
make: *** [install] &íÎó 2


安装不上啊!
你看看你的gcc这个工具有安装吗
gcc是个什么工具啊??
[root@song www]# whereis gcc
gcc: /usr/bin/gcc /usr/lib/gcc /usr/libexec/gcc /usr/share/man/man1/gcc.1.gz

我查了,这里也有啊
可能是你的安装文件有损坏

删了重新解压一下!
我解过很多次了,不可能每次解都有错啊。不懂到底是什么总是啊!
哥们你好像没有指定JAVAHOME
别用--prefix参数就可以了