zenmsic
7th July 2008, 12:21
When I followed the tut, things seemed to be OK until step 14, installing Ruby.
There is an error when I "make" the installation.
These are the messages:
[root@server1 mod_ruby-1.2.6]# ./configure.rb --with-apr-inlucdes=/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.6
checking for static Apache module support... no
checking for dynamic Apache module support... yes
creating Makefile
creating libruby.module
creating doc/Makefile
[root@server1 mod_ruby-1.2.6]# make
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Wall -fPIC -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/include/httpd -c mod_ruby.c
In file included from /usr/include/httpd/httpd.h:43,
from mod_ruby.h:52,
from mod_ruby.c:33:
/usr/include/httpd/ap_config.h:25:17: error: apr.h: No such file or directory
/usr/include/httpd/ap_config.h:26:23: error: apr_hooks.h: No such file or directory
/usr/include/httpd/ap_config.h:27:32: error: apr_optional_hooks.h: No such file or directory
In file included from /usr/include/httpd/httpd.h:46,
from mod_ruby.h:52,
from mod_ruby.c:33:
...
The error list is so long that I think I don'nt have to copy everything here.
I've checked my system and apr-devel, apr-util-devel, httpd-devel are already installed. Updating or reinstalling these packages doesn't help.
The command locate apr.h returns the value /usr/include/apr-1/apr.h
How can I fix this problem?
Thanks.
There is an error when I "make" the installation.
These are the messages:
[root@server1 mod_ruby-1.2.6]# ./configure.rb --with-apr-inlucdes=/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.6
checking for static Apache module support... no
checking for dynamic Apache module support... yes
creating Makefile
creating libruby.module
creating doc/Makefile
[root@server1 mod_ruby-1.2.6]# make
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Wall -fPIC -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/include/httpd -c mod_ruby.c
In file included from /usr/include/httpd/httpd.h:43,
from mod_ruby.h:52,
from mod_ruby.c:33:
/usr/include/httpd/ap_config.h:25:17: error: apr.h: No such file or directory
/usr/include/httpd/ap_config.h:26:23: error: apr_hooks.h: No such file or directory
/usr/include/httpd/ap_config.h:27:32: error: apr_optional_hooks.h: No such file or directory
In file included from /usr/include/httpd/httpd.h:46,
from mod_ruby.h:52,
from mod_ruby.c:33:
...
The error list is so long that I think I don'nt have to copy everything here.
I've checked my system and apr-devel, apr-util-devel, httpd-devel are already installed. Updating or reinstalling these packages doesn't help.
The command locate apr.h returns the value /usr/include/apr-1/apr.h
How can I fix this problem?
Thanks.