SUphp not working --Urgent need help

Discussion in 'Installation/Configuration' started by Ramya_2015, Feb 23, 2015.

  1. Ramya_2015

    Ramya_2015 New Member

    Hi ,

    I successfully installed apache 2.4 and php 5.3.10 on the linux server. I have new requirement to install suphp on that. I was trying to install yum update

    I was tring to install supphp 0.7.2 package and after untarring , make install I am getting bunch of error. Not sure what does this mean

    cd /usr/local/suphp-0.7.2
    ./configure --prefix=/usr --with-apxs=/apps/apache/httpd-2.4.9/bin/apxs --with-apr=/apps/bin/apr-1-config
    make
    In file included from /apps/apache/httpd-2.4.9/include/httpd/ap_config.h:25,
    from /apps/apache/httpd-2.4.9/include/httpd/httpd.h:44,
    from mod_suphp.c:24:
    /apps/apache/httpd-2.4.9/include/httpd/ap_hooks.h:39:17: error: apr.h: No such file or directory
    /apps/apache/httpd-2.4.9/include/httpd/ap_hooks.h:40:23: error: apr_hooks.h: No such file or directory
    /apps/apache/httpd-2.4.9/include/httpd/ap_hooks.h:41:32: error: apr_optional_hooks.h: No such file or directory
    In file included from mod_suphp.c:24:
    /apps/apache/httpd-2.4.9/include/httpd/httpd.h:50:25: error: apr_general.h: No such file or directory
    /apps/apache/httpd-2.4.9/include/httpd/httpd.h:51:24: error: apr_tables.h: No such file or directory
    /apps/apache/httpd-2.4.9/include/httpd/httpd.h:52:23: error: apr_pools.h: No such file or directory
    /apps/apache/httpd-2.4.9/include/httpd/httpd.h:53:22: error: apr_time.h: No such file or directory
    /apps/apache/httpd-2.4.9/include/httpd/httpd.h:54:28: error: apr_network_io.h: No such file or directory
    /apps/apache/httpd-2.4.9/include/httpd/httpd.h:55:25: error: apr_buckets.h: No such file or directory
    /apps/apache/httpd-2.4.9/include/httpd/httpd.h:56:22: error: apr_poll.h: No such file or directory
    /apps/apache/httpd-2.4.9/include/httpd/httpd.h:57:29: error: apr_thread_proc.h: No such file or directory
    In file included from /apps/apache/httpd-2.4.9/include/httpd/httpd.h:61,
    from mod_suphp.c:24:
    /apps/apache/httpd-2.4.9/include/httpd/ap_regex.h:94: error: expected specifier-qualifier-list before ‘apr_size_t’
    /apps/apache/httpd-2.4.9/include/httpd/ap_regex.h:126: error: expected declaration specifiers or ‘...’ before ‘apr_size_t’
    /apps/apache/httpd-2.4.9/include/httpd/ap_regex.h:141: error: expected declaration specifiers or ‘...’ before ‘apr_size_t’
    /apps/apache/httpd-2.4.9/include/httpd/ap_regex.h:141: error: expected declaration specifiers or ‘...’ before ‘apr_size_t’
    /apps/apache/httpd-2.4.9/include/httpd/ap_regex.h:151: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ap_regerror’
    /apps/apache/httpd-2.4.9/include/httpd/ap_regex.h:161: error: expected declaration specifiers or ‘...’ before ‘apr_array_header_t’
    /apps/apache/httpd-2.4.9/include/httpd/ap_regex.h:173: error: expected specifier-qualifier-list before ‘apr_uint32_t’
    /apps/apache/httpd-2.4.9/include/httpd/ap_regex.h:195: error: expected ‘)’ before ‘*’ token
    /apps/apache/httpd-2.4.9/include/httpd/ap_regex.h:208: error: expected ‘)’ before ‘*’ token
    /apps/apache/httpd-2.4.9/include/httpd/ap_regex.h:241: error: expected ‘)’ before ‘*’ token
    In file included from mod_suphp.c:24:
    /apps/apache/httpd-2.4.9/include/httpd/httpd.h:441: error: expected ‘)’ before ‘*’ token
    /apps/apache/httpd-2.4.9/include/httpd/httpd.h:634: error: expected specifier-qualifier-list before ‘apr_int64_t’

    ./configure --prefix=/usr --with-apxs=/apps/apache/httpd-2.4.9/bin/apxs --with-apr=/apps/bin/apr-1-config
     
  2. Thedan04

    Thedan04 New Member

    You probably need to install the apr development package, which might be named like apr-devel.
    Try:
    Code:
    yum whatprovides "*/apr.h"
    to verify the package name that would provide the missing file. The development package will provide header files that will be needed to compile the program that you are attempting to work with.
     
    Last edited: Feb 24, 2015
  3. Ramya_2015

    Ramya_2015 New Member

    Thanks for your response, yes I see its already exists but when i do configure it throws error. Can you please advice?
    apr-devel-1.3.9-5.el6_2.x86_64 : APR library development kit
    Repo : rhel-x86_64-server-6
    Matched from:
    Filename : /usr/include/apr-1/apr.h
     
  4. Thedan04

    Thedan04 New Member

    Using "whatprovides" helped identify what package(s) provide the file that is missing. You will need to actually install a package that provides the missing file. If you are using a RHEL variant (CentOS, Scientific Linux, Fedora etc.) use the following:
    Code:
    yum install apr-devel
    
    Once apr-devel is installed, attempt compiling once more. You will probably run into other missing files, mostly ending with ".h" Follow this same process for those other files. Eventually you should be able to find and install all of the packages required to provide the missing files and your source compile should complete (presuming you have set all of your options correctly and there are no other erros).
     
  5. sarahj

    sarahj New Member

    will provide header files that will be needed to compile the program that you are attempting to work with.
     

Share This Page