FAQ
Hi,

I just tried installing Catalyst on my iBook (Mac OS X, 10.4.2) by
following what Catalyst::Manual::Tutorial suggested:

# running as root
perl -MCPAN -e 'install Task::Catalyst'

however, it failed in several points, and I'm not sure they are
related (did record the installation log, but its too verbose to post
here), so let me post some of them and see if I can get help to solve
them one by one.

1. CPAM.pm keeps thinking Catalyst::Engine::Apache is missing (even
after I separately installed it):

[Apache/mod_perl Support]
- Catalyst::Engine::Apache ...missing. (would need 1.05)
==> Auto-install the 1 optional module(s) from CPAN? [n] y

2. after goes through installing Catalyst::Engine::Apache it proceeds
to:

[CPANPLUS (for easier installations)]
- CPANPLUS ...loaded. (0.0562)
*** Dependencies will be installed the next time you type 'make'.
*** Module::AutoInstall configuration finished.
Writing Makefile for Catalyst
************************************************************************
********
fordmason is the greatest and gabb is drunk again!
************************************************************************
********

Important:
Install Task::Catalyst to get everything you need to start writing
serious applications with Catalyst.

perl -MCPANPLUS -e 'install Task::Catalyst'
perl -MCPAN -e 'install Task::Catalyst'

Have fun!
Running [/usr/bin/make UNINST=1]...
/usr/bin/perl -Iinc Makefile.PL --config= --
installdeps=Catalyst::Engine::Apache,1.05
Cannot determine perl version info from lib/Catalyst.pm
.....
and along the way, mutiple tests failed, such as:

t/unit_core_component.............................Spiffy.pm must be
loaded before calling 'use base' or 'use mixin' with a
Spiffy module. See the documentation of Spiffy.pm for details.
at /Library/Perl/5.8.6/YAML/Base.pm line 2
Compilation failed in require at /Library/Perl/5.8.6/YAML/Base.pm
line 2.
BEGIN failed--compilation aborted at /Library/Perl/5.8.6/YAML/Base.pm
line 2.
Compilation failed in require at /Library/Perl/5.8.6/YAML.pm line 2.
BEGIN failed--compilation aborted at /Library/Perl/5.8.6/YAML.pm line 2.
Compilation failed in require at /Users/admin/.cpanplus/5.8.6/build/
Catalyst-5.62/blib/lib/Catalyst.pm line 24.
BEGIN failed--compilation aborted at /Users/admin/.cpanplus/5.8.6/
build/Catalyst-5.62/blib/lib/Catalyst.pm line 24.
Compilation failed in require at (eval 3) line 3.
...propagated at /System/Library/Perl/5.8.6/base.pm line 85.
BEGIN failed--compilation aborted at t/unit_core_component.t line 12.
# Looks like your test died before it could output anything.
dubious

3. and so CPAN.pm went on to a loop trying to get Catalyst modules
installed, test, failed, on and on.

I'm complete at lost. Can someone give me a hand?

[not sure this is related, I probably did an incomplete installation
of CPANPLUS and backed out before I installed GnuPGP and other
required CPAN modules; and when I re-installed CPANPLUS, it indicates
there is problem with YAML, even installation of YAML-0.51.tar.gz is
completed without error.]

Thanks for any help.

--- Simon




______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

