On 13/01/05 16:53 -0600, Todd Ross wrote:
> John Cappiello wrote:
> >
> >On Jan 13, 2005, at 5:13 PM, Todd Ross wrote:
> >
> >>I then have to modify index.cgi and add the following 'use lib'
> >>statements:
> >>
> >>use lib '<home_dir>/local_perl/lib/perl5';
> >>use lib '<home_dir>/local_perl/lib/perl5/site_perl';
> >
> >
> >I'm not the smartest person in the world when it comes to this, but I think
> >you need to modify your @INC value to include
> ><home_dir>/local_perl/lib/perl5
> >and whatever other directories you need.
> >
> >Then the default use lib; in index.cgi won't matter.
>
> I tried setting PERL5LIB from the .htaccess using mod_env, but mod_env
> isn't supported at my host. Being a shared hosting environment, I
> obviously don't have access to recompile Perl to include my local_perl
> globally (nor would that be desireable even if I did). The only way I
> could get this working was to add 'use lib' statements to the index.cgi.
>
> All of the above would modify the @INC, but only the last one is
> supported on my host. Do you know of any other ways?
Here's how I run kwiki.org...
I have a Perl script that scans my entire system for all Kwiki releated
modules and creates a tree of symlinks under the directory '/home/ingy/lib'.
Then in each of my twenty odd kwikis I do a
ln -s /home/ingy/lib lib
That's it. Now I just have to update my code in one place.
The best part about this for me is that since I own most of the code, it is
checked into my source control. That way I just need to sync my tree and
everything is live without doing the 'make install' dance.
When I switch over to subversion, I'll make the repository publicly available.
That way you can sync directly to prerelease bug fixes without needing to
install from CPAN.
hmmmm. good ideas brewing now. stay tuned...
Cheers, Brian