Skip to content

problema ao compilar o mod_ruby no centos 5.3

Ao rodar o comando:

./configure.rb –with-apr-includes=/usr/include/apr-1

A saída está abaixo:

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

Se você, ao tentar rodar o make recebe isto aqui:

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

FICA tranquilo, a saída está aqui:

abra o arquivo apachelib.h e dentro dele, abaixo das linhas:

#ifndef APACHELIB_H
#define APACHELIB_H

informe

#define OPT_INCNOEXEC 32 /* added *

se rodar eu quero uma caixa de BIZ!

fonte: http://littleoak.wordpress.com/2009/08/05/problema-ao-compilar-o-mod_ruby-no-centos-5-3/

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.