Errors with mod_perl as a DSO

2000-04-04 Thread Drew Degentesh

I have mod perl installed as a DSO. I can confirm this (I think) by:

--
% telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
HEAD / HTTP/1.0

HTTP/1.1 200 OK
Date: Tue, 04 Apr 2000 18:01:21 GMT
Server: Apache/1.3.12 (Unix)  (Red Hat/Linux) PHP/4.0RC1 mod_perl/1.22
Last-Modified: Sat, 18 Mar 2000 14:21:16 GMT
ETag: "c0002-799-38d390dc"
Accept-Ranges: bytes
Content-Length: 1945
Connection: close
Content-Type: text/html

Connection closed by foreign host.
--

Unfortunately, even the simplest of scripts bombs out... Consider:

--
# login.pl
#!/usr/bin/perl
use Apache() || die "cant use apache()";
--

% perl ./login.pl
cant use apache() at ./login.pl line 3.
BEGIN failed--compilation aborted at ./login.pl line 3.
--


Any ideas as to what gives? I know that the defacto answer is to run
mod_perl as a static library..but that's really not an option in my case...

Help is appreciated.

Drew Degentesh
[EMAIL PROTECTED]




Re: Errors with mod_perl as a DSO

2000-04-04 Thread Vivek Khera

 "DD" == Drew Degentesh [EMAIL PROTECTED] writes:

DD Unfortunately, even the simplest of scripts bombs out... Consider:

DD --
DD # login.pl
DD #!/usr/bin/perl
DD use Apache() || die "cant use apache()";
DD --

DD % perl ./login.pl
DD cant use apache() at ./login.pl line 3.
DD BEGIN failed--compilation aborted at ./login.pl line 3.
DD --

You can't use your perl program to run mod_perl programs; you need to
use mod_perl to run them, and that's part of your httpd.