Précédent   Forum des professionnels en informatique > Webmasters - Développement Web > Serveurs (Apache, IIS,...) > Apache
Apache Forum d'entraide Apache. Avant de poster : Cours Apache, FAQ Apache
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 01/03/2011, 11h51   #1
Invité de passage
 
Inscription : mars 2011
Messages : 3
Détails du profil
Informations forums :
Inscription : mars 2011
Messages : 3
Points : 1
Points : 1
Par défaut mod_perl2 pour Apache2 et Windows x64

Bonjour,

J'essaye actuellement d'installer Apache2 avec le module mod_perl2.
La partie apache2 ne pose aucune difficultés mais concernant la partie mod_perl2 je suis à cours d'idées.

Je suis dans l’environnement suivant :
- Windows Seven SP1 X64
- Apache/2.2.17
- Perl/v5.12.3 (Active perl 5.12.3)

Les variables d’environnement pointent vers mes répertoires apache et perl

Ce que j'ai déjà fait :
* mod_perl 2.0.5
- télécharger de la version mod_perl 2.0: Version 2.0.5
(sur http://perl.apache.org/download/index.html)
- exécution de Makefile.pl
- le résultat :
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
C:\Users\holblin\Desktop\AMP\mod_perl-2.0.5>Makefile.PL
Set up gcc environment - 3.4.5 (mingw-vista special r3)
no conflicting prior mod_perl version found - good.

Next we need to know where the 'apxs' script is located. This script
provides a lot of information about the Apache installation, and makes
it easier to find things on your system. Normally it's located in the
same directory as the 'httpd' executable.

If you don't yet have Apache installed you can build Apache against
the Apache source code, but you won't be able to run the test suite (a
very important step). Therefore you may want to install Apache before
proceeding.


