PDA

View Full Version : Errors installing CentOS 5.3


kevin.cousins
25th July 2009, 19:56
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?

kevin.cousins
25th July 2009, 21:32
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?

altaibskt
26th July 2009, 12:37
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

wharfratjoe
24th August 2009, 08:07
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

Perfect :)