From jarich at perltraining.com.au Tue Feb 12 18:31:33 2008 From: jarich at perltraining.com.au (Jacinta Richardson) Date: Wed, 13 Feb 2008 13:31:33 +1100 Subject: [Canberra-pm] Next meeting: Wednesday 20th February 2008? Message-ID: <47B25685.4080109@perltraining.com.au> G'day folk, Paul Fenwick is in Canberra and has been asked to speak at the SAGE-AU ACT meeting. SAGE-AU is the System Administrators' Guild of Australia and is the SysAdmin industry body. SAGE-AU encourages non-members to attend a meeting or two before joining to get an idea of what it's all about - as such they would love for to invite you to attend (and you'd be welcome to partake of their free victuals). Of course Paul'd be happy to see you again too. The talk that Paul is giving is the talk he gave as the OSDC Dinner Keynote which was well received both by developers and partners alike. All the best, Jacinta =============================================================== ACT Chapter General Meeting Wednesday, 20th February 2008 =============================================================== Date: 20th February 2008 Third Wednesday of Month Time: 7:00 - 9:00 pm Agenda: 7:00 Welcome and Business at hand 7:15 Talk, food, et al 9:00 Meeting Close Title: An Illustrated History of Failure Abstract: The average individual is given little scope for failure, at least not the type that really matters. The opportunity for catastrophic failure, that influences nations or continents, has been traditionally reserved for royalty, parliament, and others in a position of great leadership. However in recent times we have developed a profession who have the opportunity to fail like never before. A profession that can make mistakes that are so monumental, so wide-reaching, and so costly they can shake civilization to its very core. This elite group, rarely seen by every day society, are the foundation upon which modern society depends. The few, the proud, the Software Developers. Join us for a voyage of discovery, as we travel back through history to some of the most monumental failures the world has ever seen. Speaker: Paul Fenwick Director of Training Perl Training Australia Who: SAGE-AU Members, System Administrators. (Visitors are welcome. After attending two meetings, visitors should become members.) http://www.sage-au.org.au/member.html RSVP: mark.suter at member.sage-au.org.au Purpose: To gather System Administrators, System Managers, PC Administrators and System Programmers. To lend a sympathetic ear to the plight of System Support. Drink: Orange juice and soft drink. Food: Pizza and snacks. Venue: Staff Training Lab ICTS - Building 14 Ground Floor Australian Defence Force Academy Northcott Drive Google Map: http://s39.zwit.org/ Lost? Call 0404-029-316 (Tim) or 0411-262-316 (Mark) There should plenty of parking after five o'clock and there are bicycle racks near the building. From jacinta.richardson at member.sage-au.org.au Tue Feb 12 21:29:38 2008 From: jacinta.richardson at member.sage-au.org.au (jacinta.richardson at member.sage-au.org.au) Date: Wed, 13 Feb 2008 16:29:38 +1100 (EST) Subject: [Canberra-pm] SAGE-AU 2008 Call for Participation Message-ID: <20080213052938.13059110080@teddybear.perltraining.com.au> SAGE-AU invites the members of Canberra PM to submit proposals to the 16th Australian System Administrators' Conference. (If messages of this nature are not welcome on this list then please let me know and I'll make sure not to trouble you further.) [Please forward this invitation to anyone you feel would be interested] 16th Annual System Administrators' Conference (SAGE-AU 2008) ============================================================ The System Administrators' Guild of Australia Adelaide, 11-15th August 2008 SAGE-AU was formed to advance the profession of System Administration by raising awareness of the need for System Administrators, and educating System Administrators in technical as well as professional issues. Our yearly conference provides a forum for System Administrators of all platforms and levels of experience to gather together and share their experiences. Further it provides an excellent opportunity to meet and network with acknowledged experts in the field. SAGE-AU 2008 will be held in Adelaide from the 11th-15th August. Tutorial Program: 11th - 13th August ------------------------------------ SAGE-AU 2008 will include three days of tutorials of both 3 hours and 6 hours duration. Previous years have included tutorials on topics such as: * Automating Windows Vista * Change Management * Issues in Unix Infrastructure Design * Management-101 For more details and to submit your proposal(s), visit our Call for Technical Presentations (http://www.sage-au.org.au/x/Xg8) Technical Program: 14th - 15th August ------------------------------------- For the first year, two parallel streams will be running. If your job includes looking after systems, networks, or machines for which you are not the sole-user, we'd love to hear you speak! Previous years have included talks on topics such as: * Security * Wireless Networks * System Administration Ethics * Virtualisation * Standards (and Compliance) For more details and to submit your proposal(s), visit our Call for Technical Presentations (http://www.sage-au.org.au/x/Xg8) If you have any questions or require assistance with your submission, please don't hesitate to ask! SAGE-AU 2008 Adelaide - Submission Dates ---------------------------------------- Call for Papers/Tutorials Issued 12th February 2008 Proposals Due 31st March 2008 Provisional Notification 28th April 2008 Draft Paper/Tutorials Due 2nd June 2008 Confirmed Acceptance and Contracts 16th June 2008 Final Paper/Tutorial Materials Due 14th July 2008 For all information, contacts and updates, see the SAGE-AU conference web site at http://www.sage-au.org.au/display/conf/ From John.Hockaday at ga.gov.au Thu Feb 21 15:42:30 2008 From: John.Hockaday at ga.gov.au (John.Hockaday at ga.gov.au) Date: Fri, 22 Feb 2008 10:42:30 +1100 Subject: [Canberra-pm] Trying to use cpan to install PERL modules into a non-root directory [SEC=UNCLASSIFIED] Message-ID: <8BD19F29B0E16E4F88277A997CD872C239640F@mail.agso.gov.au> Hi All, Sorry to bother you again. Our IT section is too busy to load some PERL CPAN modules for me so I thought that I would use cpan to load some modules into a local directory so that I can start using them. I don't have root permission and latest perl is in: /opt/csw/bin/perl It is PERL 5.8.8. We also have versions PERL 5.00503 loaded into: /web/apps/perl/perl5/5.00503/ If I do a cpan DBI on a command line I get the following: ############### ... CPAN.pm: Going to build T/TI/TIMB/DBI-1.602.tar.gz ... Checking if your kit is complete... Looks good 'INSTALLLIB' is not a known MakeMaker parameter name. 'INSTALL_BASE' is not a known MakeMaker parameter name. 'PERL_INC' is not a known MakeMaker parameter name. You cannot build extensions below the perl source tree after executing a 'make clean' in the perl source tree. To rebuild extensions distributed with the perl source you should simply Configure (to include those extensions) and then build perl as normal. After installing perl the source tree can be deleted. It is not needed for building extensions by running 'perl Makefile.PL' usually without extra arguments. It is recommended that you unpack and build additional extensions away from the perl source tree. Warning: PERL_LIB (/opt/csw/lib/perl/lib) seems not to be a perl library directory (Exporter.pm not found) at /opt/csw/share/perl/5.8.8/ExtUtils/MM_Unix.pm line 1668. I see you're using perl 5.008008 on sun4-solaris-thread-multi, okay. Remember to actually *read* the README file! Use 'make' to build the software (dmake or nmake on Windows). Then 'make test' to execute self tests. Then 'make install' to install the DBI and then delete this working directory before unpacking and building any DBD::* drivers. Writing Makefile for DBI make: *** No rule to make target `/opt/csw/lib/perl/config.sh', needed by `/opt/csw/lib/perl/lib/Config.pm'. Stop. /usr/local/bin/make -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible ####################### I see three problems here. 1. cpan is finding perl 5.008008 and not perl 5.8.8 in /opt/csw/bin/perl. 2. cpan doesn't like /usr/local/bin/make on the SunOS marl 5.8 Generic_117350-49 sun4u sparc SUNW,Sun-Fire-480R platform. 3. cpan doesn't recognise the parameters that I have passed to 'makepl_arg' yet they are valid in the MakeMaker documentation. I seem to remember that Sun make files are no good and that we need to use something like gcc but I can't remember the details. Can anyone help? Also, what settings to I use in 'makepl_arg' to get cpan to use /opt/csw/bin/perl to find the binaries, /opt/csw/lib/perl to find the perl libraries, /opt/csw/lib/perl/site_perl to find some CPAN modules, /public/data/asddgate/bin/perl for any new binaries, /public/data/asddgate/lib/perl for any new libraries, /public/data/asddgate/lib/perl/site_perl for the CPAN Modules, /public/data/asddgate/man for the man pages. Note that the /opt/csw/ directories are owned by root and I can't write to them. Hence my need to load packages into /public/data/asddgate/... Your help will be greatly appreciated. I have configured cpan as follows: $CPAN::Config = { 'build_cache' => q[0], 'build_dir' => q[/public/asddadm/.cpan/build], 'cache_metadata' => q[1], 'cpan_home' => q[/public/asddadm/.cpan], 'dontload_hash' => { }, 'ftp' => q[/usr/bin/ftp], 'ftp_proxy' => q[proxy.agso.gov.au:8080], 'getcwd' => q[cwd], 'gpg' => q[/opt/csw/bin/gpg], 'gzip' => q[/opt/csw/bin/gzip], 'histfile' => q[/public/asddadm/.cpan/histfile], 'histsize' => q[100], 'http_proxy' => q[proxy.agso.gov.au:8080], 'inactivity_timeout' => q[0], 'index_expire' => q[1], 'inhibit_startup_message' => q[0], 'keep_source_where' => q[/public/asddadm/.cpan/sources], 'lynx' => q[ ], 'make' => q[/usr/local/bin/make], 'make_arg' => q[], 'make_install_arg' => q[], 'makepl_arg' => q[PREFIX=/public/data/asddgate PERL_INC=/opt/csw/bin/perl PERL _SRC=/opt/csw/lib/perl INSTALLBIN=/public/data/asddgate/bin/perl INSTALLLIB=/pub lic/data/asddgate/lib/perl INSTALL_BASE=/public/data/asddgate], 'ncftpget' => q[/usr/local/bin/ncftpget], 'no_proxy' => q[proxy.agso.gov.au:8080], 'pager' => q[/usr/bin/less], 'prerequisites_policy' => q[follow], 'proxy_pass' => q[D847vt], 'proxy_user' => q[asddadm], 'scan_cache' => q[atstart], 'shell' => q[/usr/bin/sh], 'tar' => q[/usr/local/bin/tar], 'term_is_latin' => q[1], 'unzip' => q[/usr/bin/unzip], 'urllist' => [q[http://cpan.mirrors.ilisys.com.au]], 'wget' => q[/opt/csw/bin/wget], }; 1; __END__ Thanks. John Hockaday john.hockaday\@ga.gov.au From jarich at perltraining.com.au Thu Feb 21 18:14:36 2008 From: jarich at perltraining.com.au (Jacinta Richardson) Date: Fri, 22 Feb 2008 13:14:36 +1100 Subject: [Canberra-pm] Trying to use cpan to install PERL modules into a non-root directory [SEC=UNCLASSIFIED] In-Reply-To: <8BD19F29B0E16E4F88277A997CD872C239640F@mail.agso.gov.au> References: <8BD19F29B0E16E4F88277A997CD872C239640F@mail.agso.gov.au> Message-ID: <47BE300C.4040803@perltraining.com.au> John.Hockaday at ga.gov.au wrote: > I see you're using perl 5.008008 on sun4-solaris-thread-multi, okay. > Writing Makefile for DBI > make: *** No rule to make target `/opt/csw/lib/perl/config.sh', needed by > 1. cpan is finding perl 5.008008 and not perl 5.8.8 in /opt/csw/bin/perl. Perl 5.008008 *is* 5.8.8 as far as Perl's concerned. Just as Perl 5.00503 is called by us lazy folk Perl 5.5.3. As it says in the message, it's most certainly looking in your /opt/csw/lib/perl directory. I haven't read the rest carefully enough to answer the other questions, so hopefully someone else can comment before I get back to this. All the best, Jacinta -- ("`-''-/").___..--''"`-._ | Jacinta Richardson | `6_ 6 ) `-. ( ).`-.__.`) | Perl Training Australia | (_Y_.)' ._ ) `._ `. ``-..-' | +61 3 9354 6001 | _..`--'_..-_/ /--'_.' ,' | contact at perltraining.com.au | (il),-'' (li),' ((!.-' | www.perltraining.com.au | From jepri at alphacomplex.org Sat Feb 23 01:07:19 2008 From: jepri at alphacomplex.org (Jepri) Date: Sat, 23 Feb 2008 20:07:19 +1100 Subject: [Canberra-pm] Trying to use cpan to install PERL modules into a non-root directory [SEC=UNCLASSIFIED] In-Reply-To: <8BD19F29B0E16E4F88277A997CD872C239640F@mail.agso.gov.au> References: <8BD19F29B0E16E4F88277A997CD872C239640F@mail.agso.gov.au> Message-ID: <47BFE247.9090805@alphacomplex.org> First up, your make should be fine, all the problems happened in Makefile.PL. * The error messages indicate that you are trying to rebuild a core module, which requires the full perl source. Clearly you don't have the full perl source or it has been moved somewhere inconvenient. Were you trying to upgrade DBI or were you using DBI as an example? If you must do upgrade this, I'd suggesting keeping a full local install of perl in your directory. * If you are trying to install a pure perl module (i.e. one that only contains perl code, not C code), you can unpack the module tar file and copy the .pm files into your script directory. Then add use lib '.'; to the top of your program. You may need to get the directories right. e.g. CGI::Application needs to go in scriptdir/CGI/Application.pm I never had much luck getting local module installs to work, so best of luck. BTW if you are going to be building a lot of supporting libraries, I heartily recommend pkgsrc for Solaris. http://www.netbsd.org/docs/pkgsrc/platforms.html John.Hockaday at ga.gov.au wrote: > Hi All, > > Sorry to bother you again. Our IT section is too busy to load some PERL CPAN > modules for me so I thought that I would use cpan to load some modules into a > local directory so that I can start using them. > > I don't have root permission and latest perl is in: > > /opt/csw/bin/perl > > It is PERL 5.8.8. > > We also have versions PERL 5.00503 loaded into: > > /web/apps/perl/perl5/5.00503/ > > If I do a cpan DBI on a command line I get the following: > > ############### > ... > CPAN.pm: Going to build T/TI/TIMB/DBI-1.602.tar.gz > ... > > Checking if your kit is complete... > Looks good > 'INSTALLLIB' is not a known MakeMaker parameter name. > 'INSTALL_BASE' is not a known MakeMaker parameter name. > 'PERL_INC' is not a known MakeMaker parameter name. > > You cannot build extensions below the perl source tree after executing > a 'make clean' in the perl source tree. > To rebuild extensions distributed with the perl source you should > simply Configure (to include those extensions) and then build perl as > normal. After installing perl the source tree can be deleted. It is > not needed for building extensions by running 'perl Makefile.PL' > usually without extra arguments. > > It is recommended that you unpack and build additional extensions away > from the perl source tree. > Warning: PERL_LIB (/opt/csw/lib/perl/lib) seems not to be a perl library > directory > (Exporter.pm not found) at > /opt/csw/share/perl/5.8.8/ExtUtils/MM_Unix.pm > line 1668. > > I see you're using perl 5.008008 on sun4-solaris-thread-multi, okay. > Remember to actually *read* the README file! > Use 'make' to build the software (dmake or nmake on Windows). > Then 'make test' to execute self tests. > Then 'make install' to install the DBI and then delete this working > directory before unpacking and building any DBD::* drivers. > > Writing Makefile for DBI > make: *** No rule to make target `/opt/csw/lib/perl/config.sh', needed by > `/opt/csw/lib/perl/lib/Config.pm'. Stop. > /usr/local/bin/make -- NOT OK > Running make test > Can't test without successful make > Running make install > make had returned bad status, install seems impossible > ####################### > > I see three problems here. > > 1. cpan is finding perl 5.008008 and not perl 5.8.8 in /opt/csw/bin/perl. > > 2. cpan doesn't like /usr/local/bin/make on the SunOS marl 5.8 > Generic_117350-49 sun4u sparc SUNW,Sun-Fire-480R platform. > > 3. cpan doesn't recognise the parameters that I have passed to 'makepl_arg' > yet they are valid in the MakeMaker documentation. > > > I seem to remember that Sun make files are no good and that we need to use > something like gcc but I can't remember the details. Can anyone help? > > Also, what settings to I use in 'makepl_arg' to get cpan to use > > /opt/csw/bin/perl to find the binaries, > /opt/csw/lib/perl to find the perl libraries, > /opt/csw/lib/perl/site_perl to find some CPAN modules, > > /public/data/asddgate/bin/perl for any new binaries, > /public/data/asddgate/lib/perl for any new libraries, > /public/data/asddgate/lib/perl/site_perl for the CPAN Modules, > /public/data/asddgate/man for the man pages. > > Note that the /opt/csw/ directories are owned by root and I can't write to > them. Hence my need to load packages into /public/data/asddgate/... > > Your help will be greatly appreciated. > > I have configured cpan as follows: > > $CPAN::Config = { > 'build_cache' => q[0], > 'build_dir' => q[/public/asddadm/.cpan/build], > 'cache_metadata' => q[1], > 'cpan_home' => q[/public/asddadm/.cpan], > 'dontload_hash' => { }, > 'ftp' => q[/usr/bin/ftp], > 'ftp_proxy' => q[proxy.agso.gov.au:8080], > 'getcwd' => q[cwd], > 'gpg' => q[/opt/csw/bin/gpg], > 'gzip' => q[/opt/csw/bin/gzip], > 'histfile' => q[/public/asddadm/.cpan/histfile], > 'histsize' => q[100], > 'http_proxy' => q[proxy.agso.gov.au:8080], > 'inactivity_timeout' => q[0], > 'index_expire' => q[1], > 'inhibit_startup_message' => q[0], > 'keep_source_where' => q[/public/asddadm/.cpan/sources], > 'lynx' => q[ ], > 'make' => q[/usr/local/bin/make], > 'make_arg' => q[], > 'make_install_arg' => q[], > 'makepl_arg' => q[PREFIX=/public/data/asddgate PERL_INC=/opt/csw/bin/perl > PERL > _SRC=/opt/csw/lib/perl INSTALLBIN=/public/data/asddgate/bin/perl > INSTALLLIB=/pub > lic/data/asddgate/lib/perl INSTALL_BASE=/public/data/asddgate], > 'ncftpget' => q[/usr/local/bin/ncftpget], > 'no_proxy' => q[proxy.agso.gov.au:8080], > 'pager' => q[/usr/bin/less], > 'prerequisites_policy' => q[follow], > 'proxy_pass' => q[D847vt], > 'proxy_user' => q[asddadm], > 'scan_cache' => q[atstart], > 'shell' => q[/usr/bin/sh], > 'tar' => q[/usr/local/bin/tar], > 'term_is_latin' => q[1], > 'unzip' => q[/usr/bin/unzip], > 'urllist' => [q[http://cpan.mirrors.ilisys.com.au]], > 'wget' => q[/opt/csw/bin/wget], > }; > 1; > __END__ > > > Thanks. > > John Hockaday > john.hockaday\@ga.gov.au > _______________________________________________ > Canberra-pm mailing list > Canberra-pm at pm.org > http://mail.pm.org/mailman/listinfo/canberra-pm From John.Hockaday at ga.gov.au Sun Feb 24 15:14:24 2008 From: John.Hockaday at ga.gov.au (John.Hockaday at ga.gov.au) Date: Mon, 25 Feb 2008 10:14:24 +1100 Subject: [Canberra-pm] Trying to use cpan to install PERL modules into a non-root directory [SEC=UNCLASSIFIED] Message-ID: <8BD19F29B0E16E4F88277A997CD872C2396415@mail.agso.gov.au> Hi All, Thanks to you all for the quick response. I'm glad to see that I'm not the only one that has problems with getting local module installs to work. It makes me feel less inferior. ;--) I am trying to get the DBI, DBD and Oracle packages loaded. I seems like I will need to load perl 5.8.8 into my local directories and then ask the IT people to copy the results over to their /opt/csw/lib/perl/site_perl directories once I have tested them. If only I had root or sudo permissions. ;--) I have downloaded the DBI and unzipped and un tarred it into a local directory. I see two DBI.pm files. They are: ./DBI-1.602/DBI.pm ./DBI-1.602/lib/Bundle/DBI.pm Which one of these do I ask to be copied over to the /opt/csw/lib/perl/site_perl directory? Thanks. John > -----Original Message----- > From: Jepri [mailto:jepri at alphacomplex.org] > Sent: Saturday, 23 February 2008 8:07 PM > To: Hockaday John > Cc: canberra-pm at pm.org > Subject: Re: [Canberra-pm] Trying to use cpan to install PERL > modules into a non-root directory [SEC=UNCLASSIFIED] > > > First up, your make should be fine, all the problems happened in > Makefile.PL. > > * The error messages indicate that you are trying to rebuild a core > module, which requires the full perl source. Clearly you > don't have the > full perl source or it has been moved somewhere inconvenient. > > Were you trying to upgrade DBI or were you using DBI as an > example? If > you must do upgrade this, I'd suggesting keeping a full local > install of > perl in your directory. > > * If you are trying to install a pure perl module (i.e. one that only > contains perl code, not C code), you can unpack the module > tar file and > copy the .pm files into your script directory. Then add use > lib '.'; to > the top of your program. > > You may need to get the directories right. e.g. > CGI::Application needs > to go in scriptdir/CGI/Application.pm > > > > I never had much luck getting local module installs to work, > so best of > luck. > > BTW if you are going to be building a lot of supporting libraries, I > heartily recommend pkgsrc for Solaris. > > http://www.netbsd.org/docs/pkgsrc/platforms.html > > > > John.Hockaday at ga.gov.au wrote: > > Hi All, > > > > Sorry to bother you again. Our IT section is too busy to > load some PERL CPAN > > modules for me so I thought that I would use cpan to load > some modules into a > > local directory so that I can start using them. > > > > I don't have root permission and latest perl is in: > > > > /opt/csw/bin/perl > > > > It is PERL 5.8.8. > > > > We also have versions PERL 5.00503 loaded into: > > > > /web/apps/perl/perl5/5.00503/ > > > > If I do a cpan DBI on a command line I get the following: > > > > ############### > > ... > > CPAN.pm: Going to build T/TI/TIMB/DBI-1.602.tar.gz > > ... > > > > Checking if your kit is complete... > > Looks good > > 'INSTALLLIB' is not a known MakeMaker parameter name. > > 'INSTALL_BASE' is not a known MakeMaker parameter name. > > 'PERL_INC' is not a known MakeMaker parameter name. > > > > You cannot build extensions below the perl source tree > after executing > > a 'make clean' in the perl source tree. > > To rebuild extensions distributed with the perl source you should > > simply Configure (to include those extensions) and then > build perl as > > normal. After installing perl the source tree can be deleted. It is > > not needed for building extensions by running 'perl Makefile.PL' > > usually without extra arguments. > > > > It is recommended that you unpack and build additional > extensions away > > from the perl source tree. > > Warning: PERL_LIB (/opt/csw/lib/perl/lib) seems not to be a > perl library > > directory > > (Exporter.pm not found) at > > /opt/csw/share/perl/5.8.8/ExtUtils/MM_Unix.pm > > line 1668. > > > > I see you're using perl 5.008008 on > sun4-solaris-thread-multi, okay. > > Remember to actually *read* the README file! > > Use 'make' to build the software (dmake or nmake on Windows). > > Then 'make test' to execute self tests. > > Then 'make install' to install the DBI and then delete > this working > > directory before unpacking and building any DBD::* drivers. > > > > Writing Makefile for DBI > > make: *** No rule to make target > `/opt/csw/lib/perl/config.sh', needed by > > `/opt/csw/lib/perl/lib/Config.pm'. Stop. > > /usr/local/bin/make -- NOT OK > > Running make test > > Can't test without successful make > > Running make install > > make had returned bad status, install seems impossible > > ####################### > > > > I see three problems here. > > > > 1. cpan is finding perl 5.008008 and not perl 5.8.8 in > /opt/csw/bin/perl. > > > > 2. cpan doesn't like /usr/local/bin/make on the SunOS marl 5.8 > > Generic_117350-49 sun4u sparc SUNW,Sun-Fire-480R platform. > > > > 3. cpan doesn't recognise the parameters that I have passed > to 'makepl_arg' > > yet they are valid in the MakeMaker documentation. > > > > > > I seem to remember that Sun make files are no good and that > we need to use > > something like gcc but I can't remember the details. Can > anyone help? > > > > Also, what settings to I use in 'makepl_arg' to get cpan to use > > > > /opt/csw/bin/perl to find the binaries, > > /opt/csw/lib/perl to find the perl libraries, > > /opt/csw/lib/perl/site_perl to find some CPAN modules, > > > > /public/data/asddgate/bin/perl for any new binaries, > > /public/data/asddgate/lib/perl for any new libraries, > > /public/data/asddgate/lib/perl/site_perl for the CPAN Modules, > > /public/data/asddgate/man for the man pages. > > > > Note that the /opt/csw/ directories are owned by root and I > can't write to > > them. Hence my need to load packages into /public/data/asddgate/... > > > > Your help will be greatly appreciated. > > > > I have configured cpan as follows: > > > > $CPAN::Config = { > > 'build_cache' => q[0], > > 'build_dir' => q[/public/asddadm/.cpan/build], > > 'cache_metadata' => q[1], > > 'cpan_home' => q[/public/asddadm/.cpan], > > 'dontload_hash' => { }, > > 'ftp' => q[/usr/bin/ftp], > > 'ftp_proxy' => q[proxy.agso.gov.au:8080], > > 'getcwd' => q[cwd], > > 'gpg' => q[/opt/csw/bin/gpg], > > 'gzip' => q[/opt/csw/bin/gzip], > > 'histfile' => q[/public/asddadm/.cpan/histfile], > > 'histsize' => q[100], > > 'http_proxy' => q[proxy.agso.gov.au:8080], > > 'inactivity_timeout' => q[0], > > 'index_expire' => q[1], > > 'inhibit_startup_message' => q[0], > > 'keep_source_where' => q[/public/asddadm/.cpan/sources], > > 'lynx' => q[ ], > > 'make' => q[/usr/local/bin/make], > > 'make_arg' => q[], > > 'make_install_arg' => q[], > > 'makepl_arg' => q[PREFIX=/public/data/asddgate > PERL_INC=/opt/csw/bin/perl > > PERL > > _SRC=/opt/csw/lib/perl INSTALLBIN=/public/data/asddgate/bin/perl > > INSTALLLIB=/pub > > lic/data/asddgate/lib/perl INSTALL_BASE=/public/data/asddgate], > > 'ncftpget' => q[/usr/local/bin/ncftpget], > > 'no_proxy' => q[proxy.agso.gov.au:8080], > > 'pager' => q[/usr/bin/less], > > 'prerequisites_policy' => q[follow], > > 'proxy_pass' => q[D847vt], > > 'proxy_user' => q[asddadm], > > 'scan_cache' => q[atstart], > > 'shell' => q[/usr/bin/sh], > > 'tar' => q[/usr/local/bin/tar], > > 'term_is_latin' => q[1], > > 'unzip' => q[/usr/bin/unzip], > > 'urllist' => [q[http://cpan.mirrors.ilisys.com.au]], > > 'wget' => q[/opt/csw/bin/wget], > > }; > > 1; > > __END__ > > > > > > Thanks. > > > > John Hockaday > > john.hockaday\@ga.gov.au > > _______________________________________________ > > Canberra-pm mailing list > > Canberra-pm at pm.org > > http://mail.pm.org/mailman/listinfo/canberra-pm > From jepri at alphacomplex.org Sun Feb 24 18:57:04 2008 From: jepri at alphacomplex.org (Jepri) Date: Mon, 25 Feb 2008 13:57:04 +1100 Subject: [Canberra-pm] Trying to use cpan to install PERL modules into a non-root directory [SEC=UNCLASSIFIED] In-Reply-To: <8BD19F29B0E16E4F88277A997CD872C2396415@mail.agso.gov.au> References: <8BD19F29B0E16E4F88277A997CD872C2396415@mail.agso.gov.au> Message-ID: <47C22E80.7040303@alphacomplex.org> You'll have to examine the makefiles to see which files need to be copied over. Copying only one file might result in dependency issues. Or perhaps it'll be fine. Try running make and then look in the directory where it puts the made files. Personally I'd be wanting to try this plan on a test server first. John.Hockaday at ga.gov.au wrote: > Hi All, > > Thanks to you all for the quick response. > > I'm glad to see that I'm not the only one that has problems with getting > local module installs to work. It makes me feel less inferior. ;--) > > I am trying to get the DBI, DBD and Oracle packages loaded. I seems like I > will need to load perl 5.8.8 into my local directories and then ask the IT > people to copy the results over to their /opt/csw/lib/perl/site_perl > directories once I have tested them. If only I had root or sudo permissions. > ;--) > > I have downloaded the DBI and unzipped and un tarred it into a local > directory. I see two DBI.pm files. They are: > > ./DBI-1.602/DBI.pm > ./DBI-1.602/lib/Bundle/DBI.pm > > Which one of these do I ask to be copied over to the > /opt/csw/lib/perl/site_perl directory? > > Thanks. > > > John > >> -----Original Message----- >> From: Jepri [mailto:jepri at alphacomplex.org] >> Sent: Saturday, 23 February 2008 8:07 PM >> To: Hockaday John >> Cc: canberra-pm at pm.org >> Subject: Re: [Canberra-pm] Trying to use cpan to install PERL >> modules into a non-root directory [SEC=UNCLASSIFIED] >> >> >> First up, your make should be fine, all the problems happened in >> Makefile.PL. >> >> * The error messages indicate that you are trying to rebuild a core >> module, which requires the full perl source. Clearly you >> don't have the >> full perl source or it has been moved somewhere inconvenient. >> >> Were you trying to upgrade DBI or were you using DBI as an >> example? If >> you must do upgrade this, I'd suggesting keeping a full local >> install of >> perl in your directory. >> >> * If you are trying to install a pure perl module (i.e. one that only >> contains perl code, not C code), you can unpack the module >> tar file and >> copy the .pm files into your script directory. Then add use >> lib '.'; to >> the top of your program. >> >> You may need to get the directories right. e.g. >> CGI::Application needs >> to go in scriptdir/CGI/Application.pm >> >> >> >> I never had much luck getting local module installs to work, >> so best of >> luck. >> >> BTW if you are going to be building a lot of supporting libraries, I >> heartily recommend pkgsrc for Solaris. >> >> http://www.netbsd.org/docs/pkgsrc/platforms.html >> >> >> >> John.Hockaday at ga.gov.au wrote: >>> Hi All, >>> >>> Sorry to bother you again. Our IT section is too busy to >> load some PERL CPAN >>> modules for me so I thought that I would use cpan to load >> some modules into a >>> local directory so that I can start using them. >>> >>> I don't have root permission and latest perl is in: >>> >>> /opt/csw/bin/perl >>> >>> It is PERL 5.8.8. >>> >>> We also have versions PERL 5.00503 loaded into: >>> >>> /web/apps/perl/perl5/5.00503/ >>> >>> If I do a cpan DBI on a command line I get the following: >>> >>> ############### >>> ... >>> CPAN.pm: Going to build T/TI/TIMB/DBI-1.602.tar.gz >>> ... >>> >>> Checking if your kit is complete... >>> Looks good >>> 'INSTALLLIB' is not a known MakeMaker parameter name. >>> 'INSTALL_BASE' is not a known MakeMaker parameter name. >>> 'PERL_INC' is not a known MakeMaker parameter name. >>> >>> You cannot build extensions below the perl source tree >> after executing >>> a 'make clean' in the perl source tree. >>> To rebuild extensions distributed with the perl source you should >>> simply Configure (to include those extensions) and then >> build perl as >>> normal. After installing perl the source tree can be deleted. It is >>> not needed for building extensions by running 'perl Makefile.PL' >>> usually without extra arguments. >>> >>> It is recommended that you unpack and build additional >> extensions away >>> from the perl source tree. >>> Warning: PERL_LIB (/opt/csw/lib/perl/lib) seems not to be a >> perl library >>> directory >>> (Exporter.pm not found) at >>> /opt/csw/share/perl/5.8.8/ExtUtils/MM_Unix.pm >>> line 1668. >>> >>> I see you're using perl 5.008008 on >> sun4-solaris-thread-multi, okay. >>> Remember to actually *read* the README file! >>> Use 'make' to build the software (dmake or nmake on Windows). >>> Then 'make test' to execute self tests. >>> Then 'make install' to install the DBI and then delete >> this working >>> directory before unpacking and building any DBD::* drivers. >>> >>> Writing Makefile for DBI >>> make: *** No rule to make target >> `/opt/csw/lib/perl/config.sh', needed by >>> `/opt/csw/lib/perl/lib/Config.pm'. Stop. >>> /usr/local/bin/make -- NOT OK >>> Running make test >>> Can't test without successful make >>> Running make install >>> make had returned bad status, install seems impossible >>> ####################### >>> >>> I see three problems here. >>> >>> 1. cpan is finding perl 5.008008 and not perl 5.8.8 in >> /opt/csw/bin/perl. >>> 2. cpan doesn't like /usr/local/bin/make on the SunOS marl 5.8 >>> Generic_117350-49 sun4u sparc SUNW,Sun-Fire-480R platform. >>> >>> 3. cpan doesn't recognise the parameters that I have passed >> to 'makepl_arg' >>> yet they are valid in the MakeMaker documentation. >>> >>> >>> I seem to remember that Sun make files are no good and that >> we need to use >>> something like gcc but I can't remember the details. Can >> anyone help? >>> >>> Also, what settings to I use in 'makepl_arg' to get cpan to use >>> >>> /opt/csw/bin/perl to find the binaries, >>> /opt/csw/lib/perl to find the perl libraries, >>> /opt/csw/lib/perl/site_perl to find some CPAN modules, >>> >>> /public/data/asddgate/bin/perl for any new binaries, >>> /public/data/asddgate/lib/perl for any new libraries, >>> /public/data/asddgate/lib/perl/site_perl for the CPAN Modules, >>> /public/data/asddgate/man for the man pages. >>> >>> Note that the /opt/csw/ directories are owned by root and I >> can't write to >>> them. Hence my need to load packages into /public/data/asddgate/... >>> >>> Your help will be greatly appreciated. >>> >>> I have configured cpan as follows: >>> >>> $CPAN::Config = { >>> 'build_cache' => q[0], >>> 'build_dir' => q[/public/asddadm/.cpan/build], >>> 'cache_metadata' => q[1], >>> 'cpan_home' => q[/public/asddadm/.cpan], >>> 'dontload_hash' => { }, >>> 'ftp' => q[/usr/bin/ftp], >>> 'ftp_proxy' => q[proxy.agso.gov.au:8080], >>> 'getcwd' => q[cwd], >>> 'gpg' => q[/opt/csw/bin/gpg], >>> 'gzip' => q[/opt/csw/bin/gzip], >>> 'histfile' => q[/public/asddadm/.cpan/histfile], >>> 'histsize' => q[100], >>> 'http_proxy' => q[proxy.agso.gov.au:8080], >>> 'inactivity_timeout' => q[0], >>> 'index_expire' => q[1], >>> 'inhibit_startup_message' => q[0], >>> 'keep_source_where' => q[/public/asddadm/.cpan/sources], >>> 'lynx' => q[ ], >>> 'make' => q[/usr/local/bin/make], >>> 'make_arg' => q[], >>> 'make_install_arg' => q[], >>> 'makepl_arg' => q[PREFIX=/public/data/asddgate >> PERL_INC=/opt/csw/bin/perl >>> PERL >>> _SRC=/opt/csw/lib/perl INSTALLBIN=/public/data/asddgate/bin/perl >>> INSTALLLIB=/pub >>> lic/data/asddgate/lib/perl INSTALL_BASE=/public/data/asddgate], >>> 'ncftpget' => q[/usr/local/bin/ncftpget], >>> 'no_proxy' => q[proxy.agso.gov.au:8080], >>> 'pager' => q[/usr/bin/less], >>> 'prerequisites_policy' => q[follow], >>> 'proxy_pass' => q[D847vt], >>> 'proxy_user' => q[asddadm], >>> 'scan_cache' => q[atstart], >>> 'shell' => q[/usr/bin/sh], >>> 'tar' => q[/usr/local/bin/tar], >>> 'term_is_latin' => q[1], >>> 'unzip' => q[/usr/bin/unzip], >>> 'urllist' => [q[http://cpan.mirrors.ilisys.com.au]], >>> 'wget' => q[/opt/csw/bin/wget], >>> }; >>> 1; >>> __END__ >>> >>> >>> Thanks. >>> >>> John Hockaday >>> john.hockaday\@ga.gov.au >>> _______________________________________________ >>> Canberra-pm mailing list >>> Canberra-pm at pm.org >>> http://mail.pm.org/mailman/listinfo/canberra-pm > _______________________________________________ > Canberra-pm mailing list > Canberra-pm at pm.org > http://mail.pm.org/mailman/listinfo/canberra-pm From pjf at perltraining.com.au Sun Feb 24 19:07:38 2008 From: pjf at perltraining.com.au (Paul Fenwick) Date: Mon, 25 Feb 2008 14:07:38 +1100 Subject: [Canberra-pm] Trying to use cpan to install PERL modules into a non-root directory [SEC=UNCLASSIFIED] In-Reply-To: <47C22E80.7040303@alphacomplex.org> References: <8BD19F29B0E16E4F88277A997CD872C2396415@mail.agso.gov.au> <47C22E80.7040303@alphacomplex.org> Message-ID: <47C230FA.1050904@perltraining.com.au> G'day everyone, Apologies for the short mail, busy day... > John.Hockaday at ga.gov.au wrote: > I am trying to get the DBI, DBD and Oracle packages loaded. I seems like I > will need to load perl 5.8.8 into my local directories and then ask the IT > people to copy the results over to their /opt/csw/lib/perl/site_perl > directories once I have tested them. If only I had root or sudo permissions. > ;--) You may also wish to investigate PAR (Perl Archives) as an alternative: http://search.cpan.org/perldoc?PAR::Tutorial Cheerio, Paul -- Paul Fenwick | http://perltraining.com.au/ Director of Training | Ph: +61 3 9354 6001 Perl Training Australia | Fax: +61 3 9354 2681 From jepri at alphacomplex.org Fri Feb 29 15:56:10 2008 From: jepri at alphacomplex.org (Jepri) Date: Sat, 01 Mar 2008 10:56:10 +1100 Subject: [Canberra-pm] [Fwd: [pm_groups] Introducing The Perl College] Message-ID: <47C89B9A.4000902@alphacomplex.org> Announcing the Perl College, a chance to learn from the master or to sponsor the event. I've had the fortune to hear Dr Conway talk and it was one of the best talks I've ever been to. Sadly, it might be a bit hard for Aussies to get to. -------------- next part -------------- An embedded message was scrubbed... From: Uri Guttman Subject: [pm_groups] Introducing The Perl College Date: Fri, 29 Feb 2008 16:29:44 -0500 Size: 5677 Url: http://mail.pm.org/pipermail/canberra-pm/attachments/20080301/c0ef685c/attachment.eml