Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Strange behavior of Plack+Shotgun on Windows #478

azawawi opened this Issue · 3 comments

2 participants


On Windows, you need to add -Ilib for a new Dancer 0.09 fresh application to work under Plack+Shotgun:

plackup -Ilib -L Shotgun bin\

Otherwise you will get the following error when you access

Error while loading C:\Users\azawawi\TestApp\bin\ Can't locate
 in @INC (you may need to install the TestApp module) (@INC contains: C:/strawbe
rry/perl/site/lib/MSWin32-x64-multi-thread C:/strawberry/perl/site/lib C:/strawb
erry/perl/vendor/lib C:/strawberry/perl/lib .) at C:\Users\azawawi\TestApp\bin\a line 3.
BEGIN failed--compilation aborted at C:\Users\azawawi\TestApp\bin\ line 3.

On linux, you do not need to add the -Ilib


@azawawi Does this issue still exist?


@xsawyerx Dancer2 depends on Plack which depends on Test::TCP which does not install cleanly without a cpanm Test::TCP --notest on Windows 7 Ultimate 64-bit.

set PLACK_SHOTGUN_MEMORY_LEAK=1 && plackup -L Shotgun bin\app.psgi

Works :+1:


@azawawi Thank you! :+1:

@xsawyerx xsawyerx closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.