Catalyst on Windows - 2-я часть марлезонского балета ;-) (original) (raw)

| Andrei Chernov posting in  The elegant MVC framework | | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | |

Приветствую!

Updated

Под StrawBerry имею сейчас:
---
> cpan Task::Catalyst
Database was generated on Mon, 06 Dec 2010 06:49:29 GMT
CPAN: Module::CoreList loaded ok (v2.36)
Catalyst is up to date (5.80029).

C:\Users\can>cpan Task::Catalyst
CPAN: CPAN::SQLite loaded ok (v0.199)
Database was generated on Mon, 06 Dec 2010 06:49:29 GMT
Running install for module 'Task::Catalyst'
Running make for F/FL/FLORA/Task-Catalyst-4.01.tar.gz
CPAN: Digest::SHA loaded ok (v5.48)
CPAN: Compress::Zlib loaded ok (v2.03)
Checksum for C:\strawberry\cpan\sources\authors\id\F\FL\FLORA\Task-Catalyst-4.01
.tar.gz ok
CPAN: Archive::Tar loaded ok (v1.66)
CPAN: File::Temp loaded ok (v0.22)
CPAN: Parse::CPAN::Meta loaded ok (v1.40)
CPAN: Module::CoreList loaded ok (v2.36)

CPAN.pm: Going to build F/FL/FLORA/Task-Catalyst-4.01.tar.gz

Checking if your kit is complete...
Looks good
Warning: prerequisite Catalyst::ActionRole::ACL 0 not found.
Warning: prerequisite Catalyst::Authentication::Store::DBIx::Class 0 not found.
Warning: prerequisite Catalyst::Component::InstancePerContext 0 not found.
Warning: prerequisite Catalyst::Engine::HTTP::Prefork 0 not found.
Warning: prerequisite Catalyst::Engine::PSGI 0 not found.
Warning: prerequisite Catalyst::Manual 5.80 not found.
Warning: prerequisite Catalyst::Model::Adaptor 0 not found.
Warning: prerequisite Catalyst::Model::DBIC::Schema 0 not found.
Warning: prerequisite Catalyst::Plugin::I18N 0 not found.
Warning: prerequisite Catalyst::Plugin::Session::Store::DBIC 0 not found.
Warning: prerequisite Catalyst::Plugin::Session::Store::File 0 not found.
Warning: prerequisite Catalyst::Plugin::StackTrace 0 not found.
Warning: prerequisite Catalyst::Plugin::Unicode::Encoding 0 not found.
Warning: prerequisite Catalyst::View::Email 0 not found.
Warning: prerequisite Catalyst::View::TT 0 not found.
Warning: prerequisite CatalystX::Profile 0 not found.
Warning: prerequisite CatalystX::REPL 0 not found.
Warning: prerequisite CatalystX::SimpleLogin 0 not found.
Warning: prerequisite FCGI 0 not found.
Warning: prerequisite FCGI::ProcManager 0 not found.
Warning: prerequisite Test::WWW::Mechanize::Catalyst 0 not found.
Writing Makefile for Task::Catalyst
---- Unsatisfied dependencies detected during ----
---- FLORA/Task-Catalyst-4.01.tar.gz ----
Test::WWW::Mechanize::Catalyst [requires]
Catalyst::Authentication::Store::DBIx::Class [requires]
Catalyst::ActionRole::ACL [requires]
Catalyst::Engine::PSGI [requires]
Catalyst::View::TT [requires]
Catalyst::Plugin::Session::Store::File [requires]
CatalystX::Profile [requires]
Catalyst::Model::Adaptor [requires]
Catalyst::Model::DBIC::Schema [requires]
Catalyst::Component::InstancePerContext [requires]
FCGI::ProcManager [requires]
CatalystX::REPL [requires]
Catalyst::Plugin::Session::Store::DBIC [requires]
FCGI [requires]
Catalyst::Manual [requires]
Catalyst::View::Email [requires]
Catalyst::Plugin::StackTrace [requires]
CatalystX::SimpleLogin [requires]
Catalyst::Plugin::Unicode::Encoding [requires]
Catalyst::Engine::HTTP::Prefork [requires]
Catalyst::Plugin::I18N [requires]
Running make test
Delayed until after prerequisites
Running make install
Delayed until after prerequisites
Running install for module 'Test::WWW::Mechanize::Catalyst'
Running make for B/BO/BOBTFISH/Test-WWW-Mechanize-Catalyst-0.53.tar.gz
Checksum for C:\strawberry\cpan\sources\authors\id\B\BO\BOBTFISH\Test-WWW-Mechan
ize-Catalyst-0.53.tar.gz ok

CPAN.pm: Going to build B/BO/BOBTFISH/Test-WWW-Mechanize-Catalyst-0.53.tar.gz

Cannot determine perl version info from lib/Test/WWW/Mechanize/Catalyst.pm
Checking if your kit is complete...
Looks good
Warning: prerequisite Test::WWW::Mechanize 1.14 not found.
Warning: prerequisite WWW::Mechanize 1.54 not found.
Writing Makefile for Test::WWW::Mechanize::Catalyst
---- Unsatisfied dependencies detected during ----
---- BOBTFISH/Test-WWW-Mechanize-Catalyst-0.53.tar.gz ----
WWW::Mechanize [requires]
Test::WWW::Mechanize [requires]
Running make test
Delayed until after prerequisites
Running make install
Delayed until after prerequisites
Running install for module 'WWW::Mechanize'
Running make for P/PE/PETDANCE/WWW-Mechanize-1.66.tar.gz
Checksum for C:\strawberry\cpan\sources\authors\id\P\PE\PETDANCE\WWW-Mechanize-1
.66.tar.gz ok

CPAN.pm: Going to build P/PE/PETDANCE/WWW-Mechanize-1.66.tar.gz

WWW::Mechanize likes to have a lot of test modules for some of its tests.
The following are modules that would be nice to have, but not required.

Test::Pod
Test::Memory::Cycle
Test::Taint

