You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Davood Firoozian <da...@gmail.com> on 2006/07/31 15:34:04 UTC
Fwd: Install and error Can't locate loadable object for module Apache::Constants
Hia,
I'm installing mod_perl and when i want to use, this message is the answer,
[Mon Jul 31 16:31:04 2006] [error] [client 21.21.21.24] failed to resolve
handler `Apache::SOAP': Can't locate loadable object for module
Apache::Constants in @INC (@INC contains: /usr/lib/perl5 /etc/perl
/usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8
/usr/local/lib/site_perl /usr/local/lib/perl/5.8.7
/usr/local/share/perl/5.8.7 . /etc/apache2) at /usr/lib/perl5/mod_perl.pm
line 14\nCompilation failed in require at /usr/lib/perl5/Apache.pm line
6.\nBEGIN failed--compilation aborted at /usr/lib/perl5/Apache.pm line
6.\nCompilation failed in require at
/usr/local/share/perl/5.8.8/SOAP/Transport/HTTP.pm line 444.\nCompilation
failed in require at (eval 2) line 3.\n
My box is a debian machin I think I have to install mod_perk with
EVERYTHING=1 Sowitch ? maybe ? if true how to do it with dpkg ?
Re: Fwd: Install and error Can't locate loadable object for module
Apache::Constants
Posted by Frank Wiles <fr...@wiles.org>.
On Mon, 31 Jul 2006 18:45:26 +0000
"Davood Firoozian" <da...@gmail.com> wrote:
> I have mod_perl 2 and Apache::Soap but problem persist I think this
> is a bug
>
> http://www.usenetlinux.com/showthread.php?t=175047
>
> My appache version is 2.0 I'm upgrading to 2.2 ...
As mentioned previously, you need to be using Apache2::SOAP and
NOT Apache::SOAP. Apache::SOAP is for Apache 1 only.
---------------------------------
Frank Wiles <fr...@wiles.org>
http://www.wiles.org
---------------------------------
Re: Fwd: Install and error Can't locate loadable object for module
Apache::Constants
Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Tue, 1 Aug 2006, Davood Firoozian wrote:
> CPAN.pm: Going to build R/RK/RKOBES/Apache2-SOAP-0.71.tar.gz
>
> [ info] generating script t/TEST
> Checking if your kit is complete...
> Looks good
> Writing Makefile for Apache2::SOAP
> CPAN: YAML loaded ok
> cp lib/SOAP/Transport/HTTP2.pm blib/lib/SOAP/Transport/HTTP2.pm
> cp lib/Apache2/SOAP.pm blib/lib/Apache2/SOAP.pm
> Manifying blib/man3/Apache2::SOAP.3pm
> /usr/bin/make -- OK
> Running make test
[ ... ]
> APXS (/usr/bin/apxs) query for SBINDIR failed
[ ... ]
> [warning] root mode: changing the files ownership to 'nobody' (65534:65534)
> [warning] testing whether 'nobody' is able to -rwx
>
> [warning] result: OK
> [warning] the client side drops 'root' permissions and becomes 'nobody'
> /usr/sbin/apache -d /root/.cpan/build/Apache2-SOAP-0.71/t -f
> /root/.cpan/build/Apache2-SOAP-0.71/t/conf/httpd.conf -D APACHE2 -D
> PERL_USEITHREADS
> using Apache/2.0.55 (worker MPM)
>
> waiting 60 seconds for server to start: ..
> waiting 60 seconds for server to start: ok (waited 1 secs)
> server common:8529 started
> t/soap/convert....APXS (/usr/bin/apxs) query for SBINDIR failed
> APXS (/usr/bin/apxs) query for SYSCONFDIR failed
[ ... ]
> t/soap/convert....ok 1/11SOAP Fault: 500 Connection reset by peer
> t/soap/convert....NOK 2# Failed test 2 in t/soap/convert.t at line 24
> Can't call method "fault" on an undefined value at t/soap/convert.t line 25.
What does, eg,
/usr/bin/apxs -q PREFIX
report? Does this correspond to the correct prefix for your
server?
Does it make any difference if you unpack, build, and
test the package as an ordinary user (ie, not root)?
What's the result of testing mod_perl itself on your
system?
--
best regards,
Randy
Re: Fwd: Install and error Can't locate loadable object for module Apache::Constants
Posted by Davood Firoozian <da...@gmail.com>.
No,
CPAN.pm: Going to build R/RK/RKOBES/Apache2-SOAP-0.71.tar.gz
[ info] generating script t/TEST
Checking if your kit is complete...
Looks good
Writing Makefile for Apache2::SOAP
CPAN: YAML loaded ok
cp lib/SOAP/Transport/HTTP2.pm blib/lib/SOAP/Transport/HTTP2.pm
cp lib/Apache2/SOAP.pm blib/lib/Apache2/SOAP.pm
Manifying blib/man3/Apache2::SOAP.3pm
/usr/bin/make -- OK
Running make test
/usr/bin/perl -Iblib/arch -Iblib/lib \
t/TEST -clean
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /root/.cpan/build/Apache2-SOAP-0.71/t/TEST
-clean
APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER=
APACHE_TEST_APXS= \
/usr/bin/perl -Iblib/arch -Iblib/lib \
t/TEST -bugreport -verbose=0
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /root/.cpan/build/Apache2-SOAP-0.71/t/TEST
-bugreport -verbose=0
APXS (/usr/bin/apxs) query for SBINDIR failed
APXS (/usr/bin/apxs) query for TARGET failed
APXS (/usr/bin/apxs) query for SYSCONFDIR failed
APXS (/usr/bin/apxs) query for PREFIX failed
APXS (/usr/bin/apxs) query for PREFIX failed
APXS (/usr/bin/apxs) query for PREFIX failed
APXS (/usr/bin/apxs) query for PREFIX failed
APXS (/usr/bin/apxs) query for PREFIX failed
APXS (/usr/bin/apxs) query for PREFIX failed
APXS (/usr/bin/apxs) query for PREFIX failed
APXS (/usr/bin/apxs) query for PREFIX failed
APXS (/usr/bin/apxs) query for PREFIX failed
APXS (/usr/bin/apxs) query for LIBEXECDIR failed
APXS (/usr/bin/apxs) query for LIBEXECDIR failed
APXS (/usr/bin/apxs) query for LIBEXECDIR failed
[warning] root mode: changing the files ownership to 'nobody' (65534:65534)
[warning] testing whether 'nobody' is able to -rwx
/root/.cpan/build/Apache2-SOAP-0.71/t
"/usr/bin/perl" -Mlib=/usr/local/lib/perl/5.8.8 -MApache::TestRun -e 'eval {
Apache::TestRun::run_root_fs_test(65534, 65534, q[/root/.cpan/build/Apache2-
SOAP-0.71/t]) }';
[warning] result: OK
[warning] the client side drops 'root' permissions and becomes 'nobody'
/usr/sbin/apache -d /root/.cpan/build/Apache2-SOAP-0.71/t -f
/root/.cpan/build/Apache2-SOAP-0.71/t/conf/httpd.conf -D APACHE2 -D
PERL_USEITHREADS
using Apache/2.0.55 (worker MPM)
waiting 60 seconds for server to start: ..
waiting 60 seconds for server to start: ok (waited 1 secs)
server common:8529 started
t/soap/convert....APXS (/usr/bin/apxs) query for SBINDIR failed
APXS (/usr/bin/apxs) query for SYSCONFDIR failed
APXS (/usr/bin/apxs) query for PREFIX failed
APXS (/usr/bin/apxs) query for PREFIX failed
APXS (/usr/bin/apxs) query for PREFIX failed
APXS (/usr/bin/apxs) query for PREFIX failed
APXS (/usr/bin/apxs) query for PREFIX failed
APXS (/usr/bin/apxs) query for PREFIX failed
APXS (/usr/bin/apxs) query for PREFIX failed
APXS (/usr/bin/apxs) query for PREFIX failed
APXS (/usr/bin/apxs) query for PREFIX failed
t/soap/convert....ok 1/11SOAP Fault: 500 Connection reset by peer
t/soap/convert....NOK 2# Failed test 2 in t/soap/convert.t at line 24
Can't call method "fault" on an undefined value at t/soap/convert.t line 25.
t/soap/convert....dubious
Test returned status 9 (wstat 2304, 0x900)
DIED. FAILED tests 2-11
Failed 10/11 tests, 9.09% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/soap/convert.t 9 2304 11 19 172.73% 2-11
Failed 1/1 test scripts, 0.00% okay. 10/11 subtests failed, 9.09% okay.
[warning] server common:8529 shutdown
[ error] error running tests (please examine t/logs/error_log)
[ error] oh darn, server dumped core
[ error] for stacktrace, run: gdb /usr/sbin/apache -core
/root/.cpan/build/Apache2-SOAP-0.71/t/core.29123
make: *** [run_tests] Error 1
/usr/bin/make test -- NOT OK
Failed during this command:
RKOBES/Apache2-SOAP-0.71.tar.gz : make_test NO
On 8/1/06, Randy Kobes <ra...@theoryx5.uwinnipeg.ca> wrote:
>
> On Tue, 1 Aug 2006, Davood Firoozian wrote:
>
> > again with this configuration
> > ServerName ozinoserver.ozino.com
> > NameVirtualHost soorenaserver.ozino.com:2000
> > <VirtualHost soorenaserver.ozino.com:2000>
> > <Location / >
> > SetHandler perl-script
> > PerlResponseHandler Apache2::SOAP
> > PerlSetVar dispatch_to
> > "/var/www/soorenaserver.zoino.com/server/, SoorenaServer"
> > </Location>
> > ServerName soorenaserver.ozino.com:2000
> > ServerAdmin davood@ozino.com
> > </VirtualHost>
> >
> > and this call to SoorenaServer:
> >
> > # SOAPsh.pl http://soorenaserver.ozino.com:2000/
> > http://soorenaserver.ozino.com:2000/SoorenaServer
> >
> > every method call fall into a segmentation fault:
> > [Tue Aug 01 14:54:24 2006] [notice] child pid 13674 exit signal
> Segmentation
> > fault (11)
>
> When you installed Apache2-SOAP, did all the tests pass?
>
> --
> best regards,
> Randy
>
--
Kindly Regards
Davood Firoozian
Proud Developer
Ozino Group http://www.ozino.com
Re: Fwd: Install and error Can't locate loadable object for module
Apache::Constants
Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Tue, 1 Aug 2006, Davood Firoozian wrote:
> again with this configuration
> ServerName ozinoserver.ozino.com
> NameVirtualHost soorenaserver.ozino.com:2000
> <VirtualHost soorenaserver.ozino.com:2000>
> <Location / >
> SetHandler perl-script
> PerlResponseHandler Apache2::SOAP
> PerlSetVar dispatch_to
> "/var/www/soorenaserver.zoino.com/server/, SoorenaServer"
> </Location>
> ServerName soorenaserver.ozino.com:2000
> ServerAdmin davood@ozino.com
> </VirtualHost>
>
> and this call to SoorenaServer:
>
> # SOAPsh.pl http://soorenaserver.ozino.com:2000/
> http://soorenaserver.ozino.com:2000/SoorenaServer
>
> every method call fall into a segmentation fault:
> [Tue Aug 01 14:54:24 2006] [notice] child pid 13674 exit signal Segmentation
> fault (11)
When you installed Apache2-SOAP, did all the tests pass?
--
best regards,
Randy
Re: Fwd: Install and error Can't locate loadable object for module Apache::Constants
Posted by Davood Firoozian <da...@gmail.com>.
again with this configuration
ServerName ozinoserver.ozino.com
NameVirtualHost soorenaserver.ozino.com:2000
<VirtualHost soorenaserver.ozino.com:2000>
<Location / >
SetHandler perl-script
PerlResponseHandler Apache2::SOAP
PerlSetVar dispatch_to
"/var/www/soorenaserver.zoino.com/server/, SoorenaServer"
</Location>
ServerName soorenaserver.ozino.com:2000
ServerAdmin davood@ozino.com
</VirtualHost>
and this call to SoorenaServer:
# SOAPsh.pl http://soorenaserver.ozino.com:2000/
http://soorenaserver.ozino.com:2000/SoorenaServer
every method call fall into a segmentation fault:
[Tue Aug 01 14:54:24 2006] [notice] child pid 13674 exit signal Segmentation
fault (11)
On 7/31/06, Randy Kobes <ra...@theoryx5.uwinnipeg.ca> wrote:
>
> On Mon, 31 Jul 2006, Davood Firoozian wrote:
>
> > I have mod_perl 2 and Apache::Soap but problem persist I think this is
> a
> > bug
> >
> > http://www.usenetlinux.com/showthread.php?t=175047
> >
> > My appache version is 2.0 I'm upgrading to 2.2 ...
>
> The problem reported at the above link results from trying
> to use mod_perl-1 with Apache2 - the resolution is to
> install mod_perl-2. And then, as others have pointed
> out, use Apache2-SOAP.
>
> --
> best regards,
> Randy
>
--
Kindly Regards
Davood Firoozian
Proud Developer
Ozino Group http://www.ozino.com
Re: Fwd: Install and error Can't locate loadable object for module Apache::Constants
Posted by Davood Firoozian <da...@gmail.com>.
Thanks a lot, Now everything looks good, but Apache configuration,
I have to install this service on a domain and on a port like 2000 (not 80)
something like http://foo.bar:loo
and I have to dispatch calls to a module in /var/www my configuration does
not work fine please help me if you can
this is my config:
ServerName ozinoserver.ozino.com
NameVirtualHost 21.21.21.40:2000
<VirtualHost 21.21.21.40:2000>
<Location />
SetHandler perl-script
PerlResponseHandler Apache2::SOAP
PerlSetVar dispatch_to
"/var/www/soorenaserver.zoino.com/server/, SoorenaServer"
</Location>
ServerName soorenaserver.ozino.com.soap
ServerAdmin davood@ozino.com
</VirtualHost>
I have a little apache knowledge
--
Kindly Regards
Davood Firoozian
Proud Developer
Ozino Group http://www.ozino.com
On 7/31/06, Randy Kobes <ra...@theoryx5.uwinnipeg.ca> wrote:
>
> On Mon, 31 Jul 2006, Davood Firoozian wrote:
>
> > I have mod_perl 2 and Apache::Soap but problem persist I think this is
> a
> > bug
> >
> > http://www.usenetlinux.com/showthread.php?t=175047
> >
> > My appache version is 2.0 I'm upgrading to 2.2 ...
>
> The problem reported at the above link results from trying
> to use mod_perl-1 with Apache2 - the resolution is to
> install mod_perl-2. And then, as others have pointed
> out, use Apache2-SOAP.
>
> --
> best regards,
> Randy
>
--
Kindly Regards
Davood Firoozian
Proud Developer
Ozino Group http://www.ozino.com
Re: Fwd: Install and error Can't locate loadable object for module
Apache::Constants
Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Mon, 31 Jul 2006, Davood Firoozian wrote:
> I have mod_perl 2 and Apache::Soap but problem persist I think this is a
> bug
>
> http://www.usenetlinux.com/showthread.php?t=175047
>
> My appache version is 2.0 I'm upgrading to 2.2 ...
The problem reported at the above link results from trying
to use mod_perl-1 with Apache2 - the resolution is to
install mod_perl-2. And then, as others have pointed
out, use Apache2-SOAP.
--
best regards,
Randy
Re: Fwd: Install and error Can't locate loadable object for module
Apache::Constants
Posted by Michael Peters <mp...@plusthree.com>.
Davood Firoozian wrote:
> I have mod_perl 2 and Apache::Soap but problem persist
Do you have Apache::SOAP or Apache2::SOAP? Randy suggested Apache2::SOAP.
--
Michael Peters
Developer
Plus Three, LP
Re: Fwd: Install and error Can't locate loadable object for module Apache::Constants
Posted by Davood Firoozian <da...@gmail.com>.
I have mod_perl 2 and Apache::Soap but problem persist I think this is a
bug
http://www.usenetlinux.com/showthread.php?t=175047
My appache version is 2.0 I'm upgrading to 2.2 ...
On 7/31/06, Randy Kobes <ra...@theoryx5.uwinnipeg.ca> wrote:
>
> On Mon, 31 Jul 2006, Davood Firoozian wrote:
>
> > Hia,
> > I'm installing mod_perl and when i want to use, this message is the
> answer,
> >
> > [Mon Jul 31 16:31:04 2006] [error] [client 21.21.21.24] failed to
> resolve
> > handler `Apache::SOAP': Can't locate loadable object for module
> > Apache::Constants in @INC (@INC contains: /usr/lib/perl5 /etc/perl
> > /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5
> > /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8
> > /usr/local/lib/site_perl /usr/local/lib/perl/5.8.7
> > /usr/local/share/perl/5.8.7 . /etc/apache2) at
> /usr/lib/perl5/mod_perl.pm
> > line 14\nCompilation failed in require at /usr/lib/perl5/Apache.pm line
> > 6.\nBEGIN failed--compilation aborted at /usr/lib/perl5/Apache.pm line
> > 6.\nCompilation failed in require at
> > /usr/local/share/perl/5.8.8/SOAP/Transport/HTTP.pm line
> 444.\nCompilation
> > failed in require at (eval 2) line 3.\n
> >
> >
> > My box is a debian machin I think I have to install mod_perk with
> > EVERYTHING=1 Sowitch ? maybe ? if true how to do it with dpkg ?
>
> The presence of /etc/apache2 in @INC suggests you're running
> Apache2 - is that the case? If so, you need to install
> mod_perl-2, and then use Apache2::SOAP:
> http://search.cpan.org/dist/Apache2-SOAP
>
> --
> best regards,
> Randy Kobes
>
Re: Fwd: Install and error Can't locate loadable object for module
Apache::Constants
Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Mon, 31 Jul 2006, Davood Firoozian wrote:
> Hia,
> I'm installing mod_perl and when i want to use, this message is the answer,
>
> [Mon Jul 31 16:31:04 2006] [error] [client 21.21.21.24] failed to resolve
> handler `Apache::SOAP': Can't locate loadable object for module
> Apache::Constants in @INC (@INC contains: /usr/lib/perl5 /etc/perl
> /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5
> /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8
> /usr/local/lib/site_perl /usr/local/lib/perl/5.8.7
> /usr/local/share/perl/5.8.7 . /etc/apache2) at /usr/lib/perl5/mod_perl.pm
> line 14\nCompilation failed in require at /usr/lib/perl5/Apache.pm line
> 6.\nBEGIN failed--compilation aborted at /usr/lib/perl5/Apache.pm line
> 6.\nCompilation failed in require at
> /usr/local/share/perl/5.8.8/SOAP/Transport/HTTP.pm line 444.\nCompilation
> failed in require at (eval 2) line 3.\n
>
>
> My box is a debian machin I think I have to install mod_perk with
> EVERYTHING=1 Sowitch ? maybe ? if true how to do it with dpkg ?
The presence of /etc/apache2 in @INC suggests you're running
Apache2 - is that the case? If so, you need to install
mod_perl-2, and then use Apache2::SOAP:
http://search.cpan.org/dist/Apache2-SOAP
--
best regards,
Randy Kobes