From brian.smart at blueyonder.co.uk Sat Feb 15 10:10:24 2003 From: brian.smart at blueyonder.co.uk (Brian Smart) Date: Thu Aug 5 00:08:37 2004 Subject: OxPM: Adding Perl Modules to my Web Site Message-ID: Hello All, I have been trying to add a module to my web site but when I try, I am told (as part of the process) that my CPAN module needs to be updated to the latest version. Presumably because I do not have the authority to update the sever Perl files, it always fails. I have now tried to add the latest version to my web site and in doing so had the following responses from the server during the process. [bsmart CPAN-1.65]$ perl Makefile.PL Lib=/home/sites/www.bms.me.uk/web/cgi-bin PREFIX=/home/sites/www.bms.me.uk/web/cgi-bin Updating your MANIFEST file: Adding 'CPAN/MakeMaker.pm' Checking if your kit is complete... Looks good Writing Makefile for CPAN [bsmart CPAN-1.65]$ make cp lib/CPAN/FirstTime.pm blib/lib/CPAN/FirstTime.pm Skip blib/lib/CPAN/MakeMaker.pm (unchanged) cp lib/CPAN.pm blib/lib/CPAN.pm cp lib/CPAN/Admin.pm blib/lib/CPAN/Admin.pm cp lib/Bundle/CPAN.pm blib/lib/Bundle/CPAN.pm cp lib/CPAN/Nox.pm blib/lib/CPAN/Nox.pm cp scripts/cpan blib/script/cpan /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/cpan Manifying blib/man3/CPAN::FirstTime.3 /usr/bin/pod2man: Invalid man page - no documentation in lib/CPAN/FirstTime.pm Couldn't install blib/man3/CPAN::FirstTime.3 Manifying blib/man1/cpan.1 /usr/bin/pod2man: Invalid man page - no documentation in scripts/cpan Couldn't install blib/man1/cpan.1 Manifying blib/man3/CPAN::Admin.3 /usr/bin/pod2man: Invalid man page - no documentation in lib/CPAN/Admin.pm Couldn't install blib/man3/CPAN::Admin.3 Manifying blib/man3/CPAN.3 /usr/bin/pod2man: Invalid man page - no documentation in lib/CPAN.pm Couldn't install blib/man3/CPAN.3 Manifying blib/man3/Bundle::CPAN.3 /usr/bin/pod2man: Invalid man page - no documentation in lib/Bundle/CPAN.pm Couldn't install blib/man3/Bundle::CPAN.3 Manifying blib/man3/CPAN::Nox.3 /usr/bin/pod2man: Invalid man page - no documentation in lib/CPAN/Nox.pm Couldn't install blib/man3/CPAN::Nox.3 [bsmart CPAN-1.65]$ make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/loadme............ok t/mirroredby........ok t/Nox...............ok t/vcmp..............ok All tests successful. Files=4, Tests=39, 5 wallclock secs ( 4.96 cusr + 0.47 csys = 5.43 CPU) [bsmart CPAN-1.65]$ make install Installing /home/sites/www.bms.me.uk/web/cgi-bin/CPAN/MakeMaker.pm Installing /home/sites/www.bms.me.uk/web/cgi-bin/CPAN/FirstTime.pm Installing /home/sites/www.bms.me.uk/web/cgi-bin/CPAN/Admin.pm Installing /home/sites/www.bms.me.uk/web/cgi-bin/CPAN/Nox.pm Installing /home/sites/www.bms.me.uk/web/cgi-bin/CPAN.pm Installing /home/sites/www.bms.me.uk/web/cgi-bin/Bundle/CPAN.pm Installing /home/sites/www.bms.me.uk/web/cgi-bin/man/man1/cpan.1 Installing /home/sites/www.bms.me.uk/web/cgi-bin/bin/cpan Writing /home/sites/www.bms.me.uk/web/cgi-bin/i386-linux/auto/CPAN/.packlist Appending installation info to /home/sites/www.bms.me.uk/web/cgi-bin/i386-linux/perllocal.pod [bsmart CPAN-1.65]$ Does this look as though I have installed the module OK and if yes, how do I ensure that I use it rather than the version on the server root when I try to install other modules? Please respond to this seemingly impossible request (from my point of view!) Regards Brian Smart From kake at earth.li Mon Feb 17 05:45:44 2003 From: kake at earth.li (Kate L Pugh) Date: Thu Aug 5 00:08:37 2004 Subject: OxPM: Adding Perl Modules to my Web Site In-Reply-To: ; from brian.smart@blueyonder.co.uk on Sat, Feb 15, 2003 at 04:10:24PM -0000 References: Message-ID: <20030217114544.C15170@ox.compsoc.net> On Sat 15 Feb 2003, Brian Smart wrote: > I have been trying to add a module to my web site but when I try, I > am told (as part of the process) that my CPAN module needs to be > updated to the latest version. Presumably because I do not have the > authority to update the sever Perl files, it always fails. I don't use CPAN.pm myself, but this sounds like a sensible reason for it failing - have you managed to install other modules using CPAN.pm, or was this your first attempt at it? The times I *have* tried CPAN.pm, it's always complained about there being a newer version but I just ignored it and it installed what I'd asked it to fine. > I have now tried to add the latest version to my web site and in > doing so had the following responses from the server during the > process. > > [bsmart CPAN-1.65]$ perl Makefile.PL > Lib=/home/sites/www.bms.me.uk/web/cgi-bin > PREFIX=/home/sites/www.bms.me.uk/web/cgi-bin This is confusing me slightly - did you type the Lib and PREFIX bits or did the Makefile.PL emit those? (If the former then I think you want 'LIB' not 'Lib', and I also am not sure whether LIB is necessary in all cases; I never use it and stuff works fine.) > [bsmart CPAN-1.65]$ make > cp lib/CPAN/FirstTime.pm blib/lib/CPAN/FirstTime.pm > Skip blib/lib/CPAN/MakeMaker.pm (unchanged) OK, this implies that this isn't the first time you ran make in this directory (since otherwise the blib directory wouldn't even exist). Is this the case? What happens when you try this with freshly-unpacked sources? > Manifying blib/man3/CPAN::FirstTime.3 > /usr/bin/pod2man: Invalid man page - no documentation in > lib/CPAN/FirstTime.pm This is odd too - FirstTime.pm certainly does contain some pod documentation. > Couldn't install blib/man3/CPAN::FirstTime.3 So it was expecting to find some documentation that it could strip out and install as this man page - but couldn't. > [bsmart CPAN-1.65]$ make install > Installing /home/sites/www.bms.me.uk/web/cgi-bin/CPAN/MakeMaker.pm > Installing /home/sites/www.bms.me.uk/web/cgi-bin/CPAN/FirstTime.pm > Installing /home/sites/www.bms.me.uk/web/cgi-bin/CPAN/Admin.pm > Installing /home/sites/www.bms.me.uk/web/cgi-bin/CPAN/Nox.pm > Installing /home/sites/www.bms.me.uk/web/cgi-bin/CPAN.pm > Installing /home/sites/www.bms.me.uk/web/cgi-bin/Bundle/CPAN.pm > Installing /home/sites/www.bms.me.uk/web/cgi-bin/man/man1/cpan.1 > Installing /home/sites/www.bms.me.uk/web/cgi-bin/bin/cpan > Writing /home/sites/www.bms.me.uk/web/cgi-bin/i386-linux/auto/CPAN/.packlist > Appending installation info to > /home/sites/www.bms.me.uk/web/cgi-bin/i386-linux/perllocal.pod > [bsmart CPAN-1.65]$ OK, it looks installed apart from the documentation - although a cgi-bin directory is kind of an odd place to keep perl modules. > Does this look as though I have installed the module OK and if yes, > how do I ensure that I use it rather than the version on the server > root when I try to install other modules? There is a CPAN (note not CPAN.pm) FAQ at http://cpan.org/misc/cpan-faq.html which explains how to use modules in non-standard places: http://cpan.org/misc/cpan-faq.html#How_use_private But I'm not sure how this would work with CPAN.pm You might want to try one or more of: (a) just hand-installing your other modules as you've done with CPAN.pm, (b) trying CPANPLUS, the next-generation CPAN.pm ( http://search.cpan.org/author/KANE/CPANPLUS/ ) (c) asking on a busier mailing list such as london.pm ( http://london.pm.org/join/ ) Kake From brian.smart at blueyonder.co.uk Tue Feb 18 02:45:57 2003 From: brian.smart at blueyonder.co.uk (Brian Smart) Date: Thu Aug 5 00:08:37 2004 Subject: OxPM: Adding Perl Modules to my Web Site In-Reply-To: <20030217114544.C15170@ox.compsoc.net> Message-ID: Hello Kate, Thanks for your comments. I will have a study and see if I can make any progress. There is one point that you could perhaps clarify. You say: "OK, it looks installed apart from the documentation - although a cgi-bin directory is kind of an odd place to keep perl modules. " Where would you normally place perl modules? Regards Brian Smart -----Original Message----- From: owner-oxford-pm-list@pm.org [mailto:owner-oxford-pm-list@pm.org]On Behalf Of Kate L Pugh Sent: 17 February 2003 11:46 To: oxford-pm-list@happyfunball.pm.org Subject: Re: OxPM: Adding Perl Modules to my Web Site On Sat 15 Feb 2003, Brian Smart wrote: > I have been trying to add a module to my web site but when I try, I > am told (as part of the process) that my CPAN module needs to be > updated to the latest version. Presumably because I do not have the > authority to update the sever Perl files, it always fails. I don't use CPAN.pm myself, but this sounds like a sensible reason for it failing - have you managed to install other modules using CPAN.pm, or was this your first attempt at it? The times I *have* tried CPAN.pm, it's always complained about there being a newer version but I just ignored it and it installed what I'd asked it to fine. > I have now tried to add the latest version to my web site and in > doing so had the following responses from the server during the > process. > > [bsmart CPAN-1.65]$ perl Makefile.PL > Lib=/home/sites/www.bms.me.uk/web/cgi-bin > PREFIX=/home/sites/www.bms.me.uk/web/cgi-bin This is confusing me slightly - did you type the Lib and PREFIX bits or did the Makefile.PL emit those? (If the former then I think you want 'LIB' not 'Lib', and I also am not sure whether LIB is necessary in all cases; I never use it and stuff works fine.) > [bsmart CPAN-1.65]$ make > cp lib/CPAN/FirstTime.pm blib/lib/CPAN/FirstTime.pm > Skip blib/lib/CPAN/MakeMaker.pm (unchanged) OK, this implies that this isn't the first time you ran make in this directory (since otherwise the blib directory wouldn't even exist). Is this the case? What happens when you try this with freshly-unpacked sources? > Manifying blib/man3/CPAN::FirstTime.3 > /usr/bin/pod2man: Invalid man page - no documentation in > lib/CPAN/FirstTime.pm This is odd too - FirstTime.pm certainly does contain some pod documentation. > Couldn't install blib/man3/CPAN::FirstTime.3 So it was expecting to find some documentation that it could strip out and install as this man page - but couldn't. > [bsmart CPAN-1.65]$ make install > Installing /home/sites/www.bms.me.uk/web/cgi-bin/CPAN/MakeMaker.pm > Installing /home/sites/www.bms.me.uk/web/cgi-bin/CPAN/FirstTime.pm > Installing /home/sites/www.bms.me.uk/web/cgi-bin/CPAN/Admin.pm > Installing /home/sites/www.bms.me.uk/web/cgi-bin/CPAN/Nox.pm > Installing /home/sites/www.bms.me.uk/web/cgi-bin/CPAN.pm > Installing /home/sites/www.bms.me.uk/web/cgi-bin/Bundle/CPAN.pm > Installing /home/sites/www.bms.me.uk/web/cgi-bin/man/man1/cpan.1 > Installing /home/sites/www.bms.me.uk/web/cgi-bin/bin/cpan > Writing /home/sites/www.bms.me.uk/web/cgi-bin/i386-linux/auto/CPAN/.packlist > Appending installation info to > /home/sites/www.bms.me.uk/web/cgi-bin/i386-linux/perllocal.pod > [bsmart CPAN-1.65]$ OK, it looks installed apart from the documentation - although a cgi-bin directory is kind of an odd place to keep perl modules. > Does this look as though I have installed the module OK and if yes, > how do I ensure that I use it rather than the version on the server > root when I try to install other modules? There is a CPAN (note not CPAN.pm) FAQ at http://cpan.org/misc/cpan-faq.html which explains how to use modules in non-standard places: http://cpan.org/misc/cpan-faq.html#How_use_private But I'm not sure how this would work with CPAN.pm You might want to try one or more of: (a) just hand-installing your other modules as you've done with CPAN.pm, (b) trying CPANPLUS, the next-generation CPAN.pm ( http://search.cpan.org/author/KANE/CPANPLUS/ ) (c) asking on a busier mailing list such as london.pm ( http://london.pm.org/join/ ) Kake From kake at earth.li Tue Feb 18 04:20:20 2003 From: kake at earth.li (Kate L Pugh) Date: Thu Aug 5 00:08:37 2004 Subject: OxPM: Adding Perl Modules to my Web Site In-Reply-To: ; from brian.smart@blueyonder.co.uk on Tue, Feb 18, 2003 at 08:45:57AM -0000 References: <20030217114544.C15170@ox.compsoc.net> Message-ID: <20030218102020.B25035@ox.compsoc.net> Kate L Pugh wrote: >> OK, it looks installed apart from the documentation - although a >> cgi-bin directory is kind of an odd place to keep perl modules. On Tue 18 Feb 2003, Brian Smart wrote: > Where would you normally place perl modules? I keep privately-installed things in /home/kake/local/ so I have for example: kake@the:~$ ls /home/kake/local/share/perl/5.6.1/ Array/ Class/ HTTP/ LWP.pm Regexp/ Test/ Tree/ auto/ Bundle/ File/ Hook/ Local/ Search/ Text/ URI/ lwpcook.pod CGI/ HTML/ LWP/ Net/ Sub/ Tie/ WWW/ But this is just personal choice. What do other people on this list use? I would generally only keep actual CGI programs (and maybe their data files, depending on server setup) in the cgi-bin directory. Kake From grimoire at corinne.cpio.org Tue Feb 18 05:01:17 2003 From: grimoire at corinne.cpio.org (Dave Page) Date: Thu Aug 5 00:08:37 2004 Subject: OxPM: Adding Perl Modules to my Web Site In-Reply-To: <20030218102020.B25035@ox.compsoc.net>; from kake@earth.li on Tue, Feb 18, 2003 at 10:20:20AM +0000 References: <20030217114544.C15170@ox.compsoc.net> <20030218102020.B25035@ox.compsoc.net> Message-ID: <20030218060117.R24894@corinne.cpio.org> On Tue, Feb 18, 2003 at 10:20:20AM +0000, Kate L Pugh wrote: > On Tue 18 Feb 2003, Brian Smart wrote: > > Where would you normally place perl modules? > But this is just personal choice. What do other people on this list use? ~/perllibs normally. As a general rule, keeping things out of your document root (the directory that can be accessed from the web) unless they strictly need to be there is a good idea security-wise. Dave -- lysander: btw, what's the difference between institutionaly and personaly racist? YazzY - one is where you go home and hate black people, the other is where you go to work and hate black people - #freebsd 06/12/2002 From kake at earth.li Tue Feb 18 05:54:58 2003 From: kake at earth.li (Kate L Pugh) Date: Thu Aug 5 00:08:37 2004 Subject: OxPM: Adding Perl Modules to my Web Site In-Reply-To: <20030218060117.R24894@corinne.cpio.org>; from grimoire@corinne.cpio.org on Tue, Feb 18, 2003 at 06:01:17AM -0500 References: <20030217114544.C15170@ox.compsoc.net> <20030218102020.B25035@ox.compsoc.net> <20030218060117.R24894@corinne.cpio.org> Message-ID: <20030218115458.D25035@ox.compsoc.net> On Tue 18 Feb 2003, Dave Page wrote: > As a general rule, keeping things out of your document root (the > directory that can be accessed from the web) unless they strictly > need to be there is a good idea security-wise. Yes; and though it might seem odd to be concerned about Perl modules (after all, they're freely available on CPAN, right?), it's too easy to get used to "this is where Perl modules live" and accidentally expose your company's proprietary modules to the outside world... Kake From brian.smart at blueyonder.co.uk Tue Feb 25 04:20:05 2003 From: brian.smart at blueyonder.co.uk (Brian Smart) Date: Thu Aug 5 00:08:37 2004 Subject: OxPM: Adding Perl Modules to my Web Site In-Reply-To: <20030218060117.R24894@corinne.cpio.org> Message-ID: Hi, Thanks to you all for your advice regarding where to put perllibs. Regards Brian Smart -----Original Message----- From: owner-oxford-pm-list@pm.org [mailto:owner-oxford-pm-list@pm.org]On Behalf Of Dave Page Sent: 18 February 2003 11:01 To: oxford-pm-list@happyfunball.pm.org Subject: Re: OxPM: Adding Perl Modules to my Web Site On Tue, Feb 18, 2003 at 10:20:20AM +0000, Kate L Pugh wrote: > On Tue 18 Feb 2003, Brian Smart wrote: > > Where would you normally place perl modules? > But this is just personal choice. What do other people on this list use? ~/perllibs normally. As a general rule, keeping things out of your document root (the directory that can be accessed from the web) unless they strictly need to be there is a good idea security-wise. Dave -- lysander: btw, what's the difference between institutionaly and personaly racist? YazzY - one is where you go home and hate black people, the other is where you go to work and hate black people - #freebsd 06/12/2002