LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-16-2005, 03:59 PM   #1
robadawb
LQ Newbie
 
Registered: Mar 2003
Posts: 14

Rep: Reputation: 0
pflogsumm can't locate Date/Calc.pm in @INC


I am attempting to get pflogsumm to work but it cannot find the Calc.pm module in @INC.

Code:
$pflogsumm
Can't locate Date/Calc.pm in @INC (@INC contains:...
I installed the module with CPAN and have verified its existence.

Code:
$locate Calc.pm
/usr/local/lib/perl5/site_perl/5.8.7/i686-linux/Date/Calc.pm
Code:
$perl -V
...
Compile-time options: USE_LARGE_FILES
Built under linux
Compiled at Jul  6 2005 12:32:44
@INC:
/usr/local/lib/perl5/5.8.7/i686-linux
/usr/local/lib/perl5/5.8.7
/usr/local/lib/perl5/site_perl/5.8.7/i686-linux
/usr/local/lib/perl5/site_perl/5.8.7
/usr/local/lib/perl5/site_perl
Am I missing something here or should the path to Calc.pm be included in @INC? Is there a way to update @INC? My experience with perl is very limited.

Fedora Core 1
Perl 5.8.7
pflogsumm 1.1.0
 
Old 01-23-2009, 01:00 PM   #2
ustad1024
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Rep: Reputation: 0
Use Calc::Pcalc instead

Hi, I had a similar error:
"Can't locate loadable object for module Date::Calc in @INC"

I think "Date::Calc" is not pure perl, and so the architecture I was trying my perl script on (Solaris) was not running it even though my script would run under Windows XP.

I just used the pure perl "Date::Pcalc" package instead, and only had to change ONE line in my perl script:

"use Date::Calc" to "use Date::Pcalc"

I think Pcalc is an exact replica of Date::Calc, but ALL perl code.

Get the module at:
http://catcode.com/date/pcalc.html
http://search.cpan.org/dist/Date-Pcalc/Pcalc.pm
 
  


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
Openoffice calc dajomu Linux - Software 1 10-27-2005 05:56 PM
pflogsumm generates zeroes for results rioguia Linux - Software 1 09-29-2004 03:29 PM
openoffice calc question buffed317 Linux - General 1 09-11-2004 03:27 PM
openoffice calc question... marsques Linux - Software 2 07-10-2004 04:30 PM
lastlog date does not match system date? jcmj Linux - Networking 6 10-22-2002 12:09 PM

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

All times are GMT -5. The time now is 08:42 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