LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   i have a error trying to set up a website on CentOS (https://www.linuxquestions.org/questions/linux-server-73/i-have-a-error-trying-to-set-up-a-website-on-centos-828823/)

srb24 08-27-2010 08:54 AM

i have a error trying to set up a website on CentOS
 
I get this error when setting up my site.

Software error:

Can't locate Class/Template.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /var/www/html/en/subscribe.cgi line 10.
BEGIN failed--compilation aborted at /var/www/html/en/subscribe.cgi line 10.

For help, please send mail to the webmaster (root@localhost), giving this error message and the time and date of the error.

I have tried the following with no success:
# yum install perl-Class-Template
from the Rpmforge repo https://rpmrepo.org/RPMforge/Using

Or use the cpan command 1) # yum install perl-CPAN

2) # cpan
3) > install Class::Template
..

The website I am trying to get working is hosted on CentOS. The version is 2.6.18-194.11.1.el5PAE. Im trying to get migrate the site from one server to another and now the cgi script doesnt execute correctly as it requires the class Template which is in a folder within the website tree.

TB0ne 08-27-2010 09:16 AM

Quote:

Originally Posted by srb24 (Post 4079567)
I get this error when setting up my site.

Software error:

Can't locate Class/Template.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /var/www/html/en/subscribe.cgi line 10.
BEGIN failed--compilation aborted at /var/www/html/en/subscribe.cgi line 10.

For help, please send mail to the webmaster (root@localhost), giving this error message and the time and date of the error.

I have tried the following with no success:
# yum install perl-Class-Template
from the Rpmforge repo https://rpmrepo.org/RPMforge/Using

Or use the cpan command 1) # yum install perl-CPAN

2) # cpan
3) > install Class::Template
..

The website I am trying to get working is hosted on CentOS. The version is 2.6.18-194.11.1.el5PAE. Im trying to get migrate the site from one server to another and now the cgi script doesnt execute correctly as it requires the class Template which is in a folder within the website tree.

Have you tried just downloading the file, and installing it manually from the command-line? You can get the module here http://search.cpan.org/~dmr/Class-Eroot-19960603/ . Instructions are very straight-forward, included in the file. Install any pre-requisites first....


All times are GMT -5. The time now is 04:04 AM.