Can't load perl file

2005-06-08 Thread Nick Pietraniec

Hello everyone,

Hoping someone out has experienced this before.  I've poured through 
archives and faqs but haven't seen any info on it.  I just tried 
everything below on a clean server because I thought I messed something 
up during an upgrade, but I'm getting this on more than one computer.


I'm trying to set up apache 2 (2.0.54) on Windows 2000 Server

with SSL (from here -- currently working)
http://smithii.com/?q=node/view/30

The latest version of ActivePerl (5.8.7.813)

and...  mod_perl, which I've installed via the "mpinstall" script here..
http://perl.apache.org/docs/2.0/os/win32/install.html#PPM_Packages

I've got



LoadFile "C:/Perl/bin/perl58.dll"
LoadModule perl_module modules/mod_perl.so

PerlRequire "c:/Apache2/conf/mod_perl.pl"

---

Directly below all the other "LoadModule" directives in httpd.conf
and when I try to start Apache I get

[Wed Jun 08 14:06:16 2005] [error] Can't load Perl file: 
c:/Apache2/conf/mod_perl.pl for server www.mysite.com:80, exiting...


(Yes the file is there)

but - if I instead put in

--

PerlSwitches -IC:/Perl/site/lib/bundle

LoadFile "C:/Perl/bin/perl58.dll"
LoadModule perl_module modules/mod_perl.so

Perlmodule Apache2
PerlModule Apache2::compat



Below all the other "LoadModule" directives, it seems to start fine.
I'm no perl guru - I won't pretend to know how to properly set this up
Does anyone out there see what I'm missing or doing wrong?

Thanks in advance...

-Nick


Re: Can't load perl file

2005-06-08 Thread Tom Schindl

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Nick Pietraniec schrieb:
[...]
| 
|
| LoadFile "C:/Perl/bin/perl58.dll"
~   ^^^
| LoadModule perl_module modules/mod_perl.so
|
| PerlRequire "c:/Apache2/conf/mod_perl.pl"
~  ^^^
|
| ---

Does the lower letter of c: matter. I'm not using win32 which is
normally case in sensitive but who knows ...
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCp2mqkVPeOFLgZFIRAnj8AJ47iAyQq9MWb2YY/DTrbphWfaGdnACcDrmG
MTqOIGg4N7AeCDRxHj9G8d0=
=OlQ+
-END PGP SIGNATURE-


Re: Can't load perl file

2005-06-08 Thread Nick Pietraniec

Not a bad idea, but I just gave it a shot and no luck.


On Jun 8, 2005, at 2:56 PM, Tom Schindl wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Nick Pietraniec schrieb:
[...]
| 
|
| LoadFile "C:/Perl/bin/perl58.dll"
~   ^^^
| LoadModule perl_module modules/mod_perl.so
|
| PerlRequire "c:/Apache2/conf/mod_perl.pl"
~  ^^^
|
| ---

Does the lower letter of c: matter. I'm not using win32 which is
normally case in sensitive but who knows ...
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCp2mqkVPeOFLgZFIRAnj8AJ47iAyQq9MWb2YY/DTrbphWfaGdnACcDrmG
MTqOIGg4N7AeCDRxHj9G8d0=
=OlQ+
-END PGP SIGNATURE-




Re: Can't load perl file

2005-06-08 Thread Nick Pietraniec

Turns out it was an error in the mod_perl.pl file

I took "Can't load" to mean "Where's this file?"  Where I should have 
taken it as "There's an error in this file"



On Jun 8, 2005, at 3:00 PM, Nick Pietraniec wrote:


Not a bad idea, but I just gave it a shot and no luck.


On Jun 8, 2005, at 2:56 PM, Tom Schindl wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Nick Pietraniec schrieb:
[...]
| 
|
| LoadFile "C:/Perl/bin/perl58.dll"
~   ^^^
| LoadModule perl_module modules/mod_perl.so
|
| PerlRequire "c:/Apache2/conf/mod_perl.pl"
~  ^^^
|
| ---

Does the lower letter of c: matter. I'm not using win32 which is
normally case in sensitive but who knows ...
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCp2mqkVPeOFLgZFIRAnj8AJ47iAyQq9MWb2YY/DTrbphWfaGdnACcDrmG
MTqOIGg4N7AeCDRxHj9G8d0=
=OlQ+
-END PGP SIGNATURE-




Re: Can't load perl file

2005-06-08 Thread Foo Ji-Haw
What is in your mod_perl.pl file? If there is any error returned during 
compilation of the script, you will get the error you got . Try running 
mod_perl.pl from the command line, if it is possible. A possibility is 
that you forgot to 'use Apache2' in your script.


Nick Pietraniec wrote:


Hello everyone,

Hoping someone out has experienced this before.  I've poured through 
archives and faqs but haven't seen any info on it.  I just tried 
everything below on a clean server because I thought I messed 
something up during an upgrade, but I'm getting this on more than one 
computer.


I'm trying to set up apache 2 (2.0.54) on Windows 2000 Server

with SSL (from here -- currently working)
http://smithii.com/?q=node/view/30

The latest version of ActivePerl (5.8.7.813)

and...  mod_perl, which I've installed via the "mpinstall" script here..
http://perl.apache.org/docs/2.0/os/win32/install.html#PPM_Packages

I've got



LoadFile "C:/Perl/bin/perl58.dll"
LoadModule perl_module modules/mod_perl.so

PerlRequire "c:/Apache2/conf/mod_perl.pl"
---

Directly below all the other "LoadModule" directives in httpd.conf
and when I try to start Apache I get

[Wed Jun 08 14:06:16 2005] [error] Can't load Perl file: 
c:/Apache2/conf/mod_perl.pl for server www.mysite.com:80, exiting...


(Yes the file is there)

but - if I instead put in

--

PerlSwitches -IC:/Perl/site/lib/bundle

LoadFile "C:/Perl/bin/perl58.dll"
LoadModule perl_module modules/mod_perl.so

Perlmodule Apache2
PerlModule Apache2::compat


Below all the other "LoadModule" directives, it seems to start fine.
I'm no perl guru - I won't pretend to know how to properly set this up
Does anyone out there see what I'm missing or doing wrong?

Thanks in advance...

-Nick



Re: Can't load perl file

2005-06-08 Thread Foo Ji-Haw
Yes. When it fails to compile, it returns exactly that 'Can't load...' 
message.


Nick Pietraniec wrote:


Turns out it was an error in the mod_perl.pl file

I took "Can't load" to mean "Where's this file?"  Where I should have 
taken it as "There's an error in this file"



On Jun 8, 2005, at 3:00 PM, Nick Pietraniec wrote:


Not a bad idea, but I just gave it a shot and no luck.


On Jun 8, 2005, at 2:56 PM, Tom Schindl wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Nick Pietraniec schrieb:
[...]
| 
|
| LoadFile "C:/Perl/bin/perl58.dll"
~   ^^^
| LoadModule perl_module modules/mod_perl.so
|
| PerlRequire "c:/Apache2/conf/mod_perl.pl"
~  ^^^
|
| ---

Does the lower letter of c: matter. I'm not using win32 which is
normally case in sensitive but who knows ...
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCp2mqkVPeOFLgZFIRAnj8AJ47iAyQq9MWb2YY/DTrbphWfaGdnACcDrmG
MTqOIGg4N7AeCDRxHj9G8d0=
=OlQ+
-END PGP SIGNATURE-






Re: Can't load perl file

2005-06-09 Thread Robert
"Nick Pietraniec" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Turns out it was an error in the mod_perl.pl file
>
> I took "Can't load" to mean "Where's this file?"  Where I should have 
> taken it as "There's an error in this file"
>

What was the problem? I have that error as well and I used the example from 
the mod_perl site itself.

Robert 





Re: Can't load perl file

2005-06-09 Thread Nick Pietraniec

I had something like

use Apache2
use Apache2::compat ();

