LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   CentOS (https://www.linuxquestions.org/questions/centos-111/)
-   -   Unable to build suPHP in CentOS-7 (https://www.linuxquestions.org/questions/centos-111/unable-to-build-suphp-in-centos-7-a-4175517458/)

bublikua 09-05-2014 09:38 AM

Unable to build suPHP in CentOS-7
 
Hi

I'm getting the following error while building suphp-0.7.2 under CentOS-7 and have no idea how to fix it
I was using recommendations provided at http://www.openlogic.com/wazi/bid/32...sts-with-suPHP

# cd suphp-0.7.2
# libtoolize --force
# aclocal
# autoheader
# automake --force-missing --add-missing
# autoconf

# ./configure --prefix=/usr --with-apxs=/usr/bin/apxs --with-apr=/usr/bin/apr-1-config

# make
...
In file included from /usr/include/httpd/ap_config.h:25:0,
from /usr/include/httpd/httpd.h:44,
from mod_suphp.c:24:
/usr/include/httpd/ap_hooks.h:39:17: fatal error: apr.h: No such file or directory
#include "apr.h"
^
compilation terminated.
...

Please advice what I'm doing wrong

Thanks in advance

travisdh1 09-05-2014 01:11 PM

Do you have the httpd-devel installed? I'm not sure that the file it's looking for is included, but it'd make sense.

bublikua 09-05-2014 01:47 PM

httpd-devel already installed

[root@localhost /]# yum install httpd-devel apr-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.colocall.net
* epel: mirror.omnilance.com
* extras: ftp.colocall.net
* updates: centos.hitme.net.pl
Package httpd-devel-2.4.6-18.el7.centos.x86_64 already installed and latest version
Package apr-devel-1.4.8-3.el7.x86_64 already installed and latest version
Nothing to do

The file apr.h is located in /usr/include/apr-1

[root@localhost /]# ll /usr/include/apr-1/apr.h
-rw-r--r--. 1 root root 636 Jun 10 05:05 /usr/include/apr-1/apr.h

[root@localhost /]# uname -a
Linux localhost.localdomain 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

unmanarc 09-12-2014 07:00 PM

Quote:

Originally Posted by bublikua (Post 5232787)
Hi

I'm getting the following error while building suphp-0.7.2 under CentOS-7 and have no idea how to fix it
I was using recommendations provided at
# cd suphp-0.7.2
# libtoolize --force
# aclocal
# autoheader
# automake --force-missing --add-missing
# autoconf

# ./configure --prefix=/usr --with-apxs=/usr/bin/apxs --with-apr=/usr/bin/apr-1-config

# make
...
In file included from /usr/include/httpd/ap_config.h:25:0,
from /usr/include/httpd/httpd.h:44,
from mod_suphp.c:24:
/usr/include/httpd/ap_hooks.h:39:17: fatal error: apr.h: No such file or directory
#include "apr.h"
^
compilation terminated.
...

Please advice what I'm doing wrong

Thanks in advance

Some days ago I have uploaded a fully functional and UPDATED mod_suphp on my own centos 7 repo. You can check the SRPM if you want to compile it by yourself, or install it by doing rpm -ivh =)

google unmanarc centos repo

bublikua 09-15-2014 09:19 AM

Quote:

Originally Posted by unmanarc (Post 5237078)
Some days ago I have uploaded a fully functional and UPDATED mod_suphp on my own centos 7 repo. You can check the SRPM if you want to compile it by yourself, or install it by doing rpm -ivh =)

google unmanarc centos repo

Thanks for your help
it really works ;)


All times are GMT -5. The time now is 09:40 AM.