CrAzYoNi
October 10th, 2009, 03:34 PM
Hi all,
Introduction:
I'm using:
- Ubuntu Jaunty (9.04) 32 bit.
- Apache 2.2.11
- Perl 5.10.0
* I'm searching for distro updates everyday, so my system should be updated.
- I've got Apache to work for several months now without any problems (I'm running my web site which is based on PHP5.
- I've got Perl working for several months as well, I'm running some monitor scripts, based on Cron, to check my system status.
--------------------------------------------------------------------------
Now I wanted to run some Perl script on my Apache, I've wrote a simple Perl script, "hello world" kind, and name it "hello.pl".
I checked its syntax and it works.
I've installed: sudo apt-get install libapache2-mod-perl2
I've verified that Apache recognize the module: sudo apache2ctl -M
When trying to browse to that page I've got an error, below is the output as it shown in /var/log/apache2/error.log:
[Sat Oct 10 21:20:57 2009] [error] [client 127.0.0.1] failed to resolve handler `Apache::Registry': Can't locate loadable object for module Apache::Constants in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl . /var/www) at /usr/local/lib/perl/5.10.0/mod_perl.pm line 14\nCompilation failed in require at /usr/local/lib/perl/5.10.0/Apache.pm line 6.\nBEGIN failed--compilation aborted at /usr/local/lib/perl/5.10.0/Apache.pm line 6.\nCompilation failed in require at /usr/local/lib/perl/5.10.0/Apache/Registry.pm line 2.\nBEGIN failed--compilation aborted at /usr/local/lib/perl/5.10.0/Apache/Registry.pm line 2.\nCompilation failed in require at (eval 2) line 3.\n
Any ideas how can I solve this issue?
Thanks in advance.
Yours,
Yoni D.
Introduction:
I'm using:
- Ubuntu Jaunty (9.04) 32 bit.
- Apache 2.2.11
- Perl 5.10.0
* I'm searching for distro updates everyday, so my system should be updated.
- I've got Apache to work for several months now without any problems (I'm running my web site which is based on PHP5.
- I've got Perl working for several months as well, I'm running some monitor scripts, based on Cron, to check my system status.
--------------------------------------------------------------------------
Now I wanted to run some Perl script on my Apache, I've wrote a simple Perl script, "hello world" kind, and name it "hello.pl".
I checked its syntax and it works.
I've installed: sudo apt-get install libapache2-mod-perl2
I've verified that Apache recognize the module: sudo apache2ctl -M
When trying to browse to that page I've got an error, below is the output as it shown in /var/log/apache2/error.log:
[Sat Oct 10 21:20:57 2009] [error] [client 127.0.0.1] failed to resolve handler `Apache::Registry': Can't locate loadable object for module Apache::Constants in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl . /var/www) at /usr/local/lib/perl/5.10.0/mod_perl.pm line 14\nCompilation failed in require at /usr/local/lib/perl/5.10.0/Apache.pm line 6.\nBEGIN failed--compilation aborted at /usr/local/lib/perl/5.10.0/Apache.pm line 6.\nCompilation failed in require at /usr/local/lib/perl/5.10.0/Apache/Registry.pm line 2.\nBEGIN failed--compilation aborted at /usr/local/lib/perl/5.10.0/Apache/Registry.pm line 2.\nCompilation failed in require at (eval 2) line 3.\n
Any ideas how can I solve this issue?
Thanks in advance.
Yours,
Yoni D.