[Cascavel-pm] RES: cursos de catalyst e perl

Glauber Machado Rodrigues (Ananda) glauber.rodrigues em gmail.com
Terça Maio 18 11:22:11 PDT 2010


2010/5/18 Glauber Machado Rodrigues (Ananda) <glauber.rodrigues em gmail.com>

>
>
> 2010/5/18 Nilson Santos Figueiredo Jr. <acid06 em gmail.com>
>
> 2010/5/18 Glauber Machado Rodrigues (Ananda) <glauber.rodrigues em gmail.com
>> >:
>> > Valeu pessoal, eu consegui instalar os módulos que estavam faltando na
>> mão
>> > (que deveriam ser papel do Makefile.PL). Não sei o que fazer para o
>> exemplo
>> > dos livros serem corrigidos enquanto a isso. Fico feliz por ter
>> resolvido o
>> > meu problema, obrigado por ajudarem.
>>
>> O problema é que você está rodando makefiles na mão.
>> Use o shell da CPAN (o tradicional "cpan" ou então instale o
>> App::cpanminus e use o "cpanm" que é mais DWIM).
>>
>>
> Estou falando do Makefile.PL do catalyst, que faz tudo isso basta você.
> Basta colocar o nome da dependencia lá e ele baixa para você via cpan. Quem
> não sabe o que é um Makefile.PL do catalyst, por favor, fala.
>
> """
Makefile.PL: This is a script that will generate a makefile to build, test
and install
your application. It can also contain a list of your application's CPAN
dependencies
and automatically install them.
To run Makefile.PL and generate a Makefile, simply type perl Makefile.PL.
After that, you can run make to build the app, make test to test the app
(you can try
this right now, as some sample tests have already been created), make
install to
install the app, and so on. For full details, see the Module::Install
documentation.
It's important that you don't delete this file. Catalyst looks for it to
determine where
the root of your application is.
"""
Esse é o Makefile da aplicação que eu estava com problemas:
"""
# IMPORTANT: if you delete this file your app will not work as
# expected.  you have been warned
use inc::Module::Install;

name 'DBAuthTest';
all_from 'lib/DBAuthTest.pm';

requires 'Catalyst::Runtime' => '5.80002';
requires 'Catalyst::Plugin::ConfigLoader';
requires 'Catalyst::Plugin::Static::Simple';
requires 'Catalyst::Action::RenderView';
requires 'parent';
requires 'Config::General'; # This should reflect the config file format
you've chosen
                 # See Catalyst::Plugin::ConfigLoader for supported formats
catalyst;

install_script glob('script/*.pl');
auto_install;
WriteAll;
"'""



-- 
Glauber Machado Rodrigues
(Só mais um filho de Deus)

skype: glauber.rodrigues
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://mail.pm.org/pipermail/cascavel-pm/attachments/20100518/f94458c0/attachment.html>


Mais detalhes sobre a lista de discussão Cascavel-pm