before, but I pasted directly what was in the tutorial (below) and it 
worked.
As long as I'm shooting out an email to the list, does anyone know 
offhand exactly what options I need to put in there to run a script 
that I'm moving from a apache1/mod_perl1 config?  That's why I just had 
the compat() option.  I tried running it with the below options 
(thinking that because compat was included that I'd be ok) but it 
failed.


I assume that it depends on what I'm doing exactly in the old script, 
but was wondering if anyone knew of anything special that I needed to 
do offhand.  I haven't done much research yet...


My current .pl file (same as what's given on the net)

use ModPerl::Util ();
use Apache2::RequestRec ();
use Apache2::RequestIO ();
use Apache2::RequestUtil ();
use Apache2::ServerRec ();
use Apache2::ServerUtil ();
use Apache2::Connection ();
use Apache2::Log ();
use Apache2::Const -compile => ':common';
use APR::Const -compile => ':common';
use APR::Table ();
use Apache2::compat ();
use ModPerl::Registry ();
use CGI ();
1;


On Jun 9, 2005, at 5:57 AM, Robert wrote:


"Nick Pietraniec" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

Turns out it was an error in the mod_perl.pl file

I took "Can't load" to mean "Where's this file?"  Where I should have
taken it as "There's an error in this file"



What was the problem? I have that error as well and I used the example 
from

the mod_perl site itself.

Robert






Re: Can't load perl file

2005-06-10 Thread Nick Pietraniec
Yea, I've got to give it a shot next week.  I'm still not very  
familiar with the whole mod_perl universe.  The script does simply  
the same thing (can't load) is there any way to increase the  
verbosity?  Error log entries seem pretty vague even on debug


-Nick

On Jun 10, 2005, at 12:38 AM, Tom Schindl wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Well without an error message and the at least the lines of code  
fail we

cann't be much of help  ;-)

Tom

Nick Pietraniec schrieb:
| I had something like
|
| use Apache2
| use Apache2::compat ();
|
| before, but I pasted directly what was in the tutorial (below)  
and it

| worked.
| As long as I'm shooting out an email to the list, does anyone know
| offhand exactly what options I need to put in there to run a  
script that
| I'm moving from a apache1/mod_perl1 config?  That's why I just  
had the
| compat() option.  I tried running it with the below options  
(thinking

| that because compat was included that I'd be ok) but it failed.
|
| I assume that it depends on what I'm doing exactly in the old  
script,
| but was wondering if anyone knew of anything special that I  
needed to do

| offhand.  I haven't done much research yet...
|
| My current .pl file (same as what's given on the net)
|
| use ModPerl::Util ();
| use Apache2::RequestRec ();
| use Apache2::RequestIO ();
| use Apache2::RequestUtil ();
| use Apache2::ServerRec ();
| use Apache2::ServerUtil ();
| use Apache2::Connection ();
| use Apache2::Log ();
| use Apache2::Const -compile => ':common';
| use APR::Const -compile => ':common';
| use APR::Table ();
| use Apache2::compat ();
| use ModPerl::Registry ();
| use CGI ();
| 1;
|
|
| On Jun 9, 2005, at 5:57 AM, Robert wrote:
|
|> "Nick Pietraniec" <[EMAIL PROTECTED]> wrote in message
|> news:[EMAIL PROTECTED]
|>
|>> Turns out it was an error in the mod_perl.pl file
|>>
|>> I took "Can't load" to mean "Where's this file?"  Where I  
should have

|>> taken it as "There's an error in this file"
|>>
|>
|> What was the problem? I have that error as well and I used the  
example

|> from
|> the mod_perl site itself.
|>
|> Robert
|>
|>
|
|

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCqUOFkVPeOFLgZFIRAhbDAJ41zN8Rl6SZHkK0BJyOnwHAnvaNQwCeIpWO
9Paxzt0Wx7T6tnMlYz967Ho=
=JySO
-END PGP SIGNATURE-





Re: Can't load perl file

2005-06-10 Thread Tom Schindl

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Well without an error message and the at least the lines of code fail we
cann't be much of help  ;-)

Tom

Nick Pietraniec schrieb:
| I had something like
|
| use Apache2
| use Apache2::compat ();
|
| before, but I pasted directly what was in the tutorial (below) and it
| worked.
| As long as I'm shooting out an email to the list, does anyone know
| offhand exactly what options I need to put in there to run a script that
| I'm moving from a apache1/mod_perl1 config?  That's why I just had the
| compat() option.  I tried running it with the below options (thinking
| that because compat was included that I'd be ok) but it failed.
|
| I assume that it depends on what I'm doing exactly in the old script,
| but was wondering if anyone knew of anything special that I needed to do
| offhand.  I haven't done much research yet...
|
| My current .pl file (same as what's given on the net)
|
| use ModPerl::Util ();
| use Apache2::RequestRec ();
| use Apache2::RequestIO ();
| use Apache2::RequestUtil ();
| use Apache2::ServerRec ();
| use Apache2::ServerUtil ();
| use Apache2::Connection ();
| use Apache2::Log ();
| use Apache2::Const -compile => ':common';
| use APR::Const -compile => ':common';
| use APR::Table ();
| use Apache2::compat ();
| use ModPerl::Registry ();
| use CGI ();
| 1;
|
|
| On Jun 9, 2005, at 5:57 AM, Robert wrote:
|
|> "Nick Pietraniec" <[EMAIL PROTECTED]> wrote in message
|> news:[EMAIL PROTECTED]
|>
|>> Turns out it was an error in the mod_perl.pl file
|>>
|>> I took "Can't load" to mean "Where's this file?"  Where I should have
|>> taken it as "There's an error in this file"
|>>
|>
|> What was the problem? I have that error as well and I used the example
|> from
|> the mod_perl site itself.
|>
|> Robert
|>
|>
|
|

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCqUOFkVPeOFLgZFIRAhbDAJ41zN8Rl6SZHkK0BJyOnwHAnvaNQwCeIpWO
9Paxzt0Wx7T6tnMlYz967Ho=
=JySO
-END PGP SIGNATURE-


Re: Can't load perl file

2005-06-11 Thread Tom Schindl

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Nick Pietraniec schrieb:
| Yea, I've got to give it a shot next week.  I'm still not very  familiar
| with the whole mod_perl universe.  The script does simply  the same
| thing (can't load) is there any way to increase the  verbosity?  Error
| log entries seem pretty vague even on debug
|
| -Nick

give us the error log lines and the code lines mentioned in there.

tom
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCqqz7kVPeOFLgZFIRAtB8AKCYxEKLrlw0WqoZKLx2aPiLrhcG0QCeJiMs
TAu/Wt4RblJjmB7D+WcqXxU=
=IXlr
-END PGP SIGNATURE-


install Apache::compat? (Was Can't load perl file)

2005-06-13 Thread Nick Pietraniec

I think I've found the problem I was having...

When I try to add

PerlModule Apache2
PerlModule Apache::compat

to my http.conf I get "Can't load perl module for Apache2 for server  
www.blah.com:80 exiting


when I comment out the first line I get

to my http.conf I get "Can't load perl module for Apache::compat for  
server www.blah.com:80 exiting


Do I need to do something extra to get this compat module installed  
on my system?  Everything I'm seeing it kind of giving it as a given  
that it's present.


I've mentioned it before, but

I'm trying to set up apache 2 (2.0.54) on Windows 2000 Server

with SSL (from here -- currently working)
http://smithii.com/?q=node/view/30

The latest version of ActivePerl (5.8.7.813)

and...  mod_perl, which I've installed via the "mpinstall" script here..
http://perl.apache.org/docs/2.0/os/win32/install.html#PPM_Packages


-Nick



On Jun 10, 2005, at 12:38 AM, Tom Schindl wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Well without an error message and the at least the lines of code  
fail we

cann't be much of help  ;-)

Tom

Nick Pietraniec schrieb:
| I had something like
|
| use Apache2
| use Apache2::compat ();
|
| before, but I pasted directly what was in the tutorial (below)  
and it

| worked.
| As long as I'm shooting out an email to the list, does anyone know
| offhand exactly what options I need to put in there to run a  
script that
| I'm moving from a apache1/mod_perl1 config?  That's why I just  
had the
| compat() option.  I tried running it with the below options  
(thinking

| that because compat was included that I'd be ok) but it failed.
|
| I assume that it depends on what I'm doing exactly in the old  
script,
| but was wondering if anyone knew of anything special that I  
needed to do

| offhand.  I haven't done much research yet...
|
| My current .pl file (same as what's given on the net)
|
| use ModPerl::Util ();
| use Apache2::RequestRec ();
| use Apache2::RequestIO ();
| use Apache2::RequestUtil ();
| use Apache2::ServerRec ();
| use Apache2::ServerUtil ();
| use Apache2::Connection ();
| use Apache2::Log ();
| use Apache2::Const -compile => ':common';
| use APR::Const -compile => ':common';
| use APR::Table ();
| use Apache2::compat ();
| use ModPerl::Registry ();
| use CGI ();
| 1;
|
|
| On Jun 9, 2005, at 5:57 AM, Robert wrote:
|
|> "Nick Pietraniec" <[EMAIL PROTECTED]> wrote in message
|> news:[EMAIL PROTECTED]
|>
|>> Turns out it was an error in the mod_perl.pl file
|>>
|>> I took "Can't load" to mean "Where's this file?"  Where I  
should have

|>> taken it as "There's an error in this file"
|>>
|>
|> What was the problem? I have that error as well and I used the  
example

|> from
|> the mod_perl site itself.
|>
|> Robert
|>
|>
|
|

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCqUOFkVPeOFLgZFIRAhbDAJ41zN8Rl6SZHkK0BJyOnwHAnvaNQwCeIpWO
9Paxzt0Wx7T6tnMlYz967Ho=
=JySO
-END PGP SIGNATURE-





RE: install Apache::compat? (Was Can't load perl file)

2005-06-13 Thread Steve Duran

  Try Apache2::compat


-Original Message-
From: Nick Pietraniec [mailto:[EMAIL PROTECTED]
Sent: Monday, June 13, 2005 1:29 PM
To: modperl@perl.apache.org
Subject: install Apache::compat? (Was Can't load perl file)


I think I've found the problem I was having...

When I try to add

PerlModule Apache2
PerlModule Apache::compat

to my http.conf I get "Can't load perl module for Apache2 for server
www.blah.com:80 exiting

when I comment out the first line I get

to my http.conf I get "Can't load perl module for Apache::compat for
server www.blah.com:80 exiting

Do I need to do something extra to get this compat module installed
on my system?  Everything I'm seeing it kind of giving it as a given
that it's present.

I've mentioned it before, but

I'm trying to set up apache 2 (2.0.54) on Windows 2000 Server

with SSL (from here -- currently working) http://smithii.com/?q=node/view/30

The latest version of ActivePerl (5.8.7.813)

and...  mod_perl, which I've installed via the "mpinstall" script here.. 
http://perl.apache.org/docs/2.0/os/win32/install.html#PPM_Packages


-Nick



On Jun 10, 2005, at 12:38 AM, Tom Schindl wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Well without an error message and the at least the lines of code
> fail we
> cann't be much of help  ;-)
>
> Tom
>
> Nick Pietraniec schrieb:
> | I had something like
> |
> | use Apache2
> | use Apache2::compat ();
> |
> | before, but I pasted directly what was in the tutorial (below)
> and it
> | worked.
> | As long as I'm shooting out an email to the list, does anyone know
> | offhand exactly what options I need to put in there to run a
> script that
> | I'm moving from a apache1/mod_perl1 config?  That's why I just
> had the
> | compat() option.  I tried running it with the below options
> (thinking
> | that because compat was included that I'd be ok) but it failed.
> |
> | I assume that it depends on what I'm doing exactly in the old
> script,
> | but was wondering if anyone knew of anything special that I
> needed to do
> | offhand.  I haven't done much research yet...
> |
> | My current .pl file (same as what's given on the net)
> |
> | use ModPerl::Util ();
> | use Apache2::RequestRec ();
> | use Apache2::RequestIO ();
> | use Apache2::RequestUtil ();
> | use Apache2::ServerRec ();
> | use Apache2::ServerUtil ();
> | use Apache2::Connection ();
> | use Apache2::Log ();
> | use Apache2::Const -compile => ':common';
> | use APR::Const -compile => ':common';
> | use APR::Table ();
> | use Apache2::compat ();
> | use ModPerl::Registry ();
> | use CGI ();
> | 1;
> |
> |
> | On Jun 9, 2005, at 5:57 AM, Robert wrote:
> |
> |> "Nick Pietraniec" <[EMAIL PROTECTED]> wrote in message
> |> news:[EMAIL PROTECTED]
> |>
> |>> Turns out it was an error in the mod_perl.pl file
> |>>
> |>> I took "Can't load" to mean "Where's this file?"  Where I
> should have
> |>> taken it as "There's an error in this file"
> |>>
> |>
> |> What was the problem? I have that error as well and I used the
> example
> |> from
> |> the mod_perl site itself.
> |>
> |> Robert
> |>
> |>
> |
> |
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.0 (GNU/Liux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFCqUOFkVPeOFLgZFIRAhbDAJ41zN8Rl6SZHkK0BJyOnwHAnvaNQwCeIpWO
> 9Paxzt0Wx7T6tnMlYz967Ho=
> =JySO
> -END PGP SIGNATURE-
>



Re: install Apache::compat? (Was Can't load perl file)

2005-06-13 Thread Nick Pietraniec
Thanks, that was it...   Stupid mistake, but there seems to be some  
conflicting docs out there.


I'm trying to get a mod_perl1 module running on mod_perl2 and I seem  
to be having some difficulty.
The logs are simply throwing "Can't load Perl file: c:/apache2/conf/ 
mod_perl.pl for server www.foo.com:80, exiting..."


and it's making it very difficult to see exactly where things are  
dying.  Is my lack of verbosity because I'm in windows?


If I put
PerlModule Apache::garbage
in my httpd.conf I get

can't load perl module apache::garbage for server www.foo.com:80  
exiting...


but if I put it in a startup script

PerlRequire "C:/blah/startup.pl"

I get "Can't load perl file: C:/blah startup.pl for server  
www.foo.com:80 exiting...


basically i'm loading this module which uses a pm file and I'm  
getting no info on why things aren't working...   Just that they aren't


Sorry for the newbie question, everything i've found says that things  
should work if you include the compat option and there's not a lot to  
tell you what to do when it doesn't just work :)


-Nick

On Jun 13, 2005, at 12:34 PM, Steve Duran wrote:



  Try Apache2::compat


-Original Message-
From: Nick Pietraniec [mailto:[EMAIL PROTECTED]
Sent: Monday, June 13, 2005 1:29 PM
To: modperl@perl.apache.org
Subject: install Apache::compat? (Was Can't load perl file)


I think I've found the problem I was having...

When I try to add

PerlModule Apache2
PerlModule Apache::compat

to my http.conf I get "Can't load perl module for Apache2 for server
www.blah.com:80 exiting

when I comment out the first line I get

to my http.conf I get "Can't load perl module for Apache::compat for
server www.blah.com:80 exiting

Do I need to do something extra to get this compat module installed
on my system?  Everything I'm seeing it kind of giving it as a given
that it's present.

I've mentioned it before, but

I'm trying to set up apache 2 (2.0.54) on Windows 2000 Server

with SSL (from here -- currently working) http://smithii.com/? 
q=node/view/30


The latest version of ActivePerl (5.8.7.813)

and...  mod_perl, which I've installed via the "mpinstall" script  
here.. http://perl.apache.org/docs/2.0/os/win32/ 
install.html#PPM_Packages



-Nick



On Jun 10, 2005, at 12:38 AM, Tom Schindl wrote:



-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Well without an error message and the at least the lines of code
fail we
cann't be much of help  ;-)

Tom

Nick Pietraniec schrieb:
| I had something like
|
| use Apache2
| use Apache2::compat ();
|
| before, but I pasted directly what was in the tutorial (below)
and it
| worked.
| As long as I'm shooting out an email to the list, does anyone know
| offhand exactly what options I need to put in there to run a
script that
| I'm moving from a apache1/mod_perl1 config?  That's why I just
had the
| compat() option.  I tried running it with the below options
(thinking
| that because compat was included that I'd be ok) but it failed.
|
| I assume that it depends on what I'm doing exactly in the old
script,
| but was wondering if anyone knew of anything special that I
needed to do
| offhand.  I haven't done much research yet...
|
| My current .pl file (same as what's given on the net)
|
| use ModPerl::Util ();
| use Apache2::RequestRec ();
| use Apache2::RequestIO ();
| use Apache2::RequestUtil ();
| use Apache2::ServerRec ();
| use Apache2::ServerUtil ();
| use Apache2::Connection ();
| use Apache2::Log ();
| use Apache2::Const -compile => ':common';
| use APR::Const -compile => ':common';
| use APR::Table ();
| use Apache2::compat ();
| use ModPerl::Registry ();
| use CGI ();
| 1;
|
|
| On Jun 9, 2005, at 5:57 AM, Robert wrote:
|
|> "Nick Pietraniec" <[EMAIL PROTECTED]> wrote in message
|> news:[EMAIL PROTECTED]
|>
|>> Turns out it was an error in the mod_perl.pl file
|>>
|>> I took "Can't load" to mean "Where's this file?"  Where I
should have
|>> taken it as "There's an error in this file"
|>>
|>
|> What was the problem? I have that error as well and I used the
example
|> from
|> the mod_perl site itself.
|>
|> Robert
|>
|>
|
|

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Liux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCqUOFkVPeOFLgZFIRAhbDAJ41zN8Rl6SZHkK0BJyOnwHAnvaNQwCeIpWO
9Paxzt0Wx7T6tnMlYz967Ho=
=JySO
-END PGP SIGNATURE-









Re: install Apache::compat? (Was Can't load perl file)

2005-06-13 Thread Randy Kobes
On Mon, 13 Jun 2005, Nick Pietraniec wrote:

> Thanks, that was it...   Stupid mistake, but there seems to be some
> conflicting docs out there.
>
> I'm trying to get a mod_perl1 module running on mod_perl2 and I seem
> to be having some difficulty.
> The logs are simply throwing "Can't load Perl file: c:/apache2/conf/
> mod_perl.pl for server www.foo.com:80, exiting..."
>
> and it's making it very difficult to see exactly where things are
> dying.  Is my lack of verbosity because I'm in windows?
>
> If I put
> PerlModule Apache::garbage
> in my httpd.conf I get
>
> can't load perl module apache::garbage for server www.foo.com:80
> exiting...
>
> but if I put it in a startup script
>
> PerlRequire "C:/blah/startup.pl"
>
> I get "Can't load perl file: C:/blah startup.pl for server
> www.foo.com:80 exiting...
>
> basically i'm loading this module which uses a pm file and I'm
> getting no info on why things aren't working...   Just that they aren't
>
> Sorry for the newbie question, everything i've found says that things
> should work if you include the compat option and there's not a lot to
> tell you what to do when it doesn't just work :)

There's a couple of things you could try to narrow down
the problem:

- do the modules that don't require a mod_perl
environment pass a compile check (perl -c Mod.pm)?

- try starting with an empty startup file and incrementally
add one module after another until the server fails to
start.

- once you've narrowed down the culprit(s), if it's not
apparent what the problem is, try paring it down to a
minimal case and ask here. One thing you should verify
is that the renaming issues discussed at
   http://perl.apache.org/docs/2.0/rename.html
have been addressed.

-- 
best regards,
randy kobes