LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   AIX (https://www.linuxquestions.org/questions/aix-43/)
-   -   Error while installation of Apache httpd 2.4.2 on AIX OS (https://www.linuxquestions.org/questions/aix-43/error-while-installation-of-apache-httpd-2-4-2-on-aix-os-4175612759/)

ramkishan 08-28-2017 04:10 AM

Error while installation of Apache httpd 2.4.2 on AIX OS
 
We are getting below error while running the make command to build Apache files. We are carrying out the installation on AIX 6.1 OS. The installation is completed upto the configuration step as per the procedure given in the below link: http://httpd.apache.org/docs/2.4/install.html

The error is :


util_pcre.c:48:18: error: pcre.h: No such file or directory
util_pcre.c: In function 'ap_regfree':
util_pcre.c:103: error: 'pcre_free' undeclared (first use in this function)
util_pcre.c:103: error: (Each undeclared identifier is reported only once
util_pcre.c:103: error: for each function it appears in.)
util_pcre.c: In function 'ap_regcomp':
util_pcre.c:129: error: 'PCRE_CASELESS' undeclared (first use in this function)
util_pcre.c:131: error: 'PCRE_MULTILINE' undeclared (first use in this function)
util_pcre.c:133: error: 'PCRE_DOTALL' undeclared (first use in this function)
util_pcre.c:136: warning: implicit declaration of function 'pcre_compile'
util_pcre.c:136: warning: assignment makes pointer from integer without a cast
util_pcre.c:142: warning: implicit declaration of function 'pcre_fullinfo'
util_pcre.c:142: error: expected ')' before 'pcre'
util_pcre.c:142: warning: type defaults to 'int' in declaration of 'type name'
util_pcre.c:143: error: 'PCRE_INFO_CAPTURECOUNT' undeclared (first use in this function)
util_pcre.c: In function 'ap_regexec_len':
util_pcre.c:180: error: 'PCRE_NOTBOL' undeclared (first use in this function)
util_pcre.c:182: error: 'PCRE_NOTEOL' undeclared (first use in this function)
util_pcre.c:198: warning: implicit declaration of function 'pcre_exec'
util_pcre.c:198: error: expected ')' before 'pcre'
util_pcre.c:198: warning: type defaults to 'int' in declaration of 'type name'
util_pcre.c:221: error: 'PCRE_ERROR_NOMATCH' undeclared (first use in this function)
util_pcre.c:223: error: 'PCRE_ERROR_NULL' undeclared (first use in this function)
util_pcre.c:225: error: 'PCRE_ERROR_BADOPTION' undeclared (first use in this function)
util_pcre.c:227: error: 'PCRE_ERROR_BADMAGIC' undeclared (first use in this function)
util_pcre.c:229: error: 'PCRE_ERROR_UNKNOWN_NODE' undeclared (first use in this function)
util_pcre.c:231: error: 'PCRE_ERROR_NOMEMORY' undeclared (first use in this function)
make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 1.
We have also installed the below version GCC compiler for AIX 6.1:-

libgcc-4.2.0-3.aix6.1.ppc.rpm
libstdcplusplus-4.2.0-3.aix6.1.ppc.rpm
libstdcplusplus-devel-4.2.0-3.aix6.1.ppc.rpm
gcc-cplusplus-4.2.0-3.aix6.1.ppc.rpm
Kindly suggest as to what is missing here that is causing the error.

TB0ne 08-29-2017 07:01 AM

Quote:

Originally Posted by ramkishan (Post 5752750)
We are getting below error while running the make command to build Apache files. We are carrying out the installation on AIX 6.1 OS. The installation is completed upto the configuration step as per the procedure given in the below link: http://httpd.apache.org/docs/2.4/install.html

The error is :


util_pcre.c:48:18: error: pcre.h: No such file or directory
util_pcre.c: In function 'ap_regfree':
util_pcre.c:103: error: 'pcre_free' undeclared (first use in this function)
util_pcre.c:103: error: (Each undeclared identifier is reported only once
util_pcre.c:103: error: for each function it appears in.)
util_pcre.c: In function 'ap_regcomp':
util_pcre.c:129: error: 'PCRE_CASELESS' undeclared (first use in this function)
util_pcre.c:131: error: 'PCRE_MULTILINE' undeclared (first use in this function)
util_pcre.c:133: error: 'PCRE_DOTALL' undeclared (first use in this function)
util_pcre.c:136: warning: implicit declaration of function 'pcre_compile'
util_pcre.c:136: warning: assignment makes pointer from integer without a cast
util_pcre.c:142: warning: implicit declaration of function 'pcre_fullinfo'
util_pcre.c:142: error: expected ')' before 'pcre'
util_pcre.c:142: warning: type defaults to 'int' in declaration of 'type name'
util_pcre.c:143: error: 'PCRE_INFO_CAPTURECOUNT' undeclared (first use in this function)
util_pcre.c: In function 'ap_regexec_len':
util_pcre.c:180: error: 'PCRE_NOTBOL' undeclared (first use in this function)
util_pcre.c:182: error: 'PCRE_NOTEOL' undeclared (first use in this function)
util_pcre.c:198: warning: implicit declaration of function 'pcre_exec'
util_pcre.c:198: error: expected ')' before 'pcre'
util_pcre.c:198: warning: type defaults to 'int' in declaration of 'type name'
util_pcre.c:221: error: 'PCRE_ERROR_NOMATCH' undeclared (first use in this function)
util_pcre.c:223: error: 'PCRE_ERROR_NULL' undeclared (first use in this function)
util_pcre.c:225: error: 'PCRE_ERROR_BADOPTION' undeclared (first use in this function)
util_pcre.c:227: error: 'PCRE_ERROR_BADMAGIC' undeclared (first use in this function)
util_pcre.c:229: error: 'PCRE_ERROR_UNKNOWN_NODE' undeclared (first use in this function)
util_pcre.c:231: error: 'PCRE_ERROR_NOMEMORY' undeclared (first use in this function)
make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 1.
We have also installed the below version GCC compiler for AIX 6.1:-

libgcc-4.2.0-3.aix6.1.ppc.rpm
libstdcplusplus-4.2.0-3.aix6.1.ppc.rpm
libstdcplusplus-devel-4.2.0-3.aix6.1.ppc.rpm
gcc-cplusplus-4.2.0-3.aix6.1.ppc.rpm
Kindly suggest as to what is missing here that is causing the error.

Did you read and understand the error message?? You're missing the pcre.h library...so install it. On Linux it's libpcre, not sure what it's called on AIX. But it sure seems like you might, based on this:
https://www.ibm.com/developerworks/c...e-d699b5c75b81

...where you were told on the IBM forums to install the pre-built apache package, and were even told to install the pcre development package, seven days ago.

cliffordw 08-30-2017 01:31 AM

Hi ramkishan,

I agree with TB0ne that the easiest solution is usually to install the prebuild package, preferably from IBM at https://www-03.ibm.com/systems/power...x/alpha.html#H.

You could also try Michael Perzl's version at http://www.perzl.org/aix/index.php?n=Main.Apache.

If for some reason you really need to build your own version (possibly because you need a module that's not included in the prebuilt versions), I'd start with Michael's website, where he makes his RPM SPEC files available, together with instructions for how to build his packages. I usually find it easier to customize those than to build from scratch.

Good luck!

NevemTeve 08-30-2017 03:16 PM

@OP: If you had installed pcre from source, you would have /usr/local/include/pcre.h
Or maybe the installation failed or you specified wrong options. Please also read this: http://web.axelero.hu/lzsiga/aix-linking.html#Q0007
And this: http://web.axelero.hu/lzsiga/aix-linking.html#Q0025

Also I hope it is '2.4.27' not '2.4.2'. Before httpd, install apr-1.6.2 and apr-util-1.6.0


All times are GMT -5. The time now is 05:35 AM.