You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by back Button <ba...@aol.com.INVALID> on 2021/04/28 22:18:10 UTC
[users@httpd] util_pcre.c:58:10: fatal error: pcre.h: No such file or directory
running make to build Apache 2.4.46
It is true there is no file pcre.h. but I do have a pcre2.h
so this is what I did hoping the missing dependency would be taken care of. sudo ln -s /usr/local/pcre/include/pcre2.h /usr/include/
It didn't take care of the issue
before running make this was my /configure which did work.
./configure --with-included-apr=/usr/local/apr --with-pcre=/usr/local/pcre/bin/pcre2-config
What can I do about this missing c header library file. ?
httpd-2.4.46 $ make
Making all in srclib
make[1]: Entering directory '/home/pi/Downloads/httpd-2.4.46/srclib'
make[1]: Leaving directory '/home/pi/Downloads/httpd-2.4.46/srclib'
Making all in os
make[1]: Entering directory '/home/pi/Downloads/httpd-2.4.46/os'
Making all in unix
make[2]: Entering directory '/home/pi/Downloads/httpd-2.4.46/os/unix'
make[3]: Entering directory '/home/pi/Downloads/httpd-2.4.46/os/unix'
make[3]: Nothing to be done for 'local-all'.
make[3]: Leaving directory '/home/pi/Downloads/httpd-2.4.46/os/unix'
make[2]: Leaving directory '/home/pi/Downloads/httpd-2.4.46/os/unix'
make[1]: Leaving directory '/home/pi/Downloads/httpd-2.4.46/os'
Making all in server
make[1]: Entering directory '/home/pi/Downloads/httpd-2.4.46/server'
Making all in mpm
make[2]: Entering directory '/home/pi/Downloads/httpd-2.4.46/server/mpm'
Making all in event
make[3]: Entering directory '/home/pi/Downloads/httpd-2.4.46/server/mpm/event'
make[4]: Entering directory '/home/pi/Downloads/httpd-2.4.46/server/mpm/event'
make[4]: Nothing to be done for 'local-all'.
make[4]: Leaving directory '/home/pi/Downloads/httpd-2.4.46/server/mpm/event'
make[3]: Leaving directory '/home/pi/Downloads/httpd-2.4.46/server/mpm/event'
make[2]: Leaving directory '/home/pi/Downloads/httpd-2.4.46/server/mpm'
make[2]: Entering directory '/home/pi/Downloads/httpd-2.4.46/server'
/usr/share/apr-1.0/build/libtool --silent --mode=compile arm-linux-gnueabihf-gcc -pthread -DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I. -I/home/pi/Downloads/httpd-2.4.46/os/unix -I/home/pi/Downloads/httpd-2.4.46/include -I/usr/include/apr-1.0 -I/usr/include -I/usr/local/pcre/include -I/home/pi/Downloads/httpd-2.4.46/modules/aaa -I/home/pi/Downloads/httpd-2.4.46/modules/cache -I/home/pi/Downloads/httpd-2.4.46/modules/core -I/home/pi/Downloads/httpd-2.4.46/modules/database -I/home/pi/Downloads/httpd-2.4.46/modules/filters -I/home/pi/Downloads/httpd-2.4.46/modules/ldap -I/home/pi/Downloads/httpd-2.4.46/modules/loggers -I/home/pi/Downloads/httpd-2.4.46/modules/lua -I/home/pi/Downloads/httpd-2.4.46/modules/proxy -I/home/pi/Downloads/httpd-2.4.46/modules/http2 -I/home/pi/Downloads/httpd-2.4.46/modules/session -I/home/pi/Downloads/httpd-2.4.46/modules/ssl -I/home/pi/Downloads/httpd-2.4.46/modules/test -I/home/pi/Downloads/httpd-2.4.46/server -I/home/pi/Downloads/httpd-2.4.46/modules/md -I/home/pi/Downloads/httpd-2.4.46/modules/arch/unix -I/home/pi/Downloads/httpd-2.4.46/modules/dav/main -I/home/pi/Downloads/httpd-2.4.46/modules/generators -I/home/pi/Downloads/httpd-2.4.46/modules/mappers -prefer-non-pic -static -c util_pcre.c && touch util_pcre.lo
util_pcre.c:58:10: fatal error: pcre.h: No such file or directory
#include "pcre.h"
^~~~~~~~
compilation terminated.
make[2]: *** [/home/pi/Downloads/httpd-2.4.46/build/rules.mk:206: util_pcre.lo] Error 1
make[2]: Leaving directory '/home/pi/Downloads/httpd-2.4.46/server'
make[1]: *** [/home/pi/Downloads/httpd-2.4.46/build/rules.mk:75: all-recursive] Error 1
make[1]: Leaving directory '/home/pi/Downloads/httpd-2.4.46/server'
make: *** [/home/pi/Downloads/httpd-2.4.46/build/rules.mk:75: all-recursive] Error 1
back.button@aol.com
Re: [users@httpd] util_pcre.c:58:10: fatal error: pcre.h: No such
file or directory
Posted by Dino Ciuffetti <di...@tuxweb.it>.
It is true there is no file pcre.h. but I do have a pcre2.h
You need PCRE, not PCRE2. They are not compatible each other.
Clean up your /usr/local/pcre directory, also remove any symlink you've manually created on /usr/include!!
Download PCRE from here: https://ftp.pcre.org/pub/pcre/pcre-8.44.tar.gz (https://ftp.pcre.org/pub/pcre/pcre-8.44.tar.gz) and compile with:
./configure --prefix=/usr/local/pcre --enable-utf --enable-unicode-properties
make
make install
Then, go to your apache httpd source dir and run:
make clean
./configure --with-pcre=/usr/local/pcre --with-included-apr ...
# Feel free to add other options to your configure. In my case I generally compile apache with:
./configure --with-included-apr --with-crypto --prefix=/usr/local/apache24 --enable-mods-shared=most --enable-ssl --enable-proxy --enable-proxy-connect --enable-proxy-http --enable-proxy-balancer --enable-cache --enable-disk-cache --enable-mem-cache --with-ssl=/usr --with-openssl=/usr --with-devrandom=/dev/urandom --with-pcre=/usr/local/pcre
make
make install
Enjoy your apache at /usr/local/apache24.
NOTE: If you are on centos / redhat (7+), you could avoid compile PCRE from source.
Just need to:
yum install pcre-devel openssl-devel expat-devel
Then use --with-pcre=/usr on your apache configure string.
HTH.
Ciao, Dino.
Re: [users@httpd] util_pcre.c:58:10: fatal error: pcre.h: No such
file or directory
Posted by back Button <ba...@aol.com.INVALID>.
Happy to report It works ! on Raspberry Pi too.Thanks
back.button@aol.com
-----Original Message-----
From: Richard <li...@listmail.innovate.net>
To: users@httpd.apache.org
Sent: Thu, 29 Apr 2021 0:52
Subject: Re: [users@httpd] util_pcre.c:58:10: fatal error: pcre.h: No such file or directory
The pcre.h header file is likely part of the pcre development package
from your distribution. You should not be trying to install it from
source as that will make it very hard to maintain, nor would I expect
it to be part of the apache package. You should (simply) be able to
get the development package (if that's where your distribution has
it) from your distribution's repository.
> Date: Wednesday, April 28, 2021 23:39:53 +0000
> From: back Button <ba...@aol.com.INVALID>
>
> I believe it is pcre-8.44.tar.gz found on page
> https://ftp.pcre.org/pub/pcre/
>
> I would prefer to install it this way
> sudo apt install apache2
> sudo service apache2 start
>
> as shown on https://httpd.apache.org/docs/2.4/install.html.
>
> But this way I am not pulling the latest version.
>
> From: Richard
> Sent: Wed, 28 Apr 2021 23:56
>
>
>> Date: Wednesday, April 28, 2021 22:44:41 +0000
>> From: back Button <ba...@aol.com.INVALID>
>>
>>> From: Nick Folino <ni...@folino.us>
>>> Sent: Wed, 28 Apr 2021 23:23
>>>
>>> Install the correct libraries.
>>
>> I have installed the latest libraries with the latestᅠ Apache.
>> How am I supposed to knowᅠwhich library corresponds to Apache
>> 2.4.46 ?
>
> The package manager for your distribution (whatever it is) should
> have a way for you to search for packages (including which package
> includes a library or header file that you need) and install them
> from its repository. What is missing is the "pcre.h" header file, so
> that's what you need to find.
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] util_pcre.c:58:10: fatal error: pcre.h: No
such file or directory
Posted by Richard <li...@listmail.innovate.net>.
The pcre.h header file is likely part of the pcre development package
from your distribution. You should not be trying to install it from
source as that will make it very hard to maintain, nor would I expect
it to be part of the apache package. You should (simply) be able to
get the development package (if that's where your distribution has
it) from your distribution's repository.
> Date: Wednesday, April 28, 2021 23:39:53 +0000
> From: back Button <ba...@aol.com.INVALID>
>
> I believe it is pcre-8.44.tar.gz found on page
> https://ftp.pcre.org/pub/pcre/
>
> I would prefer to install it this way
> sudo apt install apache2
> sudo service apache2 start
>
> as shown on https://httpd.apache.org/docs/2.4/install.html.
>
> But this way I am not pulling the latest version.
>
> From: Richard
> Sent: Wed, 28 Apr 2021 23:56
>
>
>> Date: Wednesday, April 28, 2021 22:44:41 +0000
>> From: back Button <ba...@aol.com.INVALID>
>>
>>> From: Nick Folino <ni...@folino.us>
>>> Sent: Wed, 28 Apr 2021 23:23
>>>
>>> Install the correct libraries.
>>
>> I have installed the latest libraries with the latestᅠ Apache.
>> How am I supposed to knowᅠwhich library corresponds to Apache
>> 2.4.46 ?
>
> The package manager for your distribution (whatever it is) should
> have a way for you to search for packages (including which package
> includes a library or header file that you need) and install them
> from its repository. What is missing is the "pcre.h" header file, so
> that's what you need to find.
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] Re: util_pcre.c:58:10: fatal error: pcre.h: No such file or directory
Posted by Christophe JAILLET <ch...@wanadoo.fr>.
Le 29/04/2021 à 01:39, back Button a écrit :
> I believe it is pcre-8.44.tar.gz found on page
> https://ftp.pcre.org/pub/pcre/
>
>
> I would prefer to install it this way
>
> sudo apt install apache2 sudo service apache2 start
> as shown on https://httpd.apache.org/docs/2.4/install.html.
>
> But this way I am not pulling the latest version.
>
>
Hi,
PCRE2 is not supported yet by the 2.4.x branch of Apache HTTPD.
There is a port in trunk (mostly done in
http://svn.apache.org/viewvc?view=revision&revision=r1773454 and a few
other commits).
The backport for the 2.4.x branch have been stalled since several years
because of poor performance with Apache. The reported performance issue
is apparently related to the way memory is managed.
With PCRE we can take advantage of the memory pool mechanism used in
Apache, but this is no longer the case with PCRE2. In this case, we need
to leave the memory management to the OS and use many malloc/free.
Any 2nd eye to give some metrics and/or solution is welcomed :)
CJ
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] util_pcre.c:58:10: fatal error: pcre.h: No such
file or directory
Posted by back Button <ba...@aol.com.INVALID>.
I believe it is pcre-8.44.tar.gz found on page https://ftp.pcre.org/pub/pcre/
I would prefer to install it this way
sudo apt install apache2
sudo service apache2 start
as shown on https://httpd.apache.org/docs/2.4/install.html.
But this way I am not pulling the latest version.
back.button@aol.com
-----Original Message-----
From: Richard <li...@listmail.innovate.net>
To: users@httpd.apache.org
Sent: Wed, 28 Apr 2021 23:56
Subject: Re: [users@httpd] util_pcre.c:58:10: fatal error: pcre.h: No such file or directory
> Date: Wednesday, April 28, 2021 22:44:41 +0000
> From: back Button <ba...@aol.com.INVALID>
>
>> From: Nick Folino <ni...@folino.us>
>> Sent: Wed, 28 Apr 2021 23:23
>>
>> Install the correct libraries.
>
> I have installed the latest libraries with the latestᅠ Apache.
> How am I supposed to knowᅠwhich library corresponds to Apache
> 2.4.46 ?
The package manager for your distribution (whatever it is) should
have a way for you to search for packages (including which package
includes a library or header file that you need) and install them
from its repository. What is missing is the "pcre.h" header file, so
that's what you need to find.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] util_pcre.c:58:10: fatal error: pcre.h: No
such file or directory
Posted by Richard <li...@listmail.innovate.net>.
> Date: Wednesday, April 28, 2021 22:44:41 +0000
> From: back Button <ba...@aol.com.INVALID>
>
>> From: Nick Folino <ni...@folino.us>
>> Sent: Wed, 28 Apr 2021 23:23
>>
>> Install the correct libraries.
>
> I have installed the latest libraries with the latestᅠ Apache.
> How am I supposed to knowᅠwhich library corresponds to Apache
> 2.4.46 ?
The package manager for your distribution (whatever it is) should
have a way for you to search for packages (including which package
includes a library or header file that you need) and install them
from its repository. What is missing is the "pcre.h" header file, so
that's what you need to find.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] util_pcre.c:58:10: fatal error: pcre.h: No such
file or directory
Posted by back Button <ba...@aol.com.INVALID>.
I have installed the latest libraries with the latest Apache.
How am I supposed to know which library corresponds to Apache 2.4.46 ?
back.button@aol.com
-----Original Message-----
From: Nick Folino <ni...@folino.us>
To: users@httpd.apache.org; back Button <ba...@aol.com>
Sent: Wed, 28 Apr 2021 23:23
Subject: Re: [users@httpd] util_pcre.c:58:10: fatal error: pcre.h: No such file or directory
Install the correct libraries.
On Wed, Apr 28, 2021 at 6:18 PM back Button <ba...@aol.com.invalid> wrote:
running make to build Apache 2.4.46
It is true there is no file pcre.h. but I do have a pcre2.h
so this is what I did hoping the missing dependency would be taken care of. sudo ln -s /usr/local/pcre/include/pcre2.h /usr/include/
It didn't take care of the issue
before running make this was my /configure which did work.
./configure --with-included-apr=/usr/local/apr --with-pcre=/usr/local/pcre/bin/pcre2-config
What can I do about this missing c header library file. ?
httpd-2.4.46 $ make
Making all in srclib
make[1]: Entering directory '/home/pi/Downloads/httpd-2.4.46/srclib'
make[1]: Leaving directory '/home/pi/Downloads/httpd-2.4.46/srclib'
Making all in os
make[1]: Entering directory '/home/pi/Downloads/httpd-2.4.46/os'
Making all in unix
make[2]: Entering directory '/home/pi/Downloads/httpd-2.4.46/os/unix'
make[3]: Entering directory '/home/pi/Downloads/httpd-2.4.46/os/unix'
make[3]: Nothing to be done for 'local-all'.
make[3]: Leaving directory '/home/pi/Downloads/httpd-2.4.46/os/unix'
make[2]: Leaving directory '/home/pi/Downloads/httpd-2.4.46/os/unix'
make[1]: Leaving directory '/home/pi/Downloads/httpd-2.4.46/os'
Making all in server
make[1]: Entering directory '/home/pi/Downloads/httpd-2.4.46/server'
Making all in mpm
make[2]: Entering directory '/home/pi/Downloads/httpd-2.4.46/server/mpm'
Making all in event
make[3]: Entering directory '/home/pi/Downloads/httpd-2.4.46/server/mpm/event'
make[4]: Entering directory '/home/pi/Downloads/httpd-2.4.46/server/mpm/event'
make[4]: Nothing to be done for 'local-all'.
make[4]: Leaving directory '/home/pi/Downloads/httpd-2.4.46/server/mpm/event'
make[3]: Leaving directory '/home/pi/Downloads/httpd-2.4.46/server/mpm/event'
make[2]: Leaving directory '/home/pi/Downloads/httpd-2.4.46/server/mpm'
make[2]: Entering directory '/home/pi/Downloads/httpd-2.4.46/server'
/usr/share/apr-1.0/build/libtool --silent --mode=compile arm-linux-gnueabihf-gcc -pthread -DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I. -I/home/pi/Downloads/httpd-2.4.46/os/unix -I/home/pi/Downloads/httpd-2.4.46/include -I/usr/include/apr-1.0 -I/usr/include -I/usr/local/pcre/include -I/home/pi/Downloads/httpd-2.4.46/modules/aaa -I/home/pi/Downloads/httpd-2.4.46/modules/cache -I/home/pi/Downloads/httpd-2.4.46/modules/core -I/home/pi/Downloads/httpd-2.4.46/modules/database -I/home/pi/Downloads/httpd-2.4.46/modules/filters -I/home/pi/Downloads/httpd-2.4.46/modules/ldap -I/home/pi/Downloads/httpd-2.4.46/modules/loggers -I/home/pi/Downloads/httpd-2.4.46/modules/lua -I/home/pi/Downloads/httpd-2.4.46/modules/proxy -I/home/pi/Downloads/httpd-2.4.46/modules/http2 -I/home/pi/Downloads/httpd-2.4.46/modules/session -I/home/pi/Downloads/httpd-2.4.46/modules/ssl -I/home/pi/Downloads/httpd-2.4.46/modules/test -I/home/pi/Downloads/httpd-2.4.46/server -I/home/pi/Downloads/httpd-2.4.46/modules/md -I/home/pi/Downloads/httpd-2.4.46/modules/arch/unix -I/home/pi/Downloads/httpd-2.4.46/modules/dav/main -I/home/pi/Downloads/httpd-2.4.46/modules/generators -I/home/pi/Downloads/httpd-2.4.46/modules/mappers -prefer-non-pic -static -c util_pcre.c && touch util_pcre.lo
util_pcre.c:58:10: fatal error: pcre.h: No such file or directory
#include "pcre.h"
^~~~~~~~
compilation terminated.
make[2]: *** [/home/pi/Downloads/httpd-2.4.46/build/rules.mk:206: util_pcre.lo] Error 1
make[2]: Leaving directory '/home/pi/Downloads/httpd-2.4.46/server'
make[1]: *** [/home/pi/Downloads/httpd-2.4.46/build/rules.mk:75: all-recursive] Error 1
make[1]: Leaving directory '/home/pi/Downloads/httpd-2.4.46/server'
make: *** [/home/pi/Downloads/httpd-2.4.46/build/rules.mk:75: all-recursive] Error 1
back.button@aol.com
Re: [users@httpd] util_pcre.c:58:10: fatal error: pcre.h: No such
file or directory
Posted by Nick Folino <ni...@folino.us>.
Install the correct libraries.
On Wed, Apr 28, 2021 at 6:18 PM back Button <ba...@aol.com.invalid>
wrote:
>
> running make to build Apache 2.4.46
>
> It is true there is no file pcre.h. but I do have a pcre2.h
>
> so this is what I did hoping the missing dependency would be taken care of.
> sudo ln -s /usr/local/pcre/include/pcre2.h /usr/include/
> It didn't take care of the issue
>
> before running make this was my /configure which did work.
>
> ./configure --with-included-apr=/usr/local/apr
> --with-pcre=/usr/local/pcre/bin/pcre2-config
>
> What can I do about this missing c header library file. ?
>
> httpd-2.4.46 $ make
> Making all in srclib
> make[1]: Entering directory '/home/pi/Downloads/httpd-2.4.46/srclib'
> make[1]: Leaving directory '/home/pi/Downloads/httpd-2.4.46/srclib'
> Making all in os
> make[1]: Entering directory '/home/pi/Downloads/httpd-2.4.46/os'
> Making all in unix
> make[2]: Entering directory '/home/pi/Downloads/httpd-2.4.46/os/unix'
> make[3]: Entering directory '/home/pi/Downloads/httpd-2.4.46/os/unix'
> make[3]: Nothing to be done for 'local-all'.
> make[3]: Leaving directory '/home/pi/Downloads/httpd-2.4.46/os/unix'
> make[2]: Leaving directory '/home/pi/Downloads/httpd-2.4.46/os/unix'
> make[1]: Leaving directory '/home/pi/Downloads/httpd-2.4.46/os'
> Making all in server
> make[1]: Entering directory '/home/pi/Downloads/httpd-2.4.46/server'
> Making all in mpm
> make[2]: Entering directory '/home/pi/Downloads/httpd-2.4.46/server/mpm'
> Making all in event
> make[3]: Entering directory
> '/home/pi/Downloads/httpd-2.4.46/server/mpm/event'
> make[4]: Entering directory
> '/home/pi/Downloads/httpd-2.4.46/server/mpm/event'
> make[4]: Nothing to be done for 'local-all'.
> make[4]: Leaving directory
> '/home/pi/Downloads/httpd-2.4.46/server/mpm/event'
> make[3]: Leaving directory
> '/home/pi/Downloads/httpd-2.4.46/server/mpm/event'
> make[2]: Leaving directory '/home/pi/Downloads/httpd-2.4.46/server/mpm'
> make[2]: Entering directory '/home/pi/Downloads/httpd-2.4.46/server'
> /usr/share/apr-1.0/build/libtool --silent --mode=compile
> arm-linux-gnueabihf-gcc -pthread -DLINUX -D_REENTRANT -D_GNU_SOURCE
> -D_LARGEFILE64_SOURCE -I. -I/home/pi/Downloads/httpd-2.4.46/os/unix
> -I/home/pi/Downloads/httpd-2.4.46/include -I/usr/include/apr-1.0
> -I/usr/include -I/usr/local/pcre/include
> -I/home/pi/Downloads/httpd-2.4.46/modules/aaa
> -I/home/pi/Downloads/httpd-2.4.46/modules/cache
> -I/home/pi/Downloads/httpd-2.4.46/modules/core
> -I/home/pi/Downloads/httpd-2.4.46/modules/database
> -I/home/pi/Downloads/httpd-2.4.46/modules/filters
> -I/home/pi/Downloads/httpd-2.4.46/modules/ldap
> -I/home/pi/Downloads/httpd-2.4.46/modules/loggers
> -I/home/pi/Downloads/httpd-2.4.46/modules/lua
> -I/home/pi/Downloads/httpd-2.4.46/modules/proxy
> -I/home/pi/Downloads/httpd-2.4.46/modules/http2
> -I/home/pi/Downloads/httpd-2.4.46/modules/session
> -I/home/pi/Downloads/httpd-2.4.46/modules/ssl
> -I/home/pi/Downloads/httpd-2.4.46/modules/test
> -I/home/pi/Downloads/httpd-2.4.46/server
> -I/home/pi/Downloads/httpd-2.4.46/modules/md
> -I/home/pi/Downloads/httpd-2.4.46/modules/arch/unix
> -I/home/pi/Downloads/httpd-2.4.46/modules/dav/main
> -I/home/pi/Downloads/httpd-2.4.46/modules/generators
> -I/home/pi/Downloads/httpd-2.4.46/modules/mappers -prefer-non-pic -static
> -c util_pcre.c && touch util_pcre.lo
> util_pcre.c:58:10: fatal error: pcre.h: No such file or directory
> #include "pcre.h"
> ^~~~~~~~
> compilation terminated.
> make[2]: *** [/home/pi/Downloads/httpd-2.4.46/build/rules.mk:206:
> util_pcre.lo] Error 1
> make[2]: Leaving directory '/home/pi/Downloads/httpd-2.4.46/server'
> make[1]: *** [/home/pi/Downloads/httpd-2.4.46/build/rules.mk:75:
> all-recursive] Error 1
> make[1]: Leaving directory '/home/pi/Downloads/httpd-2.4.46/server'
> make: *** [/home/pi/Downloads/httpd-2.4.46/build/rules.mk:75:
> all-recursive] Error 1
>
>
>
>
> back.button@aol.com
>