[Omaha.pm] Downloading CPAN modules on G5 Mac

Philip Terry pterry2 at mac.com
Wed Oct 26 12:51:16 PDT 2005


 
On Tuesday, October 25, 2005, at 07:43PM, Jay Hannah <jay at jays.net> wrote:

>
>On Oct 25, 2005, at 9:38 PM, Philip Terry wrote:
>> When I tried this, I said "no" to manual configuration because I did 
>> not know what settings were appropriate.  From the responses on the 
>> terminal, the download failed.  From subsequent print out of the 
>> MyConfig.pm file, it would appear that the the MyConfig.pm file has a 
>> lot of uninitialized parameters.
>>
>> Would anyone know how to proceed to reach a situation where I can 
>> download for example, the following CPAN module:
>>
>> # sudo perl -MCPAN -e 'install Statistics::ChiSquare'
>
>Post all the output from that command to the list and we can try to 
>help.
>
>Thanks,
>
>j
>
>_______________________________________________
>Omaha-pm mailing list
>Omaha-pm at pm.org
>http://mail.pm.org/mailman/listinfo/omaha-pm
>
>
I am ataching two files: cpan_diagnostic.txt has the output, and myconfig_pm_G5.txt is the MyConfig.pm file after the attempt to install Statistics::ChiSquare module from CPAN site.

Thanks,
Philip M. Terry
-------------- next part --------------
philip-terrys-power-mac-g5:~ mterry$ sudo perl -MCPAN -e 'install Statistics::ChiSquare'

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

Password:
We have to reconfigure CPAN.pm due to following uninitialized parameters:

cpan_home, keep_source_where, build_dir, build_cache, scan_cache, index_expire, gzip, tar, unzip, make, pager, makepl_arg, make_arg, make_install_arg, urllist, inhibit_startup_message, ftp_proxy, http_proxy, no_proxy, prerequisites_policy, cache_metadata

/Users/mterry/.cpan/CPAN/MyConfig.pm initialized.


CPAN is the world-wide archive of perl resources. It consists of about
100 sites that all replicate the same contents all around the globe.
Many countries have at least one CPAN site already. The resources
found on CPAN are easily accessible with the CPAN.pm module. If you
want to use CPAN.pm, you have to configure it properly.

If you do not want to enter a dialog now, you can answer 'no' to this
question and I'll try to autoconfigure. (Note: you can revisit this
dialog anytime later by typing 'o conf init' at the cpan prompt.)

Are you ready for manual configuration? [yes] no


The following questions are intended to help you with the
configuration. The CPAN module needs a directory of its own to cache
important index files and maybe keep a temporary mirror of CPAN files.
This may be a site-wide directory or a personal directory.



I see you already have a  directory
    /Users/mterry/.cpan
Shall we use it as the general CPAN build and cache directory?

CPAN build and cache directory? [/Users/mterry/.cpan]



If you want, I can keep the source files after a build in the cpan
home directory. If you choose so then future builds will take the
files from there. If you don't want to keep them, answer 0 to the
next question.



How big should the disk cache be for keeping the build directories
with all the intermediate files?

Cache size for build directory (in MB)? [10]



By default, each time the CPAN module is started, cache scanning
is performed to keep the cache size in sync. To prevent from this,
disable the cache scanning with 'never'.

Perform cache scanning (atstart or never)? [atstart]



To considerably speed up the initial CPAN shell startup, it is
possible to use Storable to create a cache of metadata. If Storable
is not available, the normal index mechanism will be used.

Cache metadata (yes/no)? [yes]



The next option deals with the charset your terminal supports. In
general CPAN is English speaking territory, thus the charset does not
matter much, but some of the aliens out there who upload their
software to CPAN bear names that are outside the ASCII range. If your
terminal supports UTF-8, you say no to the next question, if it
supports ISO-8859-1 (also known as LATIN1) then you say yes, and if it
supports neither nor, your answer does not matter, you will not be
able to read the names of some authors anyway. If you answer no, names
will be output in UTF-8.

