LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-09-2006, 06:00 AM   #1
kartheekpn
Member
 
Registered: Mar 2005
Location: bangalore
Posts: 100

Rep: Reputation: 15
Perl @INC Problem


Hello Everybody,

I am in the process of installing "OTRS" (Its a open source trouble ticketing system) on Mandriva 2006. I am getting the following error when i try to check the syntax of the perl code in the application, the application however works fin on fedora distro...

Command: perl -cw /opt/otrs/bin/PostMasterPOP3.pl

Error:
==========================================================

Can't locate Kernel/Config.pm in @INC (@INC contains: /opt/otrs/Kernel/cpan-lib /opt/otrs /usr/lib/perl5/5.8.7/i386-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i386-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.7/i386-linux /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.6/i386-linux /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl .) at /opt/otrs/bin/PostMasterPOP3.pl line 36.
BEGIN failed--compilation aborted at /opt/otrs/bin/PostMasterPOP3.pl line 36.

===============================================================

I believe this is an configuration to be done on the perl side..
Can anybody help me resolve this?

Warm Regards,
KartheeK
 
Old 03-09-2006, 10:58 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Perl can't find the Config.pm file that came with OTRS. Have you had a look at http://cvs.otrs.org/viewcvs.cgi/otrs/INSTALL?rev=1.39? There's some info there on copying the file to the correct location.
 
Old 03-09-2006, 10:59 PM   #3
PenguinPwrdBox
Member
 
Registered: Oct 2003
Posts: 568

Rep: Reputation: 31
Do this:
Code:
find /* | grep 'Kernel\/Config.pm'
This should return one line(hopefully) that ends in "Kernel/Config.pm". If it does:
Code:
echo '#!/usr/bin/perl' > ./tmpfile

for i in `find /* | grep 'Kernel\/Config.pm'`; i=`echo $i | sed s/Config.pm//`; do `echo 'push(@INC, $i);' >> ./tmpfile`; done
Next:
Code:
cat /opt/otrs/bin/PostMasterPOP3.pl | grep -v '#!/usr/bin/perl' >> ./tmpfile

mv /opt/otrs/bin/PostMasterPOP3.pl /opt/otrs/bin/PostMasterPOP3.pl.old

cp ./tmpfile /opt/otrs/bin/PostMasterPOP3.pl
Then, try again. If it still fails, then you can undo what you just did with this:
Code:
rm /opt/otrs/bin/PostMasterPOP3.pl; mv /opt/otrs/bin/PostMasterPOP3.pl.old /opt/otrs/bin/PostMasterPOP3.pl
Good luck!!

Last edited by PenguinPwrdBox; 03-09-2006 at 11:24 PM.
 
Old 03-09-2006, 11:21 PM   #4
kartheekpn
Member
 
Registered: Mar 2005
Location: bangalore
Posts: 100

Original Poster
Rep: Reputation: 15
Got it!

Hi All,

Got it, The file Config.pm was originally Config.pm.dist, i got it renamed to "Config.pm".
Futher, I got another @INC problem coz of CGI.pm, i downloaded CGI.pm.tar.gz(V 3.17, the readme in the tar helped me to achieve the installation..

Warm Regards,
KartheeK
 
  


Reply



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
s/// problem : perl linuxlover1 Programming 3 01-03-2006 07:20 AM
Problem with perl module for w3c validator to work on my local Apache+PHP+perl instal tbamt Linux - Software 0 12-16-2004 05:37 PM
Another Perl Problem ShadowPeo Linux - Software 3 05-13-2004 03:15 AM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 08:09 PM
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:32 PM.

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