You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by DH <cr...@yahoo.com> on 2003/01/11 16:40:46 UTC
Apache cannot load ...mod_perl.so .. module could not be found -- but it's there!
I just got
mod_perl-1.99_08
and compiled it, and the test ran mostly fine
( results should show up at http://testers.cpan.org/search?request=dist&dist=mod_perl soon)
When I try to
LoadModule perl_module modules/mod_perl.so
Apache keeps barking
Cannot load C:/Apache2/Apache2/modules/mod_perl.so into server: The specified module could not be
found.
but the mod_perl.so is there.
All the other modules load fine.
I don't know what to make of this.
See for yourselves.
C:\Apache2\Apache2\bin>perl -V
Summary of my perl5 (revision 5 version 6 subversion 1) configuration:
Platform:
osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
usethreads=undef use5005threads=undef useithreads=define usemultiplicity=define
useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
Compiler:
cc='cl', ccflags ='-nologo -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT
-DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SY
S -DPERL_MSVCRT_READFIX',
optimize='-O1 -MD -DNDEBUG',
cppflags='-DWIN32'
ccversion='', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4
alignbytes=8, usemymalloc=n, prototype=define
Linker and Libraries:
ld='link', ldflags ='-nologo -nodefaultlib -release -libpath:"C:/Perl\lib\CORE"
-machine:x86'
libpth="C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib" "C:\Program Files\Microsoft
Visual Studio\VC98\lib" "C:\Perl\lib\CORE"
libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib
shell32.lib ole32.lib oleaut32.lib netapi
32.lib uuid.lib wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib
perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
advapi32.lib shell32.lib ole32.lib oleaut32.lib ne
tapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib
libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl56.lib
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -release -libpath:"C:/Perl\lib\CORE"
-machine:x86'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
Locally applied patches:
ActivePerl Build 633
Built under MSWin32
Compiled at Jun 17 2002 21:33:05
@INC:
C:/Perl/lib
C:/Perl/site/lib
.
C:\Apache2\Apache2\bin>apache -V
Server version: Apache/2.0.43
Server built: Oct 3 2002 05:57:04
Server's Module Magic Number: 20020903:0
Architecture: 32-bit
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/winnt"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT="/apache"
-D SUEXEC_BIN="/apache/bin/suexec"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error.log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
C:\Apache2\Apache2\bin>apache -k start
Syntax error on line 977 of C:/Apache2/Apache2/conf/httpd.conf:
Cannot load C:/Apache2/Apache2/modules/mod_perl.so into server: The specified module could not be
found.
C:\Apache2\Apache2\bin>dir C:\apache2\apache2\modules\*perl*
Volume in drive C is CRAP
Volume Serial Number is 3410-8AA3
Directory of C:\apache2\apache2\modules
01/11/2003 06:12a 98,304 mod_perl.so
1 File(s) 98,304 bytes
0 Dir(s) 2,369,587,712 bytes free
C:\Apache2\Apache2\bin>
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: Apache cannot load ...mod_perl.so .. module could not be found
-- but it's there!
Posted by Stas Bekman <st...@stason.org>.
Randy Kobes wrote:
> On Sat, 11 Jan 2003, DH wrote:
>
>
>>I just got
>>mod_perl-1.99_08
>>and compiled it, and the test ran mostly fine
>>( results should show up at http://testers.cpan.org/search?request=dist&dist=mod_perl soon)
>
>
> I saw that - the t/modperl/sameinterp.t failure I sometimes see
> as well ... If you run the test as
> perl -Mblib t/TEST t/modperl/sameinterp.t
> does it run OK?
Since the same interpreter mechanism is really trying to get the same
Perl interpreter so it can verify closures and similar things, it's
possible that it may fail sometimes to pick one. Currently it tries 50
times and gives up if still not found. Should we use a different number
of tries, or does win32 deterministically serves the unwanted
interpreter all the time?
You can try to debug using the following patch. The output goes to the
client's concole rather than error_log.
Index: Apache-Test/lib/Apache/TestRequest.pm
===================================================================
RCS file:
/home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestRequest.pm,v
retrieving revision 1.73
diff -u -r1.73 TestRequest.pm
--- Apache-Test/lib/Apache/TestRequest.pm 6 Nov 2002 12:28:09
-0000 1.73
+++ Apache-Test/lib/Apache/TestRequest.pm 12 Jan 2003 01:29:22 -0000
@@ -480,6 +480,7 @@
if ($res and $res->code == 200) {
$found_same_interp = $res->header(INTERP_KEY) || '';
+ warn "Int: $found_same_interp\n";
}
unless ($found_same_interp eq $same_interp) {
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: Apache cannot load ...mod_perl.so .. module could not be found -- but it's there!
Posted by DH <cr...@yahoo.com>.
Thanks man. LoadFile did the trick.
I never ran into this before, and should have consulted the faq.
--- Randy Kobes <ra...@theoryx5.uwinnipeg.ca> wrote:
> On Sat, 11 Jan 2003, DH wrote:
>
> > I just got
> > mod_perl-1.99_08
> > and compiled it, and the test ran mostly fine
> > ( results should show up at http://testers.cpan.org/search?request=dist&dist=mod_perl soon)
>
> I saw that - the t/modperl/sameinterp.t failure I sometimes see
> as well ... If you run the test as
> perl -Mblib t/TEST t/modperl/sameinterp.t
> does it run OK?
>
> > When I try to
> >
> > LoadModule perl_module modules/mod_perl.so
> >
> > Apache keeps barking
> >
> > Cannot load C:/Apache2/Apache2/modules/mod_perl.so into server:
> > The specified module could not be found.
> >
> > but the mod_perl.so is there.
>
> Since the tests ran (mostly) OK, this sounds like a configuration
> issue. Is the C:/Apache2/Apache2/modules/mod_perl.so that from
> the build? If so, is "C:/Perl/bin" in your PATH? Does inserting a
> directive
> LoadFile "C:/Perl/bin/perl56.dll"
> before loading mod_perl.so help?
>
> --
> best regards,
> randy kobes
>
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: Apache cannot load ...mod_perl.so .. module could not be found -- but it's there!
Posted by DH <cr...@yahoo.com>.
>
> I saw that - the t/modperl/sameinterp.t failure I sometimes see
> as well ... If you run the test as
> perl -Mblib t/TEST t/modperl/sameinterp.t
> does it run OK?
yes
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: Apache cannot load ...mod_perl.so .. module could not be found
-- but it's there!
Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Sat, 11 Jan 2003, DH wrote:
> I just got
> mod_perl-1.99_08
> and compiled it, and the test ran mostly fine
> ( results should show up at http://testers.cpan.org/search?request=dist&dist=mod_perl soon)
I saw that - the t/modperl/sameinterp.t failure I sometimes see
as well ... If you run the test as
perl -Mblib t/TEST t/modperl/sameinterp.t
does it run OK?
> When I try to
>
> LoadModule perl_module modules/mod_perl.so
>
> Apache keeps barking
>
> Cannot load C:/Apache2/Apache2/modules/mod_perl.so into server:
> The specified module could not be found.
>
> but the mod_perl.so is there.
Since the tests ran (mostly) OK, this sounds like a configuration
issue. Is the C:/Apache2/Apache2/modules/mod_perl.so that from
the build? If so, is "C:/Perl/bin" in your PATH? Does inserting a
directive
LoadFile "C:/Perl/bin/perl56.dll"
before loading mod_perl.so help?
--
best regards,
randy kobes
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org