Your terminal expects ISO-8859-1 (yes/no)? [yes]



If you have one of the readline packages (Term::ReadLine::Perl,
Term::ReadLine::Gnu, possibly others) installed, the interactive CPAN
shell will have history support. The next two questions deal with the
filename of the history file and with its size. If you do not want to
set this variable, please hit SPACE RETURN to the following question.

File to save your history? [/Users/mterry/.cpan/histfile]

Number of lines to save? [100]



The CPAN module can detect when a module that which you are trying to
build depends on prerequisites. If this happens, it can build the
prerequisites for you automatically ('follow'), ask you for
confirmation ('ask'), or just ignore them ('ignore'). Please set your
policy to one of the three values.

Policy on building prerequisites (follow, ask or ignore)? [ask]



The CPAN module will need a few external programs to work properly.
Please correct me, if I guess the wrong path for a program. Don't
panic if you do not have some of them, just press ENTER for those. To
disable the use of a download program, you can type a space followed
by ENTER.

Where is your gzip program? [/usr/bin/gzip]

Where is your tar program? [/usr/bin/tar]

Where is your unzip program? [/usr/bin/unzip]

Warning: make not found in PATH
Where is your make program? []

Warning: lynx not found in PATH
Where is your lynx program? []

Warning: wget not found in PATH
Where is your wget program? []

Warning: ncftpget not found in PATH
Where is your ncftpget program? []

Warning: ncftp not found in PATH
Where is your ncftp program? []

Where is your ftp program? [/usr/bin/ftp]

Warning: gpg not found in PATH
Where is your gpg program? []

What is your favorite pager program? [/usr/bin/less]

What is your favorite shell? [/bin/bash]



Every Makefile.PL is run by perl in a separate process. Likewise we
run 'make' and 'make install' in processes. If you have any
parameters (e.g. PREFIX, LIB, UNINST or the like) you want to pass
to the calls, please specify them here.

If you don't understand this question, just press ENTER.

Parameters for the 'perl Makefile.PL' command?
Typical frequently used settings:

    PREFIX=~/perl       non-root users (please see manual for more hints)

Your choice:  []

Parameters for the 'make' command?
Typical frequently used setting:

    -j3              dual processor system

Your choice:  []

Parameters for the 'make install' command?
Typical frequently used setting:

    UNINST=1         to always uninstall potentially conflicting files

Your choice:  []



Sometimes you may wish to leave the processes run by CPAN alone
without caring about them. As sometimes the Makefile.PL contains
question you're expected to answer, you can set a timer that will
kill a 'perl Makefile.PL' process after the specified time in seconds.

If you set this value to 0, these processes will wait forever. This is
the default and recommended setting.

Timeout for inactivity during Makefile.PL? [0]



If you're accessing the net via proxies, you can specify them in the
CPAN configuration or via environment variables. The variable in
the $CPAN::Config takes precedence.

Your ftp_proxy? []

Your http_proxy? []

Your no_proxy? []



commit: wrote /Users/mterry/.cpan/CPAN/MyConfig.pm
CPAN: Storable loaded ok
LWP not available
CPAN: Net::FTP loaded ok
Fetching with Net::FTP:
  ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
Going to read /Users/mterry/.cpan/sources/authors/01mailrc.txt.gz
CPAN: Compress::Zlib loaded ok
LWP not available
Fetching with Net::FTP:
  ftp://ftp.perl.org/pub/CPAN/modules/02packages.details.txt.gz
Going to read /Users/mterry/.cpan/sources/modules/02packages.details.txt.gz
  Database was generated on Mon, 03 Oct 2005 23:11:35 GMT
  HTTP::Date not available
LWP not available
Fetching with Net::FTP:
  ftp://ftp.perl.org/pub/CPAN/modules/03modlist.data.gz
