kulls has asked for the wisdom of the Perl Monks concerning the following question:

Greetings,
I'm trying to configure mod_perl with Apache and windows xp.As i'm very knew to mod_perl installation as well as windows environment, can anyone help me to do the successfull installation. Here my environment,
perl version : 5.8.7
Apache : 2.0
mod_perl : 2.0
I have tried with this url to installing mod_perl in windows.
I ran through the command which is mentioned there
C:\modperl_src> perl Makefile.PL MP_AP_PREFIX=\Path\to\Apache2 C:\modperl_src> nmake C:\modperl_src> nmake test C:\modperl_src> nmake install
I have successfull ran through the Makefile.pl command. but, in Xp it shows the error "command not found" while running 'nmake'.
Also they are mentioned that,
" The final command, C:\modperl_src> nmake install will install the necessary mod_perl 2.0 files into your Perl directory tree, and also copy src/modules/perl/mod_perl.so into your /Path/to/Apache2/modules/ directory "
I didn't find any '.so' files in that path.
Are i'm moving to the right direction?. Can anyone help me to continue with successful installation?

Update:

I have successfully installed MSVC in my system. I guess i can able to see all the lib files in my machine.But still i got the error message "Note (probably harmless): No library found for msvcrt.lib" like this. Also, I have downloaded 'nmake' utility.But it's too failed while executing.
C:\HardDisk\source\mod_perl-2.0.2>nmake Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. cd "src/modules/perl" && NMAKE Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. cl -IC:/HardDisk/source/mod_perl-2.0.2/src/modules/perl -IC:/H +ardDisk/s urce/mod_perl-2.0.2/xs -IC:\PROGRA~1\Apache\Apache2/include -nologo -G +f -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DBU +ILT_BY_AC IVESTATE -DNO_HASH_SEED -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -D +PERL_IMPL CIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -I"C:\Perl\lib\CORE" -DMOD_ +PERL -DMP COMPAT_1X -MD -Zi -DNDEBUG -O1 -c mod_perl.c && C:\Perl\bin\perl.exe + -MExtUti s::Command -e mv mod_perl.obj mod_perl.lo 'cl' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code + '0x1' Stop. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code + '0x2' Stop.

If these lib files are mandatory, why not it's coming along with mod_perl module itself ?. Why should i go for MSVC ?
Can anyone help me to install successfully ?
-kulls

Replies are listed 'Best First'.
Re: Installing mod_perl 2.0
by Corion (Patriarch) on Jan 16, 2006 at 08:59 UTC

    Usually, it helps us if you show not only the commands you typed, but also the responses you got from typing the commands.

    My guess is that you do not have a suitable C compiler installed for mod_perl, or forgot to start vcvars32.cmd to set up the path and include files.

    ".so files" is unix slang for dynamically loadable libraries. Under Windows, these are called DLLs and have the .dll file extension. If you don't find any of these in your mod_perl build directory, you are likely out of luck and have to install a version of the C compiler that was used to compile your Perl. This likely is Microsoft Visual C++ 6, if you're using an ActiveState build of Perl.

      yes,
      here is my output of initial run
      Writing Makefile for ModPerl::Const Writing Makefile for ModPerl Writing Makefile for ModPerl::XS Writing Makefile for mod_perl2 Note (probably harmless): No library found for oldnames.lib Note (probably harmless): No library found for kernel32.lib Note (probably harmless): No library found for user32.lib Note (probably harmless): No library found for gdi32.lib Note (probably harmless): No library found for winspool.lib Note (probably harmless): No library found for comdlg32.lib Note (probably harmless): No library found for advapi32.lib Note (probably harmless): No library found for shell32.lib Note (probably harmless): No library found for ole32.lib Note (probably harmless): No library found for oleaut32.lib Note (probably harmless): No library found for netapi32.lib Note (probably harmless): No library found for uuid.lib Note (probably harmless): No library found for ws2_32.lib Note (probably harmless): No library found for mpr.lib Note (probably harmless): No library found for winmm.lib Note (probably harmless): No library found for version.lib Note (probably harmless): No library found for odbc32.lib Note (probably harmless): No library found for odbccp32.lib Note (probably harmless): No library found for msvcrt.lib Note (probably harmless): No library found for oldnames.lib Note (probably harmless): No library found for kernel32.lib Note (probably harmless): No library found for user32.lib Note (probably harmless): No library found for gdi32.lib Note (probably harmless): No library found for winspool.lib Note (probably harmless): No library found for comdlg32.lib Note (probably harmless): No library found for advapi32.lib Note (probably harmless): No library found for shell32.lib Note (probably harmless): No library found for ole32.lib Note (probably harmless): No library found for oleaut32.lib Note (probably harmless): No library found for netapi32.lib Note (probably harmless): No library found for uuid.lib Note (probably harmless): No library found for ws2_32.lib Note (probably harmless): No library found for mpr.lib Note (probably harmless): No library found for winmm.lib Note (probably harmless): No library found for version.lib Note (probably harmless): No library found for odbc32.lib Note (probably harmless): No library found for odbccp32.lib Note (probably harmless): No library found for msvcrt.lib [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.

      I'll go through morto suggestion and i'll try once again.
      Thanx for your suggestion too.
      -kulls

        martos guess is quite right. You do seem to have neither nmake.exe nor the MSVC6 package installed, or it is not set up correctly. The lines about the missing libraries mean that Perl could not find those files, and chances are that they are not installed. You are better off downloading a precompiled mod_perl instead of trying to compile it if all you want is mod_perl. If you want to be able to compile and install other Perl extensions with a part written in C, it might be worthwhile to pursue the installation of MSVC.

Re: Installing mod_perl 2.0
by marto (Cardinal) on Jan 16, 2006 at 09:32 UTC
Re: Installing mod_perl 2.0
by inman (Curate) on Jan 16, 2006 at 13:49 UTC
    You may find that PPM is the easiest route for ActiveState Perl, Apache2 and Win XP. I did this recently and got it to work OK. The Installing from PPM Packages section of the documentation explains what to do in detial.

    Add the following to httpd.conf

    # # http://perl.apache.org/docs/2.0/os/win32/install.html LoadFile "C:/perl/bin/perl58.dll" LoadModule perl_module modules/mod_perl.so