Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

unable to install Plack

by jjmoka (Beadle)
on Jun 15, 2015 at 13:45 UTC ( [id://1130472]=perlquestion: print w/replies, xml ) Need Help??

jjmoka has asked for the wisdom of the Perl Monks concerning the following question:

I'd like to try Plack. The official site says only to do 'cpanm Task::Plack' as it couldn't end but well. But it's not my case. The is no forum to ask there. I received a new user account on a server, where perl version in 5.8.5. cpan didn't succed to intsall Plack, I thus installed cpanm (cpan App::cpanminus). It also failed. I thought it was better to update the perl distribution, so I added perlbrew and then perl  5.22.0. But with no better results.

It starts as

-> Working on Task::Plack Fetching http://www.cpan.org/authors/id/M/MI/MIYAGAWA/Task-Plack-0.28. +tar.gz ... OK Configuring Task-Plack-0.28 ... OK ==> Found dependencies: Plack::Middleware::Deflater, Starman, Twiggy, +Plack::Middleware::Header, Plack, Plack::Middleware::Debug, Corona, H +TTP::Server::Simple::PSGI, Plack::Middleware::Auth::Digest, Plack::Mi +ddleware::ConsoleLogger, Plack::App::Proxy, Plack::Middleware::Sessio +n, Starlet, FCGI::Client, Plack::Middleware::ReverseProxy --> Working on Plack::Middleware::Deflater Fetching http://www.cpan.org/authors/id/K/KA/KAZEBURO/Plack-Middleware +-Deflater-0.12.tar.gz ... OK Configuring Plack-Middleware-Deflater-0.12 ... OK

the fails on many dependencies and ends as:

==> Found dependencies: Plack::Request, Plack, Plack::Middleware ! Installing the dependencies failed: Module 'Plack' is not installed, + Module 'Plack::Middleware' is not installed, Module 'Plack::Request' + is not installed ! Bailing out the installation for Plack-Middleware-ReverseProxy-0.15. ! Installing the dependencies failed: Module 'Starman' is not installe +d, Module 'Plack::Middleware::ReverseProxy' is not installed, Module +'Plack::Middleware::Debug' is not installed, Module 'Plack::Middlewar +e::Header' is not installed, Module 'Plack' is not installed, Module +'FCGI::Client' is not installed, Module 'Twiggy' is not installed, Mo +dule 'Starlet' is not installed, Module 'Corona' is not installed, Mo +dule 'Plack::Middleware::Session' is not installed, Module 'Plack::Ap +p::Proxy' is not installed, Module 'Plack::Middleware::ConsoleLogger' + is not installed, Module 'Plack::Middleware::Auth::Digest' is not in +stalled, Module 'Plack::Middleware::Deflater' is not installed, Modul +e 'HTTP::Server::Simple::PSGI' is not installed ! Bailing out the installation for Task-Plack-0.28. 1 distribution installed

Any web discussion on Plack supposes it's installed, and anyhow the installation should come with no problems. But in a pretty fresh environment of my new server home, there is non choice to have it installed. Any suggestion on how to have it really running will be appreciated

Thanks

Replies are listed 'Best First'.
Re: unable to install Plack
by choroba (Cardinal) on Jun 15, 2015 at 15:55 UTC
    Learn how to read the logs. You skipped all the important parts: the first real failure can give a clue to us, not the last summary. Also, use <code>...</code> tags for the logs, maybe combined with a <readme> if they're long.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
Re: unable to install Plack
by jjmoka (Beadle) on Jun 15, 2015 at 16:24 UTC

    Ok thanks to all. Actually I already upgraded to 5.22.0.....and yes, I'll learn better how to read and post logs. Anyhow I fixed the problem. I did like that:

    1. perlbrew install-cpanm 2. perlbrew switch perl-5.22.0 3. cpan 4. cpan> upgrade 5. 1 hour to say [yes] to any question 6. ~/perl5/perlbrew/bin/cpanm Plack 7. ~/perl5/perlbrew/bin/cpanm Task::Plack

    With not much experience I hope I just found the long way, as it is should be the standrad one, it's a mess!

Re: unable to install Plack
by Bloodnok (Vicar) on Jun 15, 2015 at 15:33 UTC
    I suspect that a later version of perl is needed - 5.8.5 was released in 2004, 5 years before Plack stakes its' earliest copyright claim.

    A user level that continues to overstate my experience :-))

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1130472]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-23 09:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found