[Catalyst] Requirement for Makfile.PL or Build.PL in "home"?
Jeff Chimene
jchimene at gmail.com
Tue May 29 16:14:17 GMT 2007
Matt S Trout wrote:
> On Mon, May 28, 2007 at 08:11:19PM -0700, Jeff Chimene wrote:
>
>> Great. How does one move the root/ directory? It gets into the .tar
>> file, but isn't deployed on the production server.
>>
>
> Assuming Catalyst::Devel is installed on the server you did the make dist
> on, the 'catalyst()' line in your Makefile.PL should invoke the bundled
> inc/Module/Install/Catalyst.pm such that the root/ directory will go
> into site_perl along with everything else; then at runtime Catalyst will
> use File::ShareDir to find this directory again, meaning MyApp->path_to
> will resolve paths to in there.
>
> Assuming that's -not- what you're seeing, can you check your inc/ to make
> sure the Catalyst Module::Install extension's in there and then maybe use
> 'make -n install' or a find on site_perl to see if your root/ has just
> been installed somewhere you didn't expect.
>
Make::Install is there:
$ ls -R inc
inc:
Module
inc/Module:
AutoInstall.pm Install Install.pm
inc/Module/Install:
AutoInstall.pm Can.pm Include.pm Metadata.pm Win32.pm
Base.pm Fetch.pm Makefile.pm Scripts.pm WriteAll.pm
make -n install shows:
/usr/bin/perl "-Iinc" "-MExtUtils::Command" -e mkpath
/usr/lib/perl5/5.8.3/i386-linux-thread-multi
/usr/bin/perl "-Iinc" "-MExtUtils::Command::MM" -e perllocal_install \
"Module" "aic" \
"installed into" "/usr/lib/perl5/site_perl/5.8.3" \
LINKTYPE "dynamic" \
VERSION "0.01" \
EXE_FILES "script/aic_cgi.pl script/aic_create.pl
script/aic_fastcgi.pl script/aic_server.pl script/aic_test.pl" \
>> /usr/lib/perl5/5.8.3/i386-linux-thread-multi/perllocal.pod
> If that doesn't bring enlightenment, tell us what you -did- see when you
> checked the things I just suggested and with a bit of luck we'll be able to
> figure out what's not going to plan.
>
Thanks for your assistance.
This probably has something to do with the newly discovered requirement
to define CATALYST_HOME in the package. For now, I've put it into the
aic_cgi.pl script.
As badly as things have gone with this technique as well as the
responses I've received from you and Jonathan, I will avoid asking the
list for further advice.
Cheers,
jec
More information about the Catalyst
mailing list