ruby errors

Discussion in 'Installation/Configuration' started by -crisstm-, Jun 11, 2009.

  1. -crisstm-

    -crisstm- Banned

    i install centos 5.3 x86_64 and i have one error after install ruby cmd make

    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 that i cannot use apache because doesn't find mod_ruby.so file
    can anyone help me?
     
  2. -crisstm-

    -crisstm- Banned

    solution

    i found solution

    cd /tmp
    wget http://www.modruby.net/archive/mod_ruby-1.3.0.tar.gz
    tar zxvf mod_ruby-1.3.0.tar.gz
    cd mod_ruby-1.3.0/
    ./configure.rb --with-apr-includes=/usr/include/apr-1
    then open /tmp/mod_rubyx.x.x folder
    and there you have one file named apachelib.h
    open that file put this '#define OPT_INCNOEXEC 32' after '#define APACHELIB_H'
    and all working fine with make and make install comand. no error output anymore
     

Share This Page