Hello susers Second parton the "problem with apache + mod_perl" series :-) I am trying to run websieve, which is a web interface to the any sieve server. I am getting the following message everytime I try to load the websieve URL: ----- cut ----- cut ----- cut ----- Error: Can't locate IMAP/Admin.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i586-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i586-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl .) at ./funclib.pl line 5. BEGIN failed--compilation aborted at ./funclib.pl line 5. Content-type: text/html ----- cut ----- cut ----- cut ----- IMAP::Admin is installed (twice???): montblanc:/ # find / -name Admin.pm /usr/lib/perl5/site_perl/5.6.1/IMAP/Admin.pm /usr/lib/perl5/site_perl/5.6.1/i586-linux/Cyrus/IMAP/Admin.pm montblanc:/ # I am running on a SuSE 8.0 box with Apache, mod_perl and Cyrus Imap server. What I am missing?
On Tue, 1 Oct 2002 19:00:17 +0200
Pep Serrano
Second parton the "problem with apache + mod_perl" series :-)
I am trying to run websieve, which is a web interface to the any sieve server. I am getting the following message everytime I try to load the websieve URL: ----- cut ----- cut ----- cut ----- Error: Can't locate IMAP/Admin.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i586-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i586-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl .) at ./funclib.pl line 5. BEGIN failed--compilation aborted at ./funclib.pl line 5. Content-type: text/html ----- cut ----- cut ----- cut -----
IMAP::Admin is installed (twice???):
montblanc:/ # find / -name Admin.pm /usr/lib/perl5/site_perl/5.6.1/IMAP/Admin.pm /usr/lib/perl5/site_perl/5.6.1/i586-linux/Cyrus/IMAP/Admin.pm montblanc:/ #
I am running on a SuSE 8.0 box with Apache, mod_perl and Cyrus Imap server.
What I am missing?
The Cyrus/IMAP/Admin.pm is a different module. So the system says it can't find /usr/lib/perl5/site_perl/5.6.1/IMAP/Admin.pm; but it says it's there in @INC. That usually means there is a module version problem. Get the latest versions of the modules, or check the docs to see what versions are required. P.S. FWIW. It looks like alot of people think that mod_perl enables perl cgi support in apache. This isn't true. Perl cgi scripts will run without mod_perl installed. Mod_perl is the "high-performance apache perl interpreter", and programs must be specifically written to use it. It's easy to get this confused, because mod_php works like this. Check out modperl.org for a very good manual on mod_perl. But maybe websieve uses mod_perl , so I may be offbase here. :-) -- use Perl; #powerful programmable prestidigitation
Hi zentara, Thanks for your asnwer. You were rigth it was nothing about mod_perl, just PERL cgi... Anyway I downloaded the last version and still get the same errors... I can not find a reason why it doesn't locate a module that is installed@INC. I'll be trying and I post a message to the list when I find answers... On Tuesday 01 October 2002 19:36, zentara wrote:
On Tue, 1 Oct 2002 19:00:17 +0200
Pep Serrano
wrote: Second parton the "problem with apache + mod_perl" series :-)
I am trying to run websieve, which is a web interface to the any sieve server. I am getting the following message everytime I try to load the websieve URL: ----- cut ----- cut ----- cut ----- Error: Can't locate IMAP/Admin.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i586-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i586-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl .) at ./funclib.pl line 5. BEGIN failed--compilation aborted at ./funclib.pl line 5. Content-type: text/html ----- cut ----- cut ----- cut -----
IMAP::Admin is installed (twice???):
montblanc:/ # find / -name Admin.pm /usr/lib/perl5/site_perl/5.6.1/IMAP/Admin.pm /usr/lib/perl5/site_perl/5.6.1/i586-linux/Cyrus/IMAP/Admin.pm montblanc:/ #
I am running on a SuSE 8.0 box with Apache, mod_perl and Cyrus Imap server.
What I am missing?
The Cyrus/IMAP/Admin.pm is a different module. So the system says it can't find /usr/lib/perl5/site_perl/5.6.1/IMAP/Admin.pm; but it says it's there in @INC. That usually means there is a module version problem. Get the latest versions of the modules, or check the docs to see what versions are required.
P.S. FWIW. It looks like alot of people think that mod_perl enables perl cgi support in apache. This isn't true. Perl cgi scripts will run without mod_perl installed. Mod_perl is the "high-performance apache perl interpreter", and programs must be specifically written to use it. It's easy to get this confused, because mod_php works like this. Check out modperl.org for a very good manual on mod_perl. But maybe websieve uses mod_perl , so I may be offbase here. :-)
On Fri, 4 Oct 2002 14:09:26 +0200
Pep Serrano
Hi zentara,
Thanks for your asnwer. You were rigth it was nothing about mod_perl, just PERL cgi...
Anyway I downloaded the last version and still get the same errors... I can not find a reason why it doesn't locate a module that is installed@INC. I'll be trying and I post a message to the list when I find answers...
I will tell you what I would do. Start copying Admin.pm to everywhere in @INC. :-) I've done it before as a desparate last ditch effort. But before you try that............. If you look closely at your error message, it says the error occurs at funclib.pl line 5 BEGIN I would go there and see if there is a spelling error, or even comment the line out, and see if it runs afterwords. It might be some weird error that just reports it can't find Admin.pm, but the real cause is something else. -- use Perl; #powerful programmable prestidigitation
Hi again, Problem solved. It was a very newbie error... Call me lamer! Just access rigths!!! Yes, I installed the PERL module wwith user root and the files were only readable to root/root :-) I simply modified chmod and that's it. Finally I can tell you I am using sieve protocol for the management of mail filters with the user interface from the web and it is the perfect tool to complete any webmail package. Regards, Pep Serrano. On Friday 04 October 2002 14:23, zentara wrote:
Anyway I downloaded the last version and still get the same errors... I can not find a reason why it doesn't locate a module that is installed@INC. I'll be trying and I post a message to the list when I find answers...
I will tell you what I would do. Start copying Admin.pm to everywhere in @INC. :-) I've done it before as a desparate last ditch effort. But before you try that.............
If you look closely at your error message, it says the error occurs at funclib.pl line 5 BEGIN I would go there and see if there is a spelling error, or even comment the line out, and see if it runs afterwords. It might be some weird error that just reports it can't find Admin.pm, but the real cause is something else.
participants (2)
-
Pep Serrano
-
zentara