mod_ruby configuration error

Discussion in 'Installation/Configuration' started by PavementPounder, Sep 22, 2008.

  1. PavementPounder

    PavementPounder New Member

    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.
     
  2. falko

    falko Super Moderator

    Did you install the httpd-devel package?
     
  3. PavementPounder

    PavementPounder New Member

    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
     
  4. PavementPounder

    PavementPounder New Member

    Is mod_ruby needed by ISPConfig, or can I get by without installing it?
     
  5. falko

    falko Super Moderator

    You can get by without installing it.

    Does /usr/sbin/apxs exist?
     
  6. PavementPounder

    PavementPounder New Member

    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.
     
  7. falko

    falko Super Moderator

    Instead of creating the symlink, you can try to copy the files from /usr/lib64/httpd/build to /httpd/build.
     
  8. romsworld

    romsworld New Member

Share This Page