Re: [Catalyst] script/myapp_server -r Can't exec "/usr/bin/perl" every 3 or 4 restarts

2009-04-30 Thread Dave Rolsky
On Thu, 30 Apr 2009, Matt S Trout wrote: On Thu, Apr 30, 2009 at 02:44:05PM +0200, Erik Wasser wrote: On Tuesday 28 April 2009, Matt S Trout wrote: Two possibilities: (1) exec a $^X to print @INC to get the "normal" @INC (2) use $Config{arch} and /^5.\/ to strip off the extra ones. Thought

Re: [Catalyst] script/myapp_server -r Can't exec "/usr/bin/perl" every 3 or 4 restarts

2009-04-30 Thread Matt S Trout
On Thu, Apr 30, 2009 at 02:44:05PM +0200, Erik Wasser wrote: > On Tuesday 28 April 2009, Matt S Trout wrote: > > > Two possibilities: > > > > (1) exec a $^X to print @INC to get the "normal" @INC > > > > (2) use $Config{arch} and /^5.\/ to strip off the extra ones. > > > > Thoughts? > > I think (

Re: [Catalyst] script/myapp_server -r Can't exec "/usr/bin/perl" every 3 or 4 restarts

2009-04-30 Thread Erik Wasser
On Tuesday 28 April 2009, Matt S Trout wrote: > Two possibilities: > > (1) exec a $^X to print @INC to get the "normal" @INC > > (2) use $Config{arch} and /^5.\/ to strip off the extra ones. > > Thoughts? I think (1) is more bulletproof. I think a restart costs a lot of time and an additional ca

Re: [Catalyst] script/myapp_server -r Can't exec "/usr/bin/perl" every 3 or 4 restarts

2009-04-28 Thread Matt S Trout
On Mon, Apr 27, 2009 at 12:45:29PM +0100, Mike Glen wrote: > Matt S Trout wrote: > >On Thu, Apr 23, 2009 at 09:51:59AM +0100, Mike Glen wrote: > > > >>I think it might be due to line 335 in HTTP.pm > >>335 $ENV{PERL5LIB} .= join $Config{path_sep}, @INC; > >> > > > >Hmm. That's to try

Re: [Catalyst] script/myapp_server -r Can't exec "/usr/bin/perl" every 3 or 4 restarts

2009-04-27 Thread Mike Glen
Matt S Trout wrote: On Thu, Apr 23, 2009 at 09:51:59AM +0100, Mike Glen wrote: I think it might be due to line 335 in HTTP.pm 335 $ENV{PERL5LIB} .= join $Config{path_sep}, @INC; Hmm. That's to try and make sure -I calls on the original perl invocation get included. I guess what

Re: [Catalyst] script/myapp_server -r Can't exec "/usr/bin/perl" every 3 or 4 restarts

2009-04-23 Thread Matt S Trout
On Thu, Apr 23, 2009 at 09:51:59AM +0100, Mike Glen wrote: > I think it might be due to line 335 in HTTP.pm > 335 $ENV{PERL5LIB} .= join $Config{path_sep}, @INC; Hmm. That's to try and make sure -I calls on the original perl invocation get included. I guess what you need to do is try somet

Re: [Catalyst] script/myapp_server -r Can't exec "/usr/bin/perl" every 3 or 4 restarts

2009-04-23 Thread Mike Glen
Erik Wasser wrote: On Wednesday 22 April 2009, Mike Glen wrote: I'm running the catalyst server (script/myapp_server) using the -r option to restart after changes are made but after every 3 or 4 restarts i get the error message Can't exec "/usr/bin/perl": Argument list too long at /usr/lib/

Re: [Catalyst] script/myapp_server -r Can't exec "/usr/bin/perl" every 3 or 4 restarts

2009-04-22 Thread Erik Wasser
On Wednesday 22 April 2009, Mike Glen wrote: > I'm running the catalyst server (script/myapp_server) using the -r > option to restart after changes are made but after every 3 or 4 > restarts i get the error message > > Can't exec "/usr/bin/perl": Argument list too long at > /usr/lib/perl5/site_per

[Catalyst] script/myapp_server -r Can't exec "/usr/bin/perl" every 3 or 4 restarts

2009-04-22 Thread Mike Glen
I'm running the catalyst server (script/myapp_server) using the -r option to restart after changes are made but after every 3 or 4 restarts i get the error message Can't exec "/usr/bin/perl": Argument list too long at /usr/lib/perl5/site_perl/5.8.5/Catalyst/Engine/HTTP.pm line 337. Does anyo