Hi, I went through the Perfect Server CentOS 5.2 tutorial but when I got to the mod_ruby installation step (12.2) I had this trouble: Code: [root@viktor mod_ruby-1.2.6]# ./configure.rb --with-apr-includes=/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.5 checking for static Apache module support... no checking for dynamic Apache module support... cannot open /httpd/build/config_vars.mk: No such file or directory at /usr/sbin/apxs line 201. cannot open /httpd/build/config_vars.mk: No such file or directory at /usr/sbin/apxs line 201. configure.rb: error: failed to exec /usr/sbin/apxs Any help would be appreciated. Thanks.
Yeah, Here is what I did: Code: [root@viktor ~]# yum install httpd-devel ruby ruby-devel Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile * base: centos.arcticnetwork.ca * updates: centos.arcticnetwork.ca * addons: centos.arcticnetwork.ca * extras: centos.arcticnetwork.ca Setting up Install Process Parsing package install arguments Package httpd-devel - 2.2.3-11.el5_1.centos.3.x86_64 is already installed. Package httpd-devel - 2.2.3-11.el5_1.centos.3.i386 is already installed. Package ruby - 1.8.5-5.el5_2.3.x86_64 is already installed. Package ruby-devel - 1.8.5-5.el5_2.3.x86_64 is already installed. Package ruby-devel - 1.8.5-5.el5_2.3.i386 is already installed. Nothing to do
yeah, apxs is what's having the problem. Apxs tries to look for some make rules files under /httpd/build/ instead of /usr/lib64/httpd/build/ or /usr/lib/httpd/build/. I made a symbolic link /httpd to /usr/lib64/httpd just to see what would happen but then the compile failed, Although the configure seemed to run fine.
Instead of creating the symlink, you can try to copy the files from /usr/lib64/httpd/build to /httpd/build.
Resolved Hi, To resolv the configure problem : Change in vim /usr/sbin/apxs #my $installbuilddir = $libdir . "/httpd/build"; my $installbuilddir = "/usr/lib64/httpd/build"; But after this, we have an another problem with make ! To fix it, we must install apr-devel-1.2.7-11.x86_64.rpm http://rpm.pbone.net/index.php3/stat/4/idpl/8078792/com/apr-devel-1.2.7-11.x86_64.rpm.html Enjoy with make install.