Strange behavior of Plack+Shotgun on Windows #478

Closed
azawawi opened this Issue Sep 22, 2013 · 3 comments

Comments

Projects
None yet
2 participants
@azawawi
Contributor

azawawi commented Sep 22, 2013

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\app.pl

Otherwise you will get the following error when you access http://127.0.0.1:5000:

Error while loading C:\Users\azawawi\TestApp\bin\app.pl: Can't locate TestApp.pm
 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
pp.pl line 3.
BEGIN failed--compilation aborted at C:\Users\azawawi\TestApp\bin\app.pl line 3.

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

@xsawyerx

This comment has been minimized.

Show comment Hide comment
@xsawyerx

xsawyerx Jun 23, 2015

Owner

@azawawi Does this issue still exist?

Owner

xsawyerx commented Jun 23, 2015

@azawawi Does this issue still exist?

@azawawi

This comment has been minimized.

Show comment Hide comment
@azawawi

azawawi Jun 25, 2015

Contributor

@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 👍

Contributor

azawawi commented Jun 25, 2015

@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 👍

@xsawyerx

This comment has been minimized.

Show comment Hide comment
@xsawyerx

xsawyerx Jun 25, 2015

Owner

@azawawi Thank you! 👍

Owner

xsawyerx commented Jun 25, 2015

@azawawi Thank you! 👍

@xsawyerx xsawyerx closed this Jun 25, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment