CentOS5.3编译mod_ruby-1.3.0出错解决办法

2009年10月13日  |  10:28 上午分类:技术大类  |  标签:  |  234 views

在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

喜欢本文,那就收藏到: Del.icio.us Google书签 Digg Live Bookmark Technorati Furl Yahoo书签 Facebook 百度搜藏 新浪ViVi 365Key网摘 天极网摘 和讯网摘 博拉网 POCO网摘 添加到饭否 QQ书签 Digbuzz我挖网

发表您的评论