Please provide a full path to 'apxs' executable
(press Enter if you don't have it installed):  c:\AMP\Apache2\bin\apxs.bat


Configuring Apache/2.2.17 mod_perl/2.0.5 Perl/v5.12.3
Writing Makefile for Apache2::Reload
Writing Makefile for Apache2::SizeLimit
Subroutine MY::postamble redefined at ./Makefile.PL line 149.
Subroutine MY::test redefined at ./Makefile.PL line 168.
Subroutine MY::constants redefined at ./Makefile.PL line 188.
[   info] generating script t/TEST
[   info] generating script ./t/cgi-bin/cookies.pl
[   info] generating script ./t/cgi-bin/next_available_port.pl
Writing Makefile for Apache::Test
Checking for File::Spec...ok
Checking for Cwd...ok
[   info] generating script t/TEST
Writing Makefile for ModPerl::Registry
Writing Makefile for APR::Base64
Writing Makefile for APR::Brigade
Writing Makefile for APR::Bucket
Writing Makefile for APR::BucketAlloc
Writing Makefile for APR::BucketType
Writing Makefile for APR::Date
Writing Makefile for APR::Error
Writing Makefile for APR::Finfo
Writing Makefile for APR::IpSubnet
Writing Makefile for APR::OS
Writing Makefile for APR::Pool
Writing Makefile for APR::SockAddr
Writing Makefile for APR::Socket
Writing Makefile for APR::Status
Writing Makefile for APR::String
Writing Makefile for APR::Table
Writing Makefile for APR::ThreadMutex
Writing Makefile for APR::ThreadRWLock
Writing Makefile for APR::URI
Writing Makefile for APR::UUID
Writing Makefile for APR::Util
Writing Makefile for APR
Writing Makefile for Apache2::Access
Writing Makefile for Apache2::CmdParms
Writing Makefile for Apache2::Command
Writing Makefile for Apache2::Connection
Writing Makefile for Apache2::ConnectionUtil
Writing Makefile for Apache2::Directive
Writing Makefile for Apache2::Filter
Writing Makefile for Apache2::FilterRec
Writing Makefile for Apache2::HookRun
Writing Makefile for Apache2::Log
Writing Makefile for Apache2::MPM
Writing Makefile for Apache2::Module
Writing Makefile for Apache2::Process
Writing Makefile for Apache2::RequestIO
Writing Makefile for Apache2::RequestRec
Writing Makefile for Apache2::RequestUtil
Writing Makefile for Apache2::Response
Writing Makefile for Apache2::ServerRec
Writing Makefile for Apache2::ServerUtil
Writing Makefile for Apache2::SubProcess
Writing Makefile for Apache2::SubRequest
Writing Makefile for Apache2::URI
Writing Makefile for Apache2::Util
Writing Makefile for Apache2
Writing Makefile for ModPerl::Global
Writing Makefile for ModPerl::Util
Writing Makefile for ModPerl
Writing Makefile for ModPerl::WrapXS
Note (probably harmless): No library found for -llibaprutil-1
Note (probably harmless): No library found for -llibapr-1
Writing Makefile for APR
Writing Makefile for APR::Const
Writing Makefile for APR::PerlIO
Writing Makefile for libaprext
Writing Makefile for APR_build
Writing Makefile for Apache2::Const
Writing Makefile for Apache2_build
Writing Makefile for ModPerl::Const
Writing Makefile for ModPerl
Writing Makefile for ModPerl::XS
Writing Makefile for mod_perl2
[warning] mod_perl dso library will be built as mod_perl.so
[warning] You'll need to add the following to httpd.conf:
[warning]
[warning]   LoadModule perl_module modules/mod_perl.so
[warning]
[warning] depending on your build, mod_perl might not live in
[warning] the modules/ directory.

[warning] Check the results of
[warning]
[warning]   $ c:\AMP\Apache2\bin\apxs.bat -q LIBEXECDIR
[warning]
[warning] and adjust the LoadModule directive accordingly.


C:\Users\holblin\Desktop\AMP\mod_perl-2.0.5>
Le problème c'est que je ne retrouve aucun mod_perl.so, ni dans le dossier d’exécution, ni dans celui de perl, ni dans celui de apache

Pour arriver à ce premier résultat ! J'ai du :
- mettre apxs, que j'ai téléchargé depuis :
http://www.apachelounge.com/download/ (bas de page)

* autre test déjà fait avec ppm :
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
C:\Users\holblin\Desktop\AMP\mod_perl-2.0.5>ppm install http://theoryx5.uwinnipeg.ca/ppms/mod_perl-2.0.ppd
ppm install failed: The PPD does not provide code to install for this platform

C:\Users\holblin\Desktop\AMP\mod_perl-2.0.5>ppm install mod_perl
ppm install failed: Can't find any package that provides mod_perl

C:\Users\holblin\Desktop\AMP\mod_perl-2.0.5>ppm install mod_perl-2.0
ppm install failed: Can't find any package that provides mod_perl-2.0

C:\Users\holblin\Desktop\AMP\mod_perl-2.0.5>ppm rep
┌────┬───────┬────────────────────────────────┐
│ id │ pkgs  │ name                           │
├────┼───────┼────────────────────────────────┤
│  1 │ 13106 │ ActiveState Package Repository │
│  2 │     0 │ theoryx                        │
│  3 │     0 │ theoryx                        │
└────┴───────┴────────────────────────────────┘
 (3 enabled repositories)
* J'ai aussi essayé toutes les commandes ici : http://www.developpez.net/forums/d55...-2-windows-xp/

Merci merci merci de votre aide !

ps: j'espère que je ne me suis pas trompé de section pour poster
holblin est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 01/03/2011, 12h05   #2
Invité de passage
 
Inscription : mars 2011
Messages : 3
Détails du profil
Informations forums :
Inscription : mars 2011
Messages : 3
Points : 1
Points : 1
Je me répond à moi même !

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
C:\Users\holblin\Desktop\AMP\mod_perl-2.0.5>ppm rep add http://cpan.uwinnipeg.ca/PPMPackages/12xx
Downloading cpan.uwinnipeg.ca packlist...done
Updating cpan.uwinnipeg.ca database...done
Downloading cpan.uwinnipeg.ca packlist...done
Updating cpan.uwinnipeg.ca database...done
Repo 5 added.

C:\Users\holblin\Desktop\AMP\mod_perl-2.0.5>ppm install mod_perl-2.0
ppm install failed: Can't find any package that provides mod_perl-2.0

C:\Users\holblin\Desktop\AMP\mod_perl-2.0.5>ppm install mod_perl
Downloading mod_perl-2.000004...done
Unpacking mod_perl-2.000004...done
Generating HTML for mod_perl-2.000004...done
Updating files in site area...done
Downloading mod_perl-2.000004 install script...done
Running mod_perl-2.000004 install script...Set up gcc environment - 3.4.5 (mingw-vista special r3)

The Apache2 module mod_perl.so is needed to complete the installation,
and should be placed in your Apache2 modules directory. I will
now fetch and install this for you.

Fetching http://cpan.uwinnipeg.ca/PPMPackages/12xx/x86/mod_perl.so ...  done!
Where should mod_perl.so be placed? [D:/Apache2.2/modules] c:/AMP/Apache2/modules
mod_perl.so has been successfully installed to c:/AMP/Apache2/modules.
To enable mod_perl, put in the directives
   LoadFile "C:/Path/to/Perl/bin/perl510.dll"
   LoadModule perl_module modules/mod_perl.so
in httpd.conf. For more information, visit
   http://perl.apache.org/
and especially see
   http://perl.apache.org/docs/2.0/rename.html

done
 419 files installed

C:\Users\holblin\Desktop\AMP\mod_perl-2.0.5>ppm rep
┌────┬───────┬────────────────────────────────┐
│ id │ pkgs  │ name                           │
├────┼───────┼────────────────────────────────┤
│  1 │ 13106 │ ActiveState Package Repository │
│  2 │     0 │ theoryx                        │
│  3 │     0 │ theoryx                        │
│  4 │     0 │ cpan.uwinnipeg.ca              │
│  5 │     8 │ cpan.uwinnipeg.ca              │
└────┴───────┴────────────────────────────────┘
 (5 enabled repositories)

C:\Users\holblin\Desktop\AMP\mod_perl-2.0.5>
Un petite explication maintenant !


Code :
ppm rep add http://cpan.uwinnipeg.ca/PPMPackages/12xx
Voilà la commande qui permet d'ajouter un repo pour Win32 et ActivePerl builds 12xx, based on perl-5.12.

Donc en fait il faut mettre le bon repo de sa version !
La liste des repo <=> version se trouve directement à l'url du repo (ex : http://cpan.uwinnipeg.ca/PPMPackages/12xx )

Voilà !

Après tout est passé tout seul :-)
holblin est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 14h39.


 
 
 
 
Partenaires

Hébergement Web