[Rtir] Apache Error after Installation of IR add-on

Kevin Falcone falcone at bestpractical.com
Wed Feb 20 11:31:55 EST 2013


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 235 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rtir/attachments/20130220/0519ddc2/attachment.pgp>


More information about the Rtir mailing list