Going to read /Users/mterry/.cpan/sources/modules/03modlist.data.gz
Going to write /Users/mterry/.cpan/Metadata
Running install for module Statistics::ChiSquare
Running make for D/DC/DCANTRELL/Statistics-ChiSquare-0.5.tar.gz
LWP not available
Fetching with Net::FTP:
  ftp://ftp.perl.org/pub/CPAN/authors/id/D/DC/DCANTRELL/Statistics-ChiSquare-0.5.tar.gz
CPAN: Digest::MD5 loaded ok
LWP not available
Fetching with Net::FTP:
  ftp://ftp.perl.org/pub/CPAN/authors/id/D/DC/DCANTRELL/CHECKSUMS
Checksum for /Users/mterry/.cpan/sources/authors/id/D/DC/DCANTRELL/Statistics-ChiSquare-0.5.tar.gz ok
Scanning cache /Users/mterry/.cpan/build for sizes
Statistics-ChiSquare-0.5/
Statistics-ChiSquare-0.5/Changes
Statistics-ChiSquare-0.5/lib/
Statistics-ChiSquare-0.5/lib/Statistics/
Statistics-ChiSquare-0.5/lib/Statistics/ChiSquare.pm
Statistics-ChiSquare-0.5/Makefile.PL
Statistics-ChiSquare-0.5/MANIFEST
Statistics-ChiSquare-0.5/README
Statistics-ChiSquare-0.5/test.pl

  CPAN.pm: Going to build D/DC/DCANTRELL/Statistics-ChiSquare-0.5.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for Statistics::ChiSquare
    -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible
philip-terrys-power-mac-g5:~ mterry$ pwd
/Users/mterry
-------------- next part --------------
philip-terrys-power-mac-g5:~/.cpan/CPAN mterry$ ls -al
total 16
drwxr-xr-x   4 mterry  mterry  136 Oct 24 14:55 .
drwxr-xr-x   6 mterry  mterry  204 Oct 24 14:56 ..
-rw-r--r--   1 root    mterry  955 Oct 24 14:55 MyConfig.pm
-rw-r--r--   1 mterry  mterry    3 Oct 24 14:52 MyConfig.pm~
philip-terrys-power-mac-g5:~/.cpan/CPAN mterry$ cat MyConfig.pm

$CPAN::Config = {
  'build_cache' => q[10],
  'build_dir' => q[/Users/mterry/.cpan/build],
  'cache_metadata' => q[1],
  'cpan_home' => q[/Users/mterry/.cpan],
  'ftp' => q[/usr/bin/ftp],
  'ftp_proxy' => q[],
  'getcwd' => q[cwd],
  'gpg' => q[],
  'gzip' => q[/usr/bin/gzip],
  'histfile' => q[/Users/mterry/.cpan/histfile],
  'histsize' => q[100],
  'http_proxy' => q[],
  'inactivity_timeout' => q[0],
  'index_expire' => q[1],
  'inhibit_startup_message' => q[0],
  'keep_source_where' => q[/Users/mterry/.cpan/sources],
  'lynx' => q[],
  'make' => q[],
  'make_arg' => q[],
  'make_install_arg' => q[],
  'makepl_arg' => q[],
  'ncftp' => q[],
  'ncftpget' => q[],
  'no_proxy' => q[],
  'pager' => q[/usr/bin/less],
  'prerequisites_policy' => q[ask],
  'scan_cache' => q[atstart],
  'shell' => q[/bin/bash],
  'tar' => q[/usr/bin/tar],
  'term_is_latin' => q[1],
  'unzip' => q[/usr/bin/unzip],
  'urllist' => [],
  'wget' => q[],
};
1;
__END__
philip-terrys-power-mac-g5:~/.cpan/CPAN mterry$ pwd
/Users/mterry/.cpan/CPAN
philip-terrys-power-mac-g5:~/.cpan/CPAN mterry$ 


More information about the Omaha-pm mailing list