[Maypole] Running the BeerDB

Randall Lucas rlucas@tercent.net
Sat, 1 May 2004 16:26:22 -0700


Gary,

If I understand that you put MVC.pm in that directory, you'll have 
problems.  MVC.pm -- which you should probably install via CPAN or make 
install, rather than to a temporary lib -- is the file containing 
package Apache::MVC.  As such, it needs to be in subdir Apache/ from a 
path in your lib.

If you use lib ~/mybeerdb;

~/mybeerdb/BeerDB.pm	Package BeerDB
~/mybeerdb/Apache/MVC.pm	Pacakge Apache::MVC
~/mybeerdb/Apache/Request.pm 	Package Apache::Request

But you should probably be installing Apache::MVC and Apache::Request 
via their make install methods to your standard perl library location, 
anyhow.  Apologies if you knew this.

As far as permissions, the webserver needs read perms to all the 
modules.

Randall


On Saturday, May 1, 2004, at 04:12 PM, Gary Gorman wrote:

> I think I have gotten past the Apache::Requester issue, but now I'm
> encountering another issue.
> My error log is reporting the following:
>
> "Base class package "Apache::MVC" is empty. (Perhaps you need to 'use' 
> the
> module which defines that package first.)"
>
> It goes on to say: "/usr/local/apache2/lib/perl/BeerDB.pm line 2\nBEGIN
> failed--compilation aborted at /usr/local/apache2/lib/perl/BeerDB.pm 
> line
> 2.\nCompilation failed in require at (eval 4) line 3."
>
> The given path is where I put BeerDB.pm, MVC.pm, and Request.pm so they
> could be found by @INC, but they are owned by root. Does this matter?
>
> Gary Gorman
> Owner - Equal-time.com
> 9045 Grand Ave.
> Kansas City, MO 64114
> 816-523-0486
>
>
>
>
>
>
> <winmail.dat>