代码之家  ›  专栏  ›  技术社区  ›  Kev

草莓Perl和mod_perl2:从CPAN构建Apache2模块

  •  0
  • Kev  · 技术社区  · 14 年前

    instructions on the mod_perl mailing list 没有问题。但是,尝试安装 Apache2:: 我的脚本使用的模块会导致错误。一个( Apache2::Reload )尽管如此,我还是能够安装:

    C:\>cpan -f Apache2::Reload
    CPAN: CPAN::SQLite loaded ok (v0.199)
    Database was generated on Tue, 09 Nov 2010 02:40:29 GMT
    Running install for module 'Apache2::Reload'
    Running make for P/PH/PHRED/Apache-Reload-0.11.tar.gz
    CPAN: Digest::SHA loaded ok (v5.48)
    CPAN: Compress::Zlib loaded ok (v2.03)
    Checksum for C:\strawberry\cpan\sources\authors\id\P\PH\PHRED\Apache-Reload-0.11
    .tar.gz ok
    CPAN: Archive::Tar loaded ok (v1.66)
    CPAN: File::Temp loaded ok (v0.22)
    CPAN: Parse::CPAN::Meta loaded ok (v1.40)
    CPAN: Module::CoreList loaded ok (v2.36)
    
      CPAN.pm: Going to build P/PH/PHRED/Apache-Reload-0.11.tar.gz
    
    Cannot opendir Y:\Apache\APACHE~2\lib: No such file or directory at C:/strawberr
    y/perl/site/lib/Apache2/Build.pm line 1664.
    Warning: No success on command[C:\strawberry\perl\bin\perl.exe Makefile.PL]
    CPAN: YAML loaded ok (v0.71)
      PHRED/Apache-Reload-0.11.tar.gz
      C:\strawberry\perl\bin\perl.exe Makefile.PL -- NOT OK
    Running make test
      Make had some problems, won't test
    Running make install
      Make had some problems, won't install
    
    C:\>
    

    site/lib . 不过,其他的我不太确定。例如, Apache2::RequestRec

    C:\>cpan -f Apache2::RequestRec
    CPAN: CPAN::SQLite loaded ok (v0.199)
    Database was generated on Tue, 09 Nov 2010 02:40:29 GMT
    CPAN: Module::CoreList loaded ok (v2.36)
    Running install for module 'Apache2::RequestRec'
    Running make for G/GO/GOZER/mod_perl-2.0.4.tar.gz
    CPAN: Digest::SHA loaded ok (v5.48)
    CPAN: Compress::Zlib loaded ok (v2.03)
    Checksum for C:\strawberry\cpan\sources\authors\id\G\GO\GOZER\mod_perl-2.0.4.tar
    .gz ok
    CPAN: Archive::Tar loaded ok (v1.66)
    CPAN: File::Temp loaded ok (v0.22)
    CPAN: Parse::CPAN::Meta loaded ok (v1.40)
    
      CPAN.pm: Going to build G/GO/GOZER/mod_perl-2.0.4.tar.gz
    
    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):
    
    
    Please provide the location of the Apache directory:  C:\Program Files\Apache So
    ftware Foundation\Apache2.2
    [  error] Unable to open C:\Program Files\Apache Software Foundation\Apache2.2/a
    p_release.h: No such file or directory
    [  error] Unable to determine server version, aborting.
    [  error] Please specify MP_APXS or MP_AP_PREFIX.
    Warning: No success on command[C:\strawberry\perl\bin\perl.exe Makefile.PL]
    CPAN: YAML loaded ok (v0.71)
      GOZER/mod_perl-2.0.4.tar.gz
      C:\strawberry\perl\bin\perl.exe Makefile.PL -- NOT OK
    Running make test
      Make had some problems, won't test
    Running make install
      Make had some problems, won't install
    
    C:\>
    

    编译有什么诀窍吗 草莓Perl下的模块?我还需要编译自己的Apache二进制文件吗?(如果是的话,我能用草莓提供的制作工具吗?)

    2 回复  |  直到 14 年前
        1
  •  1
  •   J-16 SDiZ    14 年前

    如果从源代码处编译apache,则应该具有apache中的apxs.exe。 PATH . 您需要一些apache源代码 Apache:: 位。

        2
  •  1
  •   Kev    14 年前

    通过这些说明安装实际上安装了 Apache2:: Apache2::Reload .

    推荐文章