Checking if your kit is complete...
Looks good
Writing Makefile for WWW::Mechanize
cp lib/WWW/Mechanize/Examples.pod blib\lib\WWW\Mechanize\Examples.pod
cp lib/WWW/Mechanize/Link.pm blib\lib\WWW\Mechanize\Link.pm
cp lib/WWW/Mechanize/Image.pm blib\lib\WWW\Mechanize\Image.pm
cp lib/WWW/Mechanize/Cookbook.pod blib\lib\WWW\Mechanize\Cookbook.pod
cp lib/WWW/Mechanize/FAQ.pod blib\lib\WWW\Mechanize\FAQ.pod
cp lib/WWW/Mechanize.pm blib\lib\WWW\Mechanize.pm
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "cp" -- bin/mech-dump bli
b\script\mech-dump
pl2bat.bat blib\script\mech-dump
PETDANCE/WWW-Mechanize-1.66.tar.gz
C:\strawberry\c\bin\dmake.EXE -- OK
CPAN: YAML loaded ok (v0.71)
Running make test
C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0,
'blib\lib', 'blib\arch')" t\00-load.t t\add_header.t t\aliases.t t\area_link.t t
\autocheck.t t\clone.t t\cookies.t t\credentials-api.t t\credentials.t t\die.t t
\field.t t\find_frame.t t\find_image.t t\find_inputs.t t\find_link-warnings.t t\
find_link.t t\find_link_id.t t\form-parsing.t t\frames.t t\image-new.t t\image-p
arse.t t\link-base.t t\link-relative.t t\link.t t\new.t t\pod-coverage.t t\pod.t
t\regex-error.t t\save_content.t t\select.t t\taint.t t\tick.t t\untaint.t t\up
load.t t\warn.t t\warnings.t t\local\back.t t\local\click.t t\local\click_button
.t t\local\failure.t t\local\follow.t t\local\form.t t\local\get.t t\local\overl
oad.t t\local\page_stack.t t\local\referer.t t\local\reload.t t\local\submit.t t
\live\encoding.t t\live\wikipedia.t t\mech-dump\mech-dump.t
t\00-load.t .............. 1/2 # Testing WWW::Mechanize 1.66, with LWP 5.836, Pe
rl 5.012001, C:\STRAWB~1\perl\bin\perl.exe
# Test::Memory::Cycle is not installed.
t\00-load.t .............. ok
t\add_header.t ........... ok
t\aliases.t .............. ok
t\area_link.t ............ ok
t\autocheck.t ............ ok
t\clone.t ................ ok
t\cookies.t .............. skipped: HTTP::Server::Simple does not support Window
s yet.
t\credentials-api.t ...... Use of uninitialized value within @_ in lc at C:/stra
wberry/perl/vendor/lib/LWP/UserAgent.pm line 559.
t\credentials-api.t ...... ok
t\credentials.t .......... ok
t\die.t .................. ok
t\field.t ................ ok
t\find_frame.t ........... ok
t\find_image.t ........... ok
t\find_inputs.t .......... ok
t\find_link-warnings.t ... ok
t\find_link.t ............ ok
t\find_link_id.t ......... ok
t\form-parsing.t ......... ok
t\frames.t ............... ok
t\image-new.t ............ ok
t\image-parse.t .......... ok
t\link-base.t ............ ok
t\link-relative.t ........ ok
t\link.t ................. ok
t\live\encoding.t ........ ok
t\live\wikipedia.t ....... ok
t\local\back.t ........... 1/47 # Started http://localhost:49402/
t\local\back.t ........... 7/47
t\local\back.t ........... 33/47 # Failed test '404 check'
# at t\local\back.t line 151.
# got: '500'
# expected: '404'
# $server404url=http://jogger:49411/
# $mech->content="500 Can't connect to jogger:49411 (connect: timeout)
# "
# Looks like you failed 1 test of 47.
t\local\back.t ........... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/47 subtests
(less 2 skipped subtests: 44 okay)
t\local\click.t .......... 1/9 # Started http://localhost:49426/
t\local\click.t .......... ok
t\local\click_button.t ... 1/19 # Started http://localhost:49430/
t\local\click_button.t ... ok
t\local\failure.t ........ 1/15 # Started http://localhost:49436/
t\local\failure.t ........ ok
t\local\follow.t ......... 1/22 # Started http://localhost:49439/
t\local\follow.t ......... ok
t\local\form.t ........... 1/13 # Started http://localhost:49446/
t\local\form.t ........... ok
t\local\get.t ............ 1/32 # Started http://localhost:49450/
t\local\get.t ............ ok
t\local\overload.t ....... skipped: Mysteriously stopped passing, and I don't know why.
t\local\page_stack.t ..... 1/16 # Started http://localhost:49458/
t\local\page_stack.t ..... ok
t\local\referer.t ........ ok
t\local\reload.t ......... 1/14 # Started http://localhost:49468/
t\local\reload.t ......... ok
t\local\submit.t ......... 1/13 # Started http://localhost:49472/
t\local\submit.t ......... ok
t\mech-dump\mech-dump.t .. ok
t\new.t .................. ok
t\pod-coverage.t ......... skipped: Test::Pod::Coverage 1.04 required for testing POD

coverage
t\pod.t .................. skipped: Test::Pod 1.14 required for testing POD
t\regex-error.t .......... ok
t\save_content.t ......... ok
t\select.t ............... ok
t\taint.t ................ skipped: Test::Taint required for checking taintedness
t\tick.t ................. ok
t\untaint.t .............. ok
t\upload.t ............... ok
t\warn.t ................. ok
t\warnings.t ............. ok

Test Summary Report
-------------------
t\local\back.t (Wstat: 256 Tests: 47 Failed: 1)
Failed test: 33
Non-zero exit status: 1
t\local\click_button.t (Wstat: 0 Tests: 19 Failed: 0)
TODO passed: 15-17, 19
Files=51, Tests=559, 219 wallclock secs ( 0.37 usr + 0.27 sys = 0.64 CPU)
Result: FAIL
Failed 1/51 test programs. 1/559 subtests failed.
dmake.EXE: Error code 255, while making 'test_dynamic'
PETDANCE/WWW-Mechanize-1.66.tar.gz
C:\strawberry\c\bin\dmake.EXE test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports PETDANCE/WWW-Mechanize-1.66.tar.gz
Running make install
make test had returned bad status, won't install without force
Running install for module 'Test::WWW::Mechanize'
Running make for P/PE/PETDANCE/Test-WWW-Mechanize-1.30.tar.gz
Checksum for C:\strawberry\cpan\sources\authors\id\P\PE\PETDANCE\Test-WWW-Mechanize-

