i install centos 5.3 x86_64 and i have one error after install ruby cmd make
apachelib.c: In function ‘ap_chdir_file’:
apachelib.c:149: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
apachelib.c:154: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
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 identifier is reported only once
apachelib.c:374: error: for each function it appears in.)
make: *** [apachelib.o] Error 1
after that i cannot use apache because doesn't find mod_ruby.so file
can anyone help me?
cd /tmp
wget http://www.modruby.net/archive/mod_ruby-1.3.0.tar.gz
tar zxvf mod_ruby-1.3.0.tar.gz
cd mod_ruby-1.3.0/
./configure.rb --with-apr-includes=/usr/include/apr-1
then open /tmp/mod_rubyx.x.x folder
and there you have one file named apachelib.h
open that file put this '#define OPT_INCNOEXEC 32' after '#define APACHELIB_H'
and all working fine with make and make install comand. no error output anymore
Recent comments
1 day 4 hours ago
1 day 7 hours ago
1 day 19 hours ago
1 day 21 hours ago
2 days 2 hours ago
2 days 8 hours ago
2 days 17 hours ago
2 days 19 hours ago
3 days 3 hours ago
3 days 5 hours ago