Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't locate Plack/Runner.pm when starting /bin/start-dev.pl #21

Closed
awongCM opened this issue Jun 18, 2014 · 2 comments
Closed

Can't locate Plack/Runner.pm when starting /bin/start-dev.pl #21

awongCM opened this issue Jun 18, 2014 · 2 comments

Comments

@awongCM
Copy link

awongCM commented Jun 18, 2014

This is the error I got when starting up the server.

andy@LINUXAWCM:~/Projects/Perl/yammer-alerts$ bin/start-dev.pl
Unknown option: l
Unknown option: p
Unknown option: e
Unknown option: a
Can't locate Plack/Runner.pm in @inc (@inc contains: local/lib/perl5 . /usr/share/perl/5.14 /usr/lib/perl/5.14) at /usr/local/bin/plackup line 6.
BEGIN failed--compilation aborted at /usr/local/bin/plackup line 6.

At first, I thought it was to do with the module Plack so I ran cpanm Module::Plack. But that didn't help much. So I'm stuck with it from running the web server.

Any ideas what I need to do next to troubleshoot further??

@jacqueslareau
Copy link
Owner

start-dev.pl is just a simple server startup script which is probably meant to be modified depending on your setup. For example, if you don't use carton, you have to remove the first 2 lines of the system call.

As for your issue, it seems it cannot find Plack/Runner.pm which is part of Plack's core.
Maybe run cpanm Plack?

@awongCM
Copy link
Author

awongCM commented Jun 19, 2014

Thanks jacques.

I removed the two lines of system call and then removed this other line called "-s Starman" as it couldn't find it.

Thus that leaves me with the following items.

my @cmd = (
"plackup",

"-L Shotgun",
"-p 5555",
"-E development",
"-a bin/app.pl"

);

system( join(" ", @cmd) );

started bin/start-dev.pl. It's working fine now.

@awongCM awongCM closed this as completed Jun 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants