LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-27-2010, 08:54 AM   #1
srb24
LQ Newbie
 
Registered: Aug 2010
Posts: 4

Rep: Reputation: 0
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.
 
Old 08-27-2010, 09:16 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,520

Rep: Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944
Quote:
Originally Posted by srb24 View Post
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....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] set up a website locally (within a LAN) sycamorex Linux - Networking 4 08-10-2010 04:32 AM
CentOS in one VirtualBox, Windows in another - can I set up Samba in the CentOS VB? ismism Linux - Newbie 10 08-08-2010 03:34 PM
Fedora 10 iwconfig error: Error for wireless request "Set Encode" (8B2A) :SET failed mishkind Linux - Laptop and Netbook 2 05-10-2009 02:43 PM
CentOS Web Server - Where to Keep Website Files Ascendancy5 Linux - Server 5 11-21-2008 12:39 PM
How to set up a website? SentralOrigin Linux - Server 5 10-21-2008 01:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration