CentOS5.3编译mod_ruby-1.3.0出错

在Centos 5.3编译mod_ruby-1.3.0会出错

./configure.rb --with-apr-includes=/usr/include/apr-1
checking for a BSD compatible install... /usr/bin/install -c
checking whether we are using gcc... yes
checking Ruby version... 1.8.5
checking for static Apache module support... no
checking for dynamic Apache module support... yes
creating Makefile
creating libruby.module
creating doc/Makefile

After some make he stopt in apachelib.c with this error:
apachelib.c: In function .ap_chdir_file.:
apachelib.c: 149: take care: the returnvalue of .chdir ., declared with .warn_unused_result. attribut, is ignored
apachelib.c: 154: take care: the returnvalue of .chdir ., declared with .warn_unused_result. attribut, is ignored
apachelib.c: In function .rb_init_apache. :
apachelib.c: 374: error: .OPT_INCNOEXEC. undeclared (first use in this function)
apachelib.c: 374: error: (Each undeclared identifire is reported only once
apachelib.c: 374: error: for each function it appears in.)
make: *** [apachelib.o] error 1


解决方法

"OPT_INCNOEXEC" that is not defined in latest httpd-devel version at CentOS 5.3....

add underlast line to mod_ruby-1.3.0/apachelib.h
在apachelib.h文件中增加一行:粗体部分
-----------------------
#ifndef APACHELIB_H
#define APACHELIB_H

#define OPT_INCNOEXEC 32

你可能感兴趣的:(centos,职场,编译,休闲,mod_ruby-1.3.0)