I am installing "The Perfect Server - CentOS 5.3 i386 [ISPConfig2]". During Step 12.2, Installing mod_ruby, I am getting error messages: 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 this step, when I command httpd to restart, I get the following error message: Starting httpd: httpd: Syntax error on line 210 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.d/ruby.conf: Cannot load /etc/httpd/modules/mod_ruby.so into server: /etc/httpd/modules/mod_ruby.so: cannot open shared object file: No such file or directory I followed the tutorial explicitly and this is the second installation where I ran into this problem at the same place. Where did I go wrong?
I commented out line 210 in httpd.conf I commented out line 210 in etc/httpd/conf/httpd.conf - Include conf.d/*.conf - and etc/init.d/httpd started successfully. I'm still not certain that this is the proper configuration. Any suggestions?
Having precisely the same problem, i googled and found the solution. after getting the error just add to the end of mod_ruby-1.3.0/apachelib.h , after (#endif /* !APACHELIB_H */). this line #define OPT_INCNOEXEC 32 and then make. it will work just fine