LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 09-05-2014, 09:38 AM   #1
bublikua
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Rep: Reputation: 0
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
 
Old 09-05-2014, 01:11 PM   #2
travisdh1
Member
 
Registered: Sep 2008
Distribution: Fedora
Posts: 129

Rep: Reputation: 22
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.
 
Old 09-05-2014, 01:47 PM   #3
bublikua
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
Old 09-12-2014, 07:00 PM   #4
unmanarc
LQ Newbie
 
Registered: Sep 2014
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by bublikua View Post
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
 
Old 09-15-2014, 09:19 AM   #5
bublikua
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unmanarc View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to build glibc on CentOS 5 chesschi Linux - Newbie 2 11-21-2013 04:00 PM
[Solved] problem installing suphp [centos + plesk 11.5] imadsani Linux - Server 2 08-28-2013 11:52 AM
How to disable / delete suPHP Centos 5.5 oscargim Linux - Newbie 0 03-21-2011 03:32 PM
how do i remove suPHP CentOS mikecoyne83 Linux - Server 2 11-17-2009 11:49 AM
Unable to Build ELDK3.1 for kernel 2.4.25. On Booting Unable to mount root fs.. kannath Debian 0 05-11-2006 09:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 11:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration