perl-poet icon indicating copy to clipboard operation
perl-poet copied to clipboard

run.pl not working on windows

Open hstaugaard opened this issue 12 years ago • 1 comments

I can't get the standard run.pl to work on Windows (Strawberry Perl 5.16). It seems to be a path problem - can't find the plackupexecutable.

I looked at the code and wondered; any special reason to use IPC::System::Simple?

Here's what I've done to get it running on Windows:

replace:

my @cmd = ("plackup", @options, $app_psgi);
print "Running " . join(", ", @cmd) . "\n";
run(@cmd);

with:

my @cmd = (@options, $app_psgi);
print "Running " . join(', ', 'plackup', @cmd) . "\n";
my $runner = Plack::Runner->new;
$runner->parse_options(@cmd);
$runner->run;

hstaugaard avatar Nov 07 '12 08:11 hstaugaard

Thanks - will be fixed in next release

On Nov 7, 2012, at 3:09 AM, hstaugaard wrote:

I can't get the standard run.pl to work on Windows (Strawberry Perl 5.16). It seems to be a path problem - can't find the plackupexecutable.

I looked at the code and wondered; any special reason to use IPC::System::Simple?

Here's what I've done to get it running on Windows:

replace:

my @cmd = ("plackup", @options, $app_psgi); print "Running " . join(", ", @cmd) . "\n"; run(@cmd); with:

my @cmd = (@options, $app_psgi); print "Running " . join(', ', 'plackup', @cmd) . "\n"; my $runner = Plack::Runner->new; $runner->parse_options(@cmd); $runner->run; — Reply to this email directly or view it on GitHub.

jonswar avatar Nov 24 '12 12:11 jonswar