[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rtir
Subject:    Re: [Rtir] Apache Error after Installation of IR add-on
From:       Kevin Falcone <falcone () bestpractical ! com>
Date:       2013-02-20 16:31:55
Message-ID: 20130220163155.GA1685 () jibsheet ! com
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Wed, Feb 20, 2013 at 08:02:45AM +0000, Martin wrote:
> Been through a similar problem in the recent past. The problem is the path to 
> Business::Hours is not in the @INC path as in my case
> 
> try to find it on the system using   find / -iname "hours.pm"
> 
> I bet it will be at this location since you have Business::Hours 0.10
> 
>  /root/.cpan/build/Business-Hours-0.10-UqgfYQ/lib/Business/Hours.pm

This is the build location for the cpan command line client

> now copy it to this location /usr/share/perl5/Business
> 
> do
> cat /root/perl5/lib/perl5/Business/Hours.pm >> 
> /usr/share/perl5/Business/Hours.pm
> 
> once you are done try restart your apache. any other modules turn out missing 
> use those steps.

This really isn't the right way to install perl modules and will break
badly when you get to more complicated perl modules.
The right solution is finding out why it was built but not installed
(or installed to the wrong locations).

As I mentioned in my reply, running

cpan
i Business::Hours

Will tell you exactly where cpan thinks the module is installed.
I was waiting for that information from the original requestor.

-kevin

[Attachment #5 (application/pgp-signature)]

_______________________________________________
Rtir mailing list
Rtir@lists.bestpractical.com
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rtir


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic