Léa-Linux & amis :   LinuxFR   GCU-Squad   GNU
Installation de httpd avec les sources.
Envoyé par: Athanor027

Bonjour,

Je souhaite installer un serveur Apache avec seulement les sources.
J'ai installé avec les sources les applications suivantes :
- apr
- apr-utils
- apr-iconv
- openssl
- php
- perl
- pcre
- httpd

Quand je compile httpd, il me marque les messages suivants :
util_pcre.c:49:18: error: pcre.h: No such file or directory
util_pcre.c: In function 'ap_regfree':
util_pcre.c:104: error: 'pcre_free' undeclared (first use in this function)
util_pcre.c:104: error: (Each undeclared identifier is reported only once
util_pcre.c:104: error: for each function it appears in.)
util_pcre.c: In function 'ap_regcomp':
util_pcre.c:128: error: 'PCRE_DUPNAMES' undeclared (first use in this function)
util_pcre.c:131: error: 'PCRE_CASELESS' undeclared (first use in this function)
util_pcre.c:133: error: 'PCRE_MULTILINE' undeclared (first use in this function)
util_pcre.c:135: error: 'PCRE_DOTALL' undeclared (first use in this function)
util_pcre.c:138: warning: implicit declaration of function 'pcre_compile2'
util_pcre.c:138: warning: assignment makes pointer from integer without a cast
util_pcre.c:151: warning: implicit declaration of function 'pcre_fullinfo'
util_pcre.c:151: error: expected ')' before 'pcre'
util_pcre.c:151: warning: type defaults to 'int' in declaration of 'type name'
util_pcre.c:151: warning: cast from pointer to integer of different size
util_pcre.c:152: error: 'PCRE_INFO_CAPTURECOUNT' undeclared (first use in this function)
util_pcre.c: In function 'ap_regexec_len':
util_pcre.c:189: error: 'PCRE_NOTBOL' undeclared (first use in this function)
util_pcre.c:191: error: 'PCRE_NOTEOL' undeclared (first use in this function)
util_pcre.c:207: warning: implicit declaration of function 'pcre_exec'
util_pcre.c:207: error: expected ')' before 'pcre'
util_pcre.c:207: warning: type defaults to 'int' in declaration of 'type name'
util_pcre.c:207: warning: cast from pointer to integer of different size
util_pcre.c:230: error: 'PCRE_ERROR_NOMATCH' undeclared (first use in this function)
util_pcre.c:232: error: 'PCRE_ERROR_NULL' undeclared (first use in this function)
util_pcre.c:234: error: 'PCRE_ERROR_BADOPTION' undeclared (first use in this function)
util_pcre.c:236: error: 'PCRE_ERROR_BADMAGIC' undeclared (first use in this function)
util_pcre.c:238: error: 'PCRE_ERROR_UNKNOWN_NODE' undeclared (first use in this function)
util_pcre.c:240: error: 'PCRE_ERROR_NOMEMORY' undeclared (first use in this function)
util_pcre.c: In function 'ap_regname':
util_pcre.c:269: error: expected ')' before 'pcre'
util_pcre.c:269: warning: type defaults to 'int' in declaration of 'type name'
util_pcre.c:269: warning: cast from pointer to integer of different size
util_pcre.c:270: error: 'PCRE_INFO_NAMECOUNT' undeclared (first use in this function)
util_pcre.c:271: error: expected ')' before 'pcre'
util_pcre.c:271: warning: type defaults to 'int' in declaration of 'type name'
util_pcre.c:271: warning: cast from pointer to integer of different size
util_pcre.c:272: error: 'PCRE_INFO_NAMEENTRYSIZE' undeclared (first use in this function)
util_pcre.c:273: error: expected ')' before 'pcre'
util_pcre.c:273: warning: type defaults to 'int' in declaration of 'type name'
util_pcre.c:273: warning: cast from pointer to integer of different size
util_pcre.c:274: error: 'PCRE_INFO_NAMETABLE' undeclared (first use in this function)
make[2]: *** [util_pcre.lo] Error 1
make[2]: Leaving directory `/archives/Installations/Origine/httpd-2.4.20/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/archives/Installations/Origine/httpd-2.4.20/server'
make: *** [all-recursive] Error 1

J'ai regardé sur internet.
Il m'indique qu'il faut installer les packages pcre (alors que je l'ai installé en source).
Je souhaite installé tous les packages pour Apache avec les sources.

voici mon installation pour le moment :
# ls -l /apps
total 48
lrwxrwxrwx 1 root root 15 Apr 26 16:39 apr -> /apps/apr-1.5.2
drwxr-xr-x 6 root root 4096 Apr 26 16:38 apr-1.5.2
lrwxrwxrwx 1 root root 21 Apr 27 12:15 apr-iconv -> /apps/apr-iconv-1.2.1
drwxr-xr-x 5 root root 4096 Apr 27 12:12 apr-iconv-1.2.1
lrwxrwxrwx 1 root root 20 Apr 27 13:02 apr-util -> /apps/apr-util-1.5.4
drwxr-xr-x 5 root root 4096 Apr 27 13:00 apr-util-1.5.4
drwxr-xr-x 2 root root 4096 Apr 28 16:03 httpd
drwx------ 2 root root 16384 Apr 21 18:34 lost+found
lrwxrwxrwx 1 root root 20 Apr 27 11:33 openssl -> /apps/openssl-1.0.1s
drwxr-xr-x 9 root root 4096 Apr 27 11:31 openssl-1.0.1s
lrwxrwxrwx 1 root root 17 Apr 27 17:08 pcre -> /apps/pcre2-10.20
drwxr-xr-x 6 root root 4096 Apr 27 17:06 pcre2-10.20
lrwxrwxrwx 1 root root 17 Apr 27 16:34 perl -> /apps/perl-5.22.1
drwxr-xr-x 2 root root 4096 Apr 27 16:09 perl-5.22.1
lrwxrwxrwx 1 root root 15 Apr 27 15:41 php -> /apps/php-5.6.4
drwxr-xr-x 7 root root 4096 Apr 27 15:39 php-5.6.4

Avez-vous une idée ?

Merci d'avance.

Poste le Thursday 28 April 2016 16:27:55
Répondre     Citer    
Re: Installation de httpd avec les sources.
Envoyé par: nicola

Pourquoi souhaites-tu faire ça ? C’est pour jouer avec LFS ?

--
On ne prête qu’aux riches, et on a bien raison, parce que les autres remboursent difficilement.
-+- Tristan Bernard (1866-1947) -+-

Poste le Thursday 28 April 2016 20:03:03
Répondre     Citer    

Veuillez vous authentifier auparavant pour commenter.

 

Ce forum !
Installation de httpd avec les sources.
Un problème avec une commande du shell ? Comment utiliser la crontab ? Vous avez des soucis pour la gestion réseau sous Linux ? Pour vous la gestion des utilisateurs/groupes est du chinois ? Etc... Posez donc vos questions ici.

Sauf mention contraire, les documentations publiées sont sous licence Creative-Commons