1.30.tar.gz ok

CPAN.pm: Going to build P/PE/PETDANCE/Test-WWW-Mechanize-1.30.tar.gz

Checking if your kit is complete...
Looks good
Warning: prerequisite WWW::Mechanize 1.24 not found.
Writing Makefile for Test::WWW::Mechanize
---- Unsatisfied dependencies detected during ----
---- PETDANCE/Test-WWW-Mechanize-1.30.tar.gz ----
WWW::Mechanize [requires]
Running make test
Delayed until after prerequisites
Running make install
Delayed until after prerequisites
Running install for module 'WWW::Mechanize'
Running make install
make test had returned bad status, won't install without force
Running make for P/PE/PETDANCE/Test-WWW-Mechanize-1.30.tar.gz
Has already been unwrapped into directory C:\strawberry\cpan\build\Test-WWW-Mechanize-

1.30-082UId

CPAN.pm: Going to build P/PE/PETDANCE/Test-WWW-Mechanize-1.30.tar.gz

Warning: Prerequisite 'WWW::Mechanize => 1.24' for 'PETDANCE/Test-WWW-Mechanize-1.30.tar.gz'

failed when processing 'PET
DANCE/WWW-Mechanize-1.66.tar.gz' with 'make_test => NO'. Continuing, but chances to succeed

are limited.
CPAN: Time::HiRes loaded ok (v1.9721)
cp Mechanize.pm blib\lib\Test\WWW\Mechanize.pm
PETDANCE/Test-WWW-Mechanize-1.30.tar.gz
C:\strawberry\c\bin\dmake.EXE -- OK
Running make test
C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib',

'blib\arch')" t/*.t
t/00load.t ..............
# Failed test 'use Test::WWW::Mechanize;'
t/00load.t .............. 1/1 # at t/00load.t line 9.
# Tried to use 'Test::WWW::Mechanize'.
# Error: Can't locate WWW/Mechanize.pm in @INC (@INC contains:

C:\strawberry\cpan\build\Test-WWW-Mechanize-1.30-082
UId\blib\lib C:\strawberry\cpan\build\Test-WWW-Mechanize-1.30-082UId\blib\arch

C:/strawberry/perl/site/lib C:/strawberry
/perl/vendor/lib C:/strawberry/perl/lib .) at C:\strawberry\cpan\build\Test-WWW-Mechanize-

1.30-082UId\blib\lib/Test/WWW/
Mechanize.pm line 67.
# BEGIN failed--compilation aborted at C:\strawberry\cpan\build\Test-WWW-Mechanize-1.30-

082UId\blib\lib/Test/WWW/Mechani
ze.pm line 67.
# Compilation failed in require at (eval 4) line 2.
# BEGIN failed--compilation aborted at (eval 4) line 2.
Can't locate WWW/Mechanize.pm in @INC (@INC contains: C:\strawberry\cpan\build\Test-WWW-

Mechanize-1.30-082UId\blib\lib C
:\strawberry\cpan\build\Test-WWW-Mechanize-1.30-082UId\blib\arch C:/strawberry/perl/site/lib

C:/strawberry/perl/vendor/l
ib C:/strawberry/perl/lib .) at t/00load.t line 12.
BEGIN failed--compilation aborted at t/00load.t line 12.
t/00load.t .............. Dubious, test returned 2 (wstat 512, 0x200)
Failed 1/1 subtests
t/autolint.t ............ skipped: HTML::Lint is not installed, cannot test autolint
t/back_ok.t .............
# Failed test 'use Test::WWW::Mechanize;'
# at t/back_ok.t line 17.
t/back_ok.t ............. 1/11 # Tried to use 'Test::WWW::Mechanize'.
# Error: Can't locate WWW/Mechanize.pm in @INC (@INC contains:

