From christopher.p.hart at gmail.com Mon May 9 13:39:42 2011 From: christopher.p.hart at gmail.com (Christopher Hart) Date: Mon, 9 May 2011 13:39:42 -0700 Subject: [LasVegas-pm] [San-Diego-pm] help In-Reply-To: <4DC8314A.5070601@fentin.com> References: <4DC8314A.5070601@fentin.com> Message-ID: Hi Joel, I've seen browsers behave poorly over the . (cwd) in @INC. Have you tried doing 'use lib qw(.);' or 'use lib qw( /path/to/public_html/cgi-bin );' ? On Mon, May 9, 2011 at 11:24 AM, Joel Fentin wrote: > Had to install Image::Size in cgi-bin. networksolutions won't install perl > modules. > > error message: > > Can't locate auto/Image/Size/jpegsize.al in @INC > (@INC contains: ../ > ../Image > ../auto/Image/ > ./auto/Image/Size/ > auto/Image/Size/jpegsize.al > auto/Image/Size/ > ../auto/Image/Size/ > /usr/lib/perl5/5.8.7/i686-linux > /usr/lib/perl5/5.8.7 > /usr/lib/perl5/site_perl/5.8.7/i686-linux > /usr/lib/perl5/site_perl/5.8.7 > /usr/lib/perl5/site_perl > /usr/lib/perl5/vendor_perl/5.8.7/i686-linux > /usr/lib/perl5/vendor_perl/5.8.7 > /usr/lib/perl5/vendor_perl .) > at ..//Image/Size.pm line 213 > > Addional notes: > > + I have dropped jpegsize.al all over the place and have changed > permissions to 755. > > + I have added everything I can think of to @INC. > > + current directory is /public_html/cgi-bin/Admin as is the application > program. > > + Where the files are: > /public_html/cgi-bin/auto/Image/Size/jpegsize.al (& elsewhere) > /public_html/cgi-bin/Image/Size.pm > > I'm going in circles and don't know what it wants. > > -- > Joel Fentin tel: 760-749-8863 > Biz Website: http://fentin.com > Personal Website: http://fentin.com/me > _______________________________________________ > San-Diego-pm mailing list > San-Diego-pm at pm.org > http://mail.pm.org/mailman/listinfo/san-diego-pm > -- Respectfully, Chris Hart Senior Internet Engineer, ZeroLag Communications, Inc. http://www.zerolag.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From christopher.p.hart at gmail.com Thu May 12 02:37:15 2011 From: christopher.p.hart at gmail.com (Christopher Hart) Date: Thu, 12 May 2011 02:37:15 -0700 Subject: [LasVegas-pm] [San-Diego-pm] help In-Reply-To: <20110511201920.GA28198@chrisgrau.com> References: <4DC8314A.5070601@fentin.com> <4DCAEA6D.8070602@fentin.com> <20110511201920.GA28198@chrisgrau.com> Message-ID: Sorry, allow me to clarify... 1. Disregard the file extensions, its neither here nor there as far as a.) the perl interpreter is concerned (shebang!) and b.) the mime type being set to cgi/perl in the webserver. 2. I was referring to browsers period, versus perl run via command-line. And because all appears correct otherwise, I suggested using a "use lib" statement; I still stand by that assessment without seeing the calling script. hth. :) On Wed, May 11, 2011 at 1:19 PM, Chris Grau wrote: > On Wed, May 11, 2011 at 12:58:37PM -0700, Joel Fentin wrote: > > On 5/11/2011 11:08 AM, Chris Grau wrote: > > >Your paths appear correct, according to the @INC listed in the error. > > >The only oddity is the file itself appearing in @INC, but I assume > > >it's because you were trying everything, including adding the file to > > >the list. > > > > Yup! > > > > >What's the file type of your jpegsize.al file (output of 'file > jpegsize.al')? > > > > The file seems to have perl code: > > sub jpegsize > > { > > etc........ > > > > There is one for gifs; one for pngs; etc. > > I've gone back and actually looked at the *.al files. I confused them > for *.so files. They're simply the autosplit functions. > > In that case, one of two things is wrong. Either your @INC is > incorrect, or you're missing one or more files. Please send the small > test script you're using and the complete recursive file listing of your > directory (I hope it's not too large, you can prune off other CGI > scripts or anything that isn't Image/Size). > _______________________________________________ > San-Diego-pm mailing list > San-Diego-pm at pm.org > http://mail.pm.org/mailman/listinfo/san-diego-pm > -- Respectfully, Chris Hart Senior Internet Engineer, ZeroLag Communications, Inc. http://www.zerolag.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From joel at fentin.com Wed May 11 10:08:52 2011 From: joel at fentin.com (Joel Fentin) Date: Wed, 11 May 2011 10:08:52 -0700 Subject: [LasVegas-pm] [San-Diego-pm] help In-Reply-To: References: <4DC8314A.5070601@fentin.com> Message-ID: <4DCAC2A4.3040703@fentin.com> On 5/9/2011 1:39 PM, Christopher Hart wrote: > Hi Joel, > > I've seen browsers behave poorly over the . (cwd) in @INC. > Have you tried doing 'use lib qw(.);' or 'use lib qw( > /path/to/public_html/cgi-bin );' ? Chris, Thank you for getting back to me. To the extent that I understand (which ain't much), you think the problem is tied to the browser. If so, I would expect different results with Chrome, IE, & FF. I get identical results. I once dropped this same module into cgi-bin in Hurricane Electric and didn't have these problems. My own suspicion is that networksolutions has set up security such that I have to present the path in a certain format. I called them and they have various levels of experts. The guy at the third level is taking his sweet time getting back to me. More later if I learn anything. > On Mon, May 9, 2011 at 11:24 AM, Joel Fentin > wrote: > > Had to install Image::Size in cgi-bin. networksolutions won't > install perl modules. > > error message: > > Can't locate auto/Image/Size/jpegsize.al > in @INC > (@INC contains: ../ > ../Image > ../auto/Image/ > ./auto/Image/Size/ > auto/Image/Size/jpegsize.al > auto/Image/Size/ > ../auto/Image/Size/ > /usr/lib/perl5/5.8.7/i686-linux > /usr/lib/perl5/5.8.7 > /usr/lib/perl5/site_perl/5.8.7/i686-linux > /usr/lib/perl5/site_perl/5.8.7 > /usr/lib/perl5/site_perl > /usr/lib/perl5/vendor_perl/5.8.7/i686-linux > /usr/lib/perl5/vendor_perl/5.8.7 > /usr/lib/perl5/vendor_perl .) > at ..//Image/Size.pm line 213 > > Addional notes: > > + I have dropped jpegsize.al all over the > place and have changed permissions to 755. > > + I have added everything I can think of to @INC. > > + current directory is /public_html/cgi-bin/Admin as is the > application program. > > + Where the files are: > /public_html/cgi-bin/auto/Image/Size/jpegsize.al > (& elsewhere) > /public_html/cgi-bin/Image/Size.pm > > I'm going in circles and don't know what it wants. > > -- > Joel Fentin tel: 760-749-8863 > Biz Website: http://fentin.com > Personal Website: http://fentin.com/me > _______________________________________________ > San-Diego-pm mailing list > San-Diego-pm at pm.org > http://mail.pm.org/mailman/listinfo/san-diego-pm > > > > > -- > Respectfully, > > Chris Hart > Senior Internet Engineer, > ZeroLag Communications, Inc. > http://www.zerolag.com > -- Joel Fentin tel: 760-749-8863 Biz Website: http://fentin.com Personal Website: http://fentin.com/me From joel at fentin.com Fri May 13 10:46:08 2011 From: joel at fentin.com (Joel Fentin) Date: Fri, 13 May 2011 10:46:08 -0700 Subject: [LasVegas-pm] [San-Diego-pm] help In-Reply-To: References: <4DC8314A.5070601@fentin.com> <4DCAEA6D.8070602@fentin.com> <20110511201920.GA28198@chrisgrau.com> Message-ID: <4DCD6E60.7020007@fentin.com> I believe I have found the problem. I had one letter of the wrong case in the path. Thank you for your trouble. On 5/12/2011 2:37 AM, Christopher Hart wrote: > Sorry, allow me to clarify... > > 1. Disregard the file extensions, its neither here nor there as > far as a.) the perl interpreter is concerned (shebang!) and b.) > the mime type being set to cgi/perl in the webserver. > > 2. I was referring to browsers period, versus perl run via > command-line. And because all appears correct otherwise, I > suggested using a "use lib" statement; I still stand by that > assessment without seeing the calling script. > > hth. :) > > On Wed, May 11, 2011 at 1:19 PM, Chris Grau > wrote: > > On Wed, May 11, 2011 at 12:58:37PM -0700, Joel Fentin wrote: > > On 5/11/2011 11:08 AM, Chris Grau wrote: > > >Your paths appear correct, according to the @INC listed in > the error. > > >The only oddity is the file itself appearing in @INC, but > I assume > > >it's because you were trying everything, including adding > the file to > > >the list. > > > > Yup! > > > > >What's the file type of your jpegsize.al > file (output of 'file jpegsize.al > ')? > > > > The file seems to have perl code: > > sub jpegsize > > { > > etc........ > > > > There is one for gifs; one for pngs; etc. > > I've gone back and actually looked at the *.al files. I > confused them > for *.so files. They're simply the autosplit functions. > > In that case, one of two things is wrong. Either your @INC is > incorrect, or you're missing one or more files. Please send > the small > test script you're using and the complete recursive file > listing of your > directory (I hope it's not too large, you can prune off other CGI > scripts or anything that isn't Image/Size). > _______________________________________________ > San-Diego-pm mailing list > San-Diego-pm at pm.org > http://mail.pm.org/mailman/listinfo/san-diego-pm > > > -- > Respectfully, > > Chris Hart > Senior Internet Engineer, > ZeroLag Communications, Inc. > http://www.zerolag.com -- Joel Fentin tel: 760-749-8863 Biz Website: http://fentin.com Personal Website: http://fentin.com/me