发新话题
打印

在Centos 5.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
-----------------------
#ifndef APACHELIB_H
#define APACHELIB_H

#define OPT_INCNOEXEC 32 /* added */

TOP

发新话题