Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Module Failures

by Foncé (Scribe)
on Aug 14, 2002 at 15:31 UTC ( [id://190115]=perlquestion: print w/replies, xml ) Need Help??

Foncé has asked for the wisdom of the Perl Monks concerning the following question:

Here's the situation: I want to use two modules, HTTP::CalendarMonthSimple and Date::Calc (required for the other) for a calendar programme I'm completely revamping. I have FTP access only to my webserver, so I uploaded those two modules (the .pm files) to the webserver under the directory /usr/local/etc/httpd/cgi-bin/calendar/modules and put Calc.pm into /usr/local/etc/httpd/cgi-bin/calendar/modules/Date like it wanted to be. They are called like thus:
use Date::Calc qw(:all);
use HTML::CalendarMonthSimple;

...and I get the following error:
[Wed Aug 14 10:33:55 2002] Calc.pm: [Wed Aug 14 10:33:55 2002] DynaLoader.pm: Can't locate loadable object for module Date::Calc in @INC (@INC contains: /usr/local/etc/httpd/cgi-bin/calendar/modules /usr/lib/perl5/5.00502/i686-linux /usr/lib/perl5/5.00502 /usr/lib/perl5/site_perl/5.005/i686-linux /usr/lib/perl5/site_perl/5.005 .) at index.cgi line 6

Any suggestions?

Foncé

Replies are listed 'Best First'.
Re: Module Failures
by Zaxo (Archbishop) on Aug 14, 2002 at 16:31 UTC

    Date::Calc and its prerequisite Bit::Vector both load extension routines from dll's. On my system the path to the Date::Calc dll is site_perl/5.8.0/i686-linux-thread-multi/auto/Date/Calc/Calc.so.

    To install the module under oppressive circumstances, you must discover the compiler, os, processor, and build flags for perl on the host. 'perl -V' will tell you that, but it sounds like you'll need to cobble up a cgi to tell you the results. Then use that info to build the modules and copy all their installed components over to the host.

    Yes, it's tricky and a nuisance. I'd advise getting a better host.

    After Compline,
    Zaxo

      Ack. Having such limited resources...is there any alternate method to do this, such as other modules that would do the job?

      I hate my job.

      Foncé
        Date::Manip is pure Perl. It can do anything Date::Calc can. But you cannot use it as a drop in replace for Date::Calc, so if the other module depends on Date::Calc, you need to replace that module as well.

        Abigail

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://190115]
Approved by Courage
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (None)
    As of 2024-04-25 01:13 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found