C:\strawberry\cpan\build\Test-WWW-Mechanize-1.30-082
UId\blib\lib C:\strawberry\cpan\build\Test-WWW-Mechanize-1.30-082UId\blib\arch

C:/strawberry/perl/site/lib C:/strawberry
/perl/vendor/lib C:/strawberry/perl/lib .) at C:\strawberry\cpan\build\Test-WWW-Mechanize-

1.30-082UId\blib\lib/Test/WWW/
Mechanize.pm line 67.
# BEGIN failed--compilation aborted at C:\strawberry\cpan\build\Test-WWW-Mechanize-1.30-

082UId\blib\lib/Test/WWW/Mechani
ze.pm line 67.
# Compilation failed in require at (eval 4) line 2.
# BEGIN failed--compilation aborted at (eval 4) line 2.
Can't locate object method "new" via package "Test::WWW::Mechanize" at t/back_ok.t line 28,

line 16.
# Looks like you planned 11 tests but ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test exited with 25 just after 1.
--- скрипт висит и молчит ---

---- Часть первая ----
По некоторым причинам имею под руками сейчас только машину с Windows,
на которую нельзя установить Linux. Посему хотел попробовать Catalyst на этом компьютере.
В системе установлен ActivePerl? в котором есть свой ppm.
Использую старенькую статью
http://catalyst.infogami.com/install/windows (2 года прошло!)
обнаружил, что депозитарий
http://home.ngmedia.net/chansen/catalyst/ppms/
сейчас недоступен (недоступен весь сайт).

Из какого депозитария можно установить Catalyst?

Какие еще пути установки Catalist (Task::Catalyst) под Windows?

Может есть какие-нибудь статьи-сообщения на эту тему?


Пока не готов на такие телодвижения, хотел малой кровью ;-)

А какой эмулятор посоветуете?

PS. В принципе в комнате есть еще слабенькая и несколько глючная (lbcr) тачка, на которую я пару месяцев назад поставил Ubuntu
(хотя до этого немного работал чисто продвинутым пользователем
под SuSE\RedHat, но эти сервера сейчас как бы "чужие" (доступ могут прикрыть в любой момент).
В Линухи софт влтает обычно мухой, что нельзя сказать про Sun Solaris ;-) System V же ;-)

User: (Anonymous)
Date: 2010-12-02 16:40 (UTC)
Subject: (no subject)

Настоятельно рекомендую использовать http://strawberryperl.com/ вместо ActivePerl. Проблем с установкой модулей по Windows не замечал. В частности использовал XML::LibXML, Log::Log4perl и DateTime - без проблем. Устанавливает модули вроде из своего репозитория.

+500 за strawberryperl.com. Забыл ActivePerl как страшный сон.

User: (Anonymous)
Date: 2010-12-03 12:07 (UTC)
Subject: (no subject)

можно еще notest, чтобы не ждать подолгу )

User: alexchorny
Date: 2010-12-02 21:18 (UTC)
Subject: (no subject)

MSVC стоит? Если нет и ActivePerl сравнительно свежий - ppm install gcc
Дальше - cpan Task::Catalyst

P.S. А Strawberry конечно лучше

Сейчас дождусь пока CPAN затолкает Catalyst или окончательно откажется это делать (красные ворнинги уже вовсю мелькают на консоли).

Да и ppm в ActivePerl ставит только перловые пакеты, поскольку здесь это - Perl Package Manager ;-)

А где сейчас принято брать StrawBerry?
Официальный сайт http://strawberryperl.com/ подойдет?

Нужно перед его установкой деинсталлировать ActivePerl?
И вообще какое-нибудь README/INSTALL от опытных по этому процессу?
(или все ставится с кнопки и работает?)

Проголосовал.

И буду пробовать более старую.

Как в старом юниксе (без скрипта cpan)-

ftp> get file_package
cd /package/home
perl Makefile.pl
make install

- смогу так старый пакет поставить?

User: alexchorny
Date: 2010-12-07 12:51 (UTC)
Subject: (no subject)