Search Discussions

  • Andy Grundman at Jan 19, 2006 at 9:28 pm

    Simon Yeh wrote:
    t/unit_core_component.............................Spiffy.pm must be
    Please try again with YAML 0.52, ingy fixed the Spiffy bug yesterday.

    -Andy
  • Simon Yeh at Jan 19, 2006 at 9:53 pm

    On Jan 19, 2006, at 3:35 PM, Andy Grundman wrote:
    Please try again with YAML 0.52, ingy fixed the Spiffy bug yesterday.
    Thanks. However YAML 0.52 requires Spiffy 0.27, CPAN lists Spiffy
    0.29, but none of the mirrored download urls work.

    --- Simon

    ______________________________________________________________________
    This email has been scanned by the MessageLabs Email Security System.
    For more information please visit http://www.messagelabs.com/email
    ______________________________________________________________________
  • Kenny Gatdula at Jan 20, 2006 at 1:22 am

    Simon Yeh wrote:
    Thanks. However YAML 0.52 requires Spiffy 0.27, CPAN lists Spiffy
    0.29, but none of the mirrored download urls work.
    I think he meant 0.53. If you're having trouble finding it, it could be
    that your cpan index needs to be updated. Failing that, you can grab the
    files here. http://search.cpan.org/~ingy/YAML-0.53/

    Kenny
  • Kieren Diment at Jan 20, 2006 at 4:58 am
    I had trouble with building on OS X for a long time. Eventually I got
    around it by:

    sudo cpan

    force install Task::Catalyst

    # look at any failed module builds

    look [module name]

    # then build by hand
    perl Makefile.PL
    make
    make test
    make install
    exit

    # repeat until dead

    force install Task::Catalyst

    untill you get a message about Task::Catalyst being up to date.

    yeah, a bit labourious, but you know ...
    On 20/01/06, Kenny Gatdula wrote:

    Simon Yeh wrote:
    Thanks. However YAML 0.52 requires Spiffy 0.27, CPAN lists Spiffy
    0.29, but none of the mirrored download urls work.
    I think he meant 0.53. If you're having trouble finding it, it could be
    that your cpan index needs to be updated. Failing that, you can grab the
    files here. http://search.cpan.org/~ingy/YAML-0.53/

    Kenny

    _______________________________________________
    Catalyst mailing list
    Catalyst@lists.rawmode.org
    http://lists.rawmode.org/mailman/listinfo/catalyst
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060120/40d2c2d4/attachment.htm
  • Simon Yeh at Jan 20, 2006 at 6:15 pm
    Thanks for the helps. I have updated YAML to 0.53.

    Looks to me my Catalyst installation problem most stem from my CPAN
    (or CPANPLUS?) confgurations as such errors popped everywhere when
    cpan installing catalyst dependent modules:
    Writing Makefile for Task::Catalyst
    /usr/bin/perl -Iinc Makefile.PL --config= --
    installdeps=Catalyst::Log::Log4perl,0,Catalyst::Plugin::StackTrace,
    0,Catalyst::Plugin::SubRequest,0,Catalyst::Plugin::Session,
    0,Catalyst::Plugin::Session::Store::File,
    0,Catalyst::Plugin::Session::State::Cookie,
    0,Catalyst::Plugin::Session::State::URI,
    0,Catalyst::Plugin::Authentication,
    0,Catalyst::Plugin::Authentication::Store::DBIC,
    0,Catalyst::Plugin::Authentication::Store::Htpasswd,
    0,Catalyst::Plugin::Authorization::ACL,
    0,Catalyst::Plugin::Authorization::Roles,
    0,Test::WWW::Mechanize::Catalyst,0
    *** Installing dependencies...
    [MSG] Checking if source files are up to date
    [MSG] Retrieving /Users/admin/.cpanplus/sourcefiles.2.15.stored
    *** Installing Catalyst::Log::Log4perl...
    ==> MISSING Signature file! <==
    Running [/usr/bin/make UNINST=1]...
    Running [/usr/bin/make test UNINST=1]...
    PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
    1..1
    not ok 1 - use Catalyst::Log::Log4perl;
    # Failed test 'use Catalyst::Log::Log4perl;'# in test.pl at
    line 4.# Tried to use 'Catalyst::Log::Log4perl'.# Error:
    Can't locate Params/Validate.pm in @INC (@INC contains: blib/lib
    blib/arch /Users/admin/.cpanplus/5.8.6/build/Catalyst-Log-
    Log4perl-0.1/blib/lib /System/Library/Perl/5.8.6/darwin-thread-
    multi-2level /System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-
    thread-multi-2level /Library/Perl/5.8.6 /Library/Perl /Network/
    Library/Perl/5.8.6/darwin-thread-multi-2level /Network/Library/Perl/
    5.8.6 /Network/Library/Perl /System/Library/Perl/Extras/5.8.6/
    darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.6 /
    Library/Perl/5.8.1 .) at blib/lib/Catalyst/Log/Log4perl.pm line 60.
    # BEGIN failed--compilation aborted at test.pl line 4.
    # Compilation failed in require at (eval 3) line 2.
    # BEGIN failed--compilation aborted at (eval 3) line 2.
    # Looks like you failed 1 test of 1.
    make[1]: *** [test_dynamic] Error 1
    Before installing Catalyst I installed CPANPLUS but bailed out (or I
    thought I did) because I turned on the cpan feature of verifying
    signed modules without GnuPGP and a few other modules in placed
    first. I later installed GnuPGP and generated my keys. Now when
    running cpan as root, I often got this warning:

    gpg: WARNING: unsafe ownership on configuration file `/Users/
    syeh/.gnupg/gpg.conf'

    for example, now I am not able to even upgrade CPAN with cpan, here
    is the log:
    syehmac:~ root# cpan

    cpan shell -- CPAN exploration and modules installation (v1.76)
    ReadLine support enabled

    cpan> install
    Bundle::CPAN
    CPAN: Storable loaded ok
    Going to read /Users/syeh/.cpan/Metadata
    Database was generated on Thu, 19 Jan 2006 23:12:42 GMT
    File::Spec is up to date.
    Digest::MD5 is up to date.
    Compress::Zlib is up to date.
    Archive::Tar is up to date.
    Data::Dumper is up to date.
    Net::Telnet is up to date.
    Net::Cmd is up to date.
    Term::ReadKey is up to date.
    Term::ReadLine::Perl is up to date.
    Running install for module CPAN
    Running make for A/AN/ANDK/CPAN-1.83.tar.gz
    CPAN: Digest::MD5 loaded ok
    CPAN: Compress::Zlib loaded ok
    Checksum for /Users/syeh/.cpan/sources/authors/id/A/AN/ANDK/
    CPAN-1.83.tar.gz ok
    Scanning cache /Users/syeh/.cpan/build for sizes
    CPAN-1.83/
    CPAN-1.83/lib/
    CPAN-1.83/lib/CPAN.pm
    CPAN-1.83/lib/CPAN/
    CPAN-1.83/lib/CPAN/Tarzip.pm
    CPAN-1.83/lib/CPAN/Admin.pm
    CPAN-1.83/lib/CPAN/Version.pm
    CPAN-1.83/lib/CPAN/Nox.pm
    CPAN-1.83/lib/CPAN/Debug.pm
    CPAN-1.83/lib/CPAN/HandleConfig.pm
    CPAN-1.83/lib/CPAN/FirstTime.pm
    CPAN-1.83/lib/Bundle/
    CPAN-1.83/lib/Bundle/CPAN.pm
    CPAN-1.83/inc/
    CPAN-1.83/inc/Test/
    CPAN-1.83/inc/Test/Builder.pm
    CPAN-1.83/inc/Test/More.pm
    CPAN-1.83/Releasenotes
    CPAN-1.83/t/
    CPAN-1.83/t/loadme.t
    CPAN-1.83/t/vcmp.t
    CPAN-1.83/t/signature.t
    CPAN-1.83/t/mirroredby.t
    CPAN-1.83/t/version.t
    CPAN-1.83/t/pod.t
    CPAN-1.83/t/Nox.t
    CPAN-1.83/PAUSE2003.pub
    CPAN-1.83/ChangeLog.old
    CPAN-1.83/MANIFEST
    CPAN-1.83/MANIFEST.SKIP
    CPAN-1.83/scripts/
    CPAN-1.83/scripts/cpan
    CPAN-1.83/PAUSE2005.pub
    CPAN-1.83/META.yml
    CPAN-1.83/Todo
    CPAN-1.83/ChangeLog
    CPAN-1.83/Changes.old
    CPAN-1.83/Makefile.PL
    CPAN-1.83/README
    CPAN-1.83/SIGNATURE
    Removing previously used /Users/syeh/.cpan/build/CPAN-1.83

    CPAN.pm: Going to build A/AN/ANDK/CPAN-1.83.tar.gz

    Importing PAUSE public key into your GnuPG keychain... gpg:
    WARNING: unsafe ownership on configuration file `/Users/syeh/.gnupg/
    gpg.conf'
    done!
    (You may wish to trust it locally with 'gpg --lsign-key 450F89EC')
    Checking if your kit is complete...
    Looks good
    Writing Makefile for CPAN
    cp lib/CPAN.pm blib/lib/CPAN.pm
    cp lib/CPAN/Admin.pm blib/lib/CPAN/Admin.pm
    cp lib/CPAN/Tarzip.pm blib/lib/CPAN/Tarzip.pm
    cp lib/CPAN/Debug.pm blib/lib/CPAN/Debug.pm
    cp lib/CPAN/HandleConfig.pm blib/lib/CPAN/HandleConfig.pm
    cp lib/Bundle/CPAN.pm blib/lib/Bundle/CPAN.pm
    cp lib/CPAN/Version.pm blib/lib/CPAN/Version.pm
    cp lib/CPAN/Nox.pm blib/lib/CPAN/Nox.pm
    cp lib/CPAN/FirstTime.pm blib/lib/CPAN/FirstTime.pm
    cp scripts/cpan blib/script/cpan
    /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/cpan
    Manifying blib/man1/cpan.1
    Manifying blib/man3/CPAN.3pm
    Manifying blib/man3/CPAN::Version.3pm
    Manifying blib/man3/CPAN::Admin.3pm
    Manifying blib/man3/Bundle::CPAN.3pm
    Manifying blib/man3/CPAN::Nox.3pm
    Manifying blib/man3/CPAN::FirstTime.3pm
    /usr/bin/make -- OK
    Running make test
    PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
    "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
    t/loadme........ok
    t/mirroredby....ok
    t/Nox...........ok
    t/pod...........ok
    t/signature.....gpg: WARNING: unsafe ownership on configuration
    file `/Users/syeh/.gnupg/gpg.conf'
    gpg: WARNING: unsafe ownership on configuration file `/Users/
    syeh/.gnupg/gpg.conf'
    gpg: Signature made Thu Jan 5 03:02:17 2006 EST using DSA key ID
    A317C15D
    gpg: external program calls are disabled due to unsafe options file
    permissions
    gpg: keyserver communications error: general error
    gpg: Can't check signature: public key not found
    ==> BAD/TAMPERED signature detected! <==
    t/signature.....FAILED test 1
    Failed 1/1 tests, 0.00% okay
    t/vcmp..........ok
    t/version.......ok
    Failed Test Stat Wstat Total Fail Failed List of Failed
    ----------------------------------------------------------------------
    -------------------
    t/signature.t 1 1 100.00% 1
    Failed 1/7 test scripts, 85.71% okay. 1/68 subtests failed, 98.53%
    okay.
    make: *** [test_dynamic] Error 255
    /usr/bin/make test -- NOT OK
    Running make install
    make test had returned bad status, won't install without force
    Bundle summary: The following items in bundle Bundle::CPAN had
    installation
    problems:
    CPAN

    cpan>
    I wonder if this is due to the ownership of my ~/.gnupg/gpg.conf
    since I'm running cpan as root?
    Is there a way for root to trust my keys? Or perhaps, how can I
    reconfig cpan to turn off the feature that verifying module signatures?

    Sorry these questions seems beyond the subject of Catalyst
    discussion, but I am just trying to get Catalyst installed, didn't
    think it can be so aggravated :-(

    --- Simon

    ______________________________________________________________________
    This email has been scanned by the MessageLabs Email Security System.
    For more information please visit http://www.messagelabs.com/email
    ______________________________________________________________________
  • Matt S Trout at Jan 19, 2006 at 9:33 pm

    On Thu, Jan 19, 2006 at 03:24:44PM -0500, Simon Yeh wrote:
    Hi,

    I just tried installing Catalyst on my iBook (Mac OS X, 10.4.2) by
    following what Catalyst::Manual::Tutorial suggested:

    # running as root
    perl -MCPAN -e 'install Task::Catalyst'

    however, it failed in several points, and I'm not sure they are
    related (did record the installation log, but its too verbose to post
    here), so let me post some of them and see if I can get help to solve
    them one by one.

    1. CPAM.pm keeps thinking Catalyst::Engine::Apache is missing (even
    after I separately installed it):
    Double check the version of C::E::A.

    Also, you've got a duff YAML.pm - upgrade to the very latest release of that
    and Spiffy to fix that (c.f. the very recent thread on here discussing it)

    --
    Matt S Trout Offering custom development, consultancy and support
    Technical Director contracts for Catalyst, DBIx::Class and BAST. Contact
    Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information

    + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedJan 19, '06 at 9:18p
activeJan 20, '06 at 6:15p
posts7
users5
websitecatalystframework.org
irc#catalyst

People

Translate

site design / logo © 2022 Grokbase