можно (если добавить шаг распаковки), но проще cpan PETDANCE/WWW-Mechanize-1.60.tar.gz

Конец выдачи был такой:
---
[skipped]
t\local\back.t ........... 1/47 # Started http://localhost:54289/
t\local\back.t ........... 33/47
# Failed test '404 check'
# at t\local\back.t line 151.
# got: '500'
# expected: '404'
# $server404url=http://jogger:54298/
# $mech->content="500 Can't connect to jogger:54298 (connect: timeout)
# "
# Looks like you failed 1 test of 47.
t\local\back.t ........... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/47 subtests
(less 2 skipped subtests: 44 okay)
t\local\click.t .......... 1/9 # Started http://localhost:54467/
t\local\click.t .......... ok
t\local\click_button.t ... 1/19 # Started http://localhost:54471/
t\local\click_button.t ... ok
t\local\failure.t ........ 1/15 # Started http://localhost:54477/
t\local\failure.t ........ ok
t\local\follow.t ......... 1/22 # Started http://localhost:54480/
t\local\follow.t ......... ok
t\local\form.t ........... 1/13 # Started http://localhost:54487/
t\local\form.t ........... ok
t\local\get.t ............ 1/32 # Started http://localhost:54490/
t\local\get.t ............ ok
t\local\overload.t ....... skipped: Mysteriously stopped passing, and I don't know why.
t\local\page_stack.t ..... 1/16 # Started http://localhost:54498/
t\local\page_stack.t ..... ok
t\local\referer.t ........ ok
t\local\reload.t ......... 1/14 # Started http://localhost:54509/
t\local\reload.t ......... ok
t\local\submit.t ......... 1/13 # Started http://localhost:54513/
t\local\submit.t ......... ok
t\mech-dump\mech-dump.t .. ok
t\new.t .................. ok
t\pod-coverage.t ......... skipped: Test::Pod::Coverage 1.04 required for testing POD coverage
t\pod.t .................. skipped: Test::Pod 1.14 required for testing POD
t\regex-error.t .......... ok
t\save_content.t ......... ok
t\select.t ............... ok
t\taint.t ................ skipped: Test::Taint required for checking taintedness
t\tick.t ................. ok
t\upload.t ............... ok
t\warn.t ................. ok
t\warnings.t ............. ok

Test Summary Report
-------------------
t\local\back.t (Wstat: 256 Tests: 47 Failed: 1)
Failed test: 33
Non-zero exit status: 1
t\local\click_button.t (Wstat: 0 Tests: 19 Failed: 0)
TODO passed: 15-17, 19
Files=50, Tests=557, 230 wallclock secs ( 0.33 usr + 0.33 sys = 0.66 CPU)
Result: FAIL
Failed 1/50 test programs. 1/557 subtests failed.
dmake.EXE: Error code 255, while making 'test_dynamic'
PETDANCE/WWW-Mechanize-1.60.tar.gz
C:\strawberry\c\bin\dmake.EXE test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports PETDANCE/WWW-Mechanize-1.60.tar.gz
Running make install
make test had returned bad status, won't install without force

>

А чего не activestate? репозитории нужные подключил, ppm-ки птичками пометил, install нажал. года 3 назад пробовал - работало без проблем

Репозиторий с Catalyst'ом оказался недоступен
Уже писал здесь где-то в комментариях....

User: (Anonymous)
Date: 2011-01-08 12:14 (UTC)
Subject: вап знакомства мамба

http://vkontakte.ru/id118387035
секс знакомства на один вечер
planeta znakomstva ru
гей знакомства онлайн (http://vkontakte.ru/id118357807)
[url=http://vkontakte.ru/id118378696\]виртуальный секс по вэб камере[/url]

User: (Anonymous)
Date: 2011-01-11 19:10 (UTC)
Subject: cекс знакомства

Ваш блог мне очень понравился, только допишите эту статью

User: yasmineagi
Date: 2011-11-01 19:18 (UTC)
Subject: (no subject)

Hmmm for some reason only half the post can be seen. I tried reloading but still same.