くぱんでClass::Dateいれてみた。
Mac port環境ではどうなるのだろう、どきどき!
sudo perl -MCPAN -eshell
CPAN is the world-wide archive of perl resources. It consists of about
300 sites that all replicate the same contents 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, lots of things have to be configured. Fortunately, most of
them can be determined automatically. If you prefer the automatic
configuration, answer 'yes' below.If you prefer to enter a dialog instead, you can answer 'no' to this
question and I'll let you configure in small steps one thing after the
other. (Note: you can revisit this dialog anytime later by typing 'o
conf init' at the cpan prompt.)
Would you like me to configure as much as possible automatically? [yes]
ここでyesって入力したら、後の設定は良きに計らってもらえました。
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 or a personal directory.
First of all, I'd like to create this directory. Where?
CPAN build and cache directory? [/Users/fu7mu4/.cpan]
Unless you are accessing the CPAN on your filesystem via a file: URL,
CPAN.pm needs to keep the source files it downloads somewhere. Please
supply a directory where the downloaded files are to be kept.
Download target directory? [/Users/fu7mu4/.cpan/sources]
Directory where the build process takes place? [/Users/fu7mu4/.cpan/build]
Until version 1.88 CPAN.pm never trusted the contents of the build_dir
directory between sessions. Since 1.88_58 CPAN.pm has a YAML-based
mechanism that makes it possible to share the contents of the
build_dir/ directory between different sessions with the same version
of perl. People who prefer to test things several days before
installing will like this feature because it safes a lot of time.If you say yes to the following question, CPAN will try to store
enough information about the build process so that it can pick up in
future sessions at the same state of affairs as it left a previous
session.
Store and re-use state information about distributions between
CPAN.pm sessions? [no]
CPAN.pm can store customized build environments based on regular
expressions for distribution names. These are YAML files where the
default options for CPAN.pm and the environment can be overridden and
dialog sequences can be stored that can later be executed by an
Expect.pm object. The CPAN.pm distribution comes with some prefab YAML
files that cover sample distributions that can be used as blueprints
to store one own prefs. Please check out the distroprefs/ directory of
the CPAN.pm distribution to get a quick start into the prefs system.
Directory where to store default options/environment/dialogs for
building modules that need some customization? [/Users/fu7mu4/.cpan/prefs]
Normally CPAN.pm keeps config variables in memory and changes need to
be saved in a separate 'o conf commit' command to make them permanent
between sessions. If you set the 'auto_commit' option to true, changes
to a config variable are always automatically committed to disk.
Always commit changes to config variables to disk? [no]
CPAN.pm can limit the size of the disk area for keeping the build
directories with all the intermediate files.
Cache size for build directory (in MB)? [100]
The CPAN indexes are usually rebuilt once or twice per hour, but the
typical CPAN mirror mirrors only once or twice per day. Depending on
the quality of your mirror and your desire to be on the bleeding edge,
you may want to set the following value to more or less than one day
(which is the default). It determines after how many days CPAN.pm
downloads new indexes.
Let the index expire after how many days? [1]
By default, each time the CPAN module is started, cache scanning is
performed to keep the cache size in sync. To prevent this, answer
'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.Note: this mechanism is not used when use_sqlite is on and SQLLite is
running.
Cache metadata (yes/no)? [yes]
CPAN::SQLite is a layer between the index files that are downloaded
from the CPAN and CPAN.pm that speeds up metadata queries and reduces
memory consumption of CPAN.pm considerably.
Use CPAN::SQLite if available? (yes/no)? [no]
The CPAN module can detect when a module 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]
When a module declares another one as a 'build_requires' prerequisite
this means that the other module is only needed for building or
testing the module but need not be installed permanently. In this case
you may wish to install that other module nonetheless or just keep it
in the 'build_dir' directory to have it available only temporarily.
Installing saves time on future installations but makes the perl
installation bigger.You can choose if you want to always install (yes), never install (no)
or be always asked. In the latter case you can set the default answer
for the question to yes (ask/yes) or no (ask/no).
Policy on installing 'build_requires' modules (yes, no, ask/yes,
ask/no)? [ask/yes]
CPAN packages can be digitally signed by authors and thus verified
with the security provided by strong cryptography. The exact mechanism
is defined in the Module::Signature module. While this is generally
considered a good thing, it is not always convenient to the end user
to install modules that are signed incorrectly or where the key of the
author is not available or where some prerequisite for
Module::Signature has a bug and so on.With the check_sigs parameter you can turn signature checking on and
off. The default is off for now because the whole tool chain for the
functionality is not yet considered mature by some. The author of
CPAN.pm would recommend setting it to true most of the time and
turning it off only if it turns out to be annoying.Note that if you do not have Module::Signature installed, no signature
checks will be performed at all.
Always try to check and verify signatures if a SIGNATURE file is in
the package and Module::Signature is installed (yes/no)? [no]
The goal of the CPAN Testers project (http://testers.cpan.org/) is to
test as many CPAN packages as possible on as many platforms as
possible. This provides valuable feedback to module authors and
potential users to identify bugs or platform compatibility issues and
improves the overall quality and value of CPAN.One way you can contribute is to send test results for each module
that you install. If you install the CPAN::Reporter module, you have
the option to automatically generate and email test reports to CPAN
Testers whenever you run tests on a CPAN package.See the CPAN::Reporter documentation for additional details and
configuration settings. If your firewall blocks outgoing email,
you will need to configure CPAN::Reporter before sending reports.
Email test reports if CPAN::Reporter is installed (yes/no)? [no]
When a distribution has already been tested by CPAN::Reporter on
this machine, CPAN can skip the test phase and just rely on the
test report history instead.Note that this will not apply to distributions that failed tests
because of missing dependencies. Also, tests can be run
regardless of the history using "force".
Do you want to rely on the test report history (yes/no)? [no]
At the time of this writing there are two competing YAML modules,
YAML.pm and YAML::Syck. The latter is faster but needs a C compiler
installed on your system. There may be more alternative YAML
conforming modules but at the time of writing a potential third
player, YAML::Tiny, seemed not powerful enough to work with CPAN.pm.
Which YAML implementation would you prefer? [YAML]
Warning (maybe harmless): 'YAML' not installed.
Both YAML.pm and YAML::Syck are capable of deserialising code. As this
requires a string eval, which might be a security risk, you can use
this option to enable or disable the deserialisation of code via
CPAN::DeferedCode. (Note: This does not work under perl 5.6)
Do you want to enable code deserialisation (yes/no)? [no]
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 program, you can type a space followed by ENTER.
Where is your bzip2 program? [/opt/local/bin/bzip2]
Where is your gzip program? [/opt/local/bin/gzip]
Where is your tar program? [/usr/bin/tar]
Where is your unzip program? [/usr/bin/unzip]
Where is your make program? [/usr/bin/make]
Where is your curl program? [/opt/local/bin/curl]
Warning: lynx not found in PATH[/opt/local/bin;/opt/local/sbin;/opt/local/bin;/opt/local/sbin;/opt/local/bin;/opt/local/sbin;/Users/fu7mu4/bin;/usr/bin;/bin;/usr/sbin;/sbin;/usr/local/bin;/usr/X11/bin]
Where is your lynx program?
Where is your wget program? [/opt/local/bin/wget]
Warning: ncftpget not found in PATH[/opt/local/bin;/opt/local/sbin;/opt/local/bin;/opt/local/sbin;/opt/local/bin;/opt/local/sbin;/Users/fu7mu4/bin;/usr/bin;/bin;/usr/sbin;/sbin;/usr/local/bin;/usr/X11/bin]
Where is your ncftpget program?
Warning: ncftp not found in PATH[/opt/local/bin;/opt/local/sbin;/opt/local/bin;/opt/local/sbin;/opt/local/bin;/opt/local/sbin;/Users/fu7mu4/bin;/usr/bin;/bin;/usr/sbin;/sbin;/usr/local/bin;/usr/X11/bin]
Where is your ncftp program?
Where is your ftp program? [/usr/bin/ftp]
Warning: gpg not found in PATH[/opt/local/bin;/opt/local/sbin;/opt/local/bin;/opt/local/sbin;/opt/local/bin;/opt/local/sbin;/Users/fu7mu4/bin;/usr/bin;/bin;/usr/sbin;/sbin;/usr/local/bin;/usr/X11/bin]
Where is your gpg program?
Where is your patch program? [/usr/bin/patch]
Warning: applypatch not found in PATH[/opt/local/bin;/opt/local/sbin;/opt/local/bin;/opt/local/sbin;/opt/local/bin;/opt/local/sbin;/Users/fu7mu4/bin;/usr/bin;/bin;/usr/sbin;/sbin;/usr/local/bin;/usr/X11/bin]
Where is your applypatch program?
What is your favorite pager program? [/opt/local/bin/less]
What is your favorite shell? [/bin/bash]
When CPAN.pm uses the tar command, which switch for the verbosity
shall be used? Choose 'none' for quiet operation, 'v' for file
name listing, 'vv' for full listing.
Tar command verbosity level (none or v or vv)? [v]
When CPAN.pm loads a module it needs for some optional feature, it
usually reports about module name and version. Choose 'v' to get this
message, 'none' to suppress it.
Verbosity level for loading modules (none or v)? [v]
When CPAN.pm extends @INC via PERL5LIB, it prints a list of
directories added (or a summary of how many directories are
added). Choose 'v' to get this message, 'none' to suppress it.
Verbosity level for PERL5LIB changes (none or v)? [v]
When the CPAN shell is started it normally displays a greeting message
that contains the running version and the status of readline support.
Do you want to turn this message off? [no]
When you have Module::Build installed and a module comes with both a
Makefile.PL and a Build.PL, which shall have precedence?The main two standard installer modules are the old and well
established ExtUtils::MakeMaker (for short: EUMM) which uses the
Makefile.PL. And the next generation installer Module::Build (MB)
which works with the Build.PL (and often comes with a Makefile.PL
too). If a module comes only with one of the two we will use that one
but if both are supplied then a decision must be made between EUMM and
MB. See also http://rt.cpan.org/Ticket/Display.html?id=29235 for a
discussion about the right default.Or, as a third option you can choose RAND which will make a random
decision (something regular CPAN testers will enjoy).
In case you can choose between running a Makefile.PL or a Build.PL,
which installer would you prefer (EUMM or MB or RAND)? [MB]
Every Makefile.PL is run by perl in a separate process. Likewise we
run 'make' and 'make install' in separate processes. If you have
any parameters (e.g. PREFIX, 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.
Typical frequently used settings:
PREFIX=~/perl # non-root users (please see manual for more hints)
Parameters for the 'perl Makefile.PL' command?
Parameters for the 'make' command? Typical frequently used setting:
-j3 # dual processor system (on GNU make)
Your choice:
Do you want to use a different make command for 'make install'?
Cautious people will probably prefer:su root -c make
or
sudo make
or
/path1/to/sudo -u admin_account /path2/to/make
or some such. Your choice: [/usr/bin/make]
Parameters for the 'make install' command?
Typical frequently used setting:UNINST=1 # to always uninstall potentially conflicting files
Your choice:
A Build.PL is run by perl in a separate process. Likewise we run
'./Build' and './Build install' in separate processes. If you have any
parameters you want to pass to the calls, please specify them here.Typical frequently used settings:
--install_base /home/xxx # different installation directory
Parameters for the 'perl Build.PL' command?
Parameters for the './Build' command? Setting might be:
--extra_linker_flags -L/usr/foo/lib # non-standard library location
Your choice:
Do you want to use a different command for './Build install'? Sudo
users will probably prefer:su root -c ./Build
or
sudo ./Build
or
/path1/to/sudo -u admin_account ./Build
or some such. Your choice: [./Build]
Parameters for the './Build install' command? Typical frequently used
setting:--uninst 1 # uninstall conflicting files
Your choice:
Sometimes you may wish to leave the processes run by CPAN alone
without caring about them. Because the Makefile.PL or the Build.PL
sometimes 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,Build}.PL? [0]
Normaly, CPAN.pm continues processing the full list of targets and
dependencies, even if one of them fails. However, you can specify
that CPAN should halt after the first failure.
Do you want to halt on failure (yes/no)? [no]
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?
Shall we always set the FTP_PASSIVE environment variable when dealing
with ftp download (yes/no)? [yes]
CPAN.pm changes the current working directory often and needs to
determine its own current working directory. Per default it uses
Cwd::cwd but if this doesn't work on your system for some reason,
alternatives can be configured according to the following table:cwd Cwd::cwd
getcwd Cwd::getcwd
fastcwd Cwd::fastcwd
backtickcwd external command cwd
Preferred method for determining the current working directory? [cwd]
The prompt of the cpan shell can contain the current command number
for easier tracking of the session or be a plain string.
Do you want the command number in the prompt (yes/no)? [yes]
When using Term::ReadLine, you can turn ornaments on so that your
input stands out against the output from CPAN.pm.
Do you want to turn ornaments on? [yes]
When you have Term::ANSIColor installed, you can turn on colorized
output to have some visual differences between normal CPAN.pm output,
warnings, debugging output, and the output of the modules being
installed. Set your favorite colors after some experimenting with the
Term::ANSIColor module.
Do you want to turn on colored output? [no]
The next option deals with the charset (aka character set) your
terminal supports. In general, CPAN is English speaking territory, so
the charset does not matter much but some CPAN have names that are
outside the ASCII range. If your terminal supports UTF-8, you should
say no to the next question. If it expects ISO-8859-1 (also known as
LATIN1) then you should say yes. If it supports neither, your answer
does not matter because 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.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/fu7mu4/.cpan/histfile]
Number of lines to save? [100]
The 'd' and the 'm' command normally only show you information they
have in their in-memory database and thus will never connect to the
internet. If you set the 'show_upload_date' variable to true, 'm' and
'd' will additionally show you the upload date of the module or
distribution. Per default this feature is off because it may require a
net connection to get at the upload date.
Always try to show upload date with 'd' and 'm' command (yes/no)? [no]
During the 'r' command CPAN.pm finds modules without version number.
When the command finishes, it prints a report about this. If you
want this report to be very verbose, say yes to the following
variable.
Show all individual modules that have no $VERSION? [no]
During the 'r' command CPAN.pm finds modules with a version number of
zero. When the command finishes, it prints a report about this. If you
want this report to be very verbose, say yes to the following
variable.
Show all individual modules that have a $VERSION of zero? [no]
If you have never defined your own C
in your configuration
then Cwill be hesitant to use the built in default sites for
downloading. It will ask you once per session if a connection to the
internet is OK and only if you say yes, it will try to connect. But to
avoid this question, you can choose your favorite download sites once
and get away with it. Or, if you have no favorite download sites
answer yes to the following question.
If no urllist has been chosen yet, would you prefer CPAN.pm to connect
to the built-in default sites without asking? (yes/no)? [yes]
Autoconfigured everything but 'urllist'.
Please call 'o conf init urllist' to configure your CPAN server(s) now!
commit: wrote '/opt/local/lib/perl5/5.8.9/CPAN/Config.pm'
Terminal does not support AddHistory.cpan shell -- CPAN exploration and modules installation (v1.9301)
ReadLine support available (maybe install Bundle::CPAN or Bundle::CPANxxl?)
install Class::Date
cpan[1]> install Class::Date
CPAN: Storable loaded ok (v2.19)
CPAN: LWP::UserAgent loaded ok (v5.834)
Fetching with LWP:
http://www.perl.org/CPAN/authors/01mailrc.txt.gz
Going to read /Users/fu7mu4/.cpan/sources/authors/01mailrc.txt.gz
CPAN: Compress::Zlib loaded ok (v2.024)
............................................................................DONE
Fetching with LWP:
http://www.perl.org/CPAN/modules/02packages.details.txt.gz
Going to read /Users/fu7mu4/.cpan/sources/modules/02packages.details.txt.gz
Database was generated on Sun, 31 Jan 2010 03:37:56 GMT
...............
New CPAN.pm version (v1.9402) available.
[Currently running version is v1.9301]
You might want to try
install CPAN
reload cpan
to both upgrade CPAN.pm and run the new version without leaving
the current session.
.............................................................DONE
Fetching with LWP:
http://www.perl.org/CPAN/modules/03modlist.data.gz
Going to read /Users/fu7mu4/.cpan/sources/modules/03modlist.data.gz
............................................................................DONE
Going to write /Users/fu7mu4/.cpan/Metadata
Running install for module 'Class::Date'
CPAN: Data::Dumper loaded ok (v2.121_17)
'YAML' not installed, falling back to Data::Dumper and Storable to read prefs '/Users/fu7mu4/.cpan/prefs'
Running make for D/DL/DLUX/Class-Date-1.1.9.tar.gz
Fetching with LWP:
http://www.perl.org/CPAN/authors/id/D/DL/DLUX/Class-Date-1.1.9.tar.gzCPAN: checksum security checks disabled because Digest::SHA not installed.
Please consider installing the Digest::SHA module.Scanning cache /Users/fu7mu4/.cpan/build for sizes
DONE
x Class-Date-1.1.9/
x Class-Date-1.1.9/Changes
x Class-Date-1.1.9/Date/
x Class-Date-1.1.9/Date/Const.pm
x Class-Date-1.1.9/Date.pm
x Class-Date-1.1.9/Date.pod
x Class-Date-1.1.9/Date.xs
x Class-Date-1.1.9/Makefile.PL
x Class-Date-1.1.9/MANIFEST
x Class-Date-1.1.9/MANIFEST.SKIP
x Class-Date-1.1.9/META.yml
x Class-Date-1.1.9/README
x Class-Date-1.1.9/t/
x Class-Date-1.1.9/t/00_base.t
x Class-Date-1.1.9/t/10_fields.t
x Class-Date-1.1.9/t/20_gmdate.t
x Class-Date-1.1.9/t/30_localdate.t
x Class-Date-1.1.9/t/40_errors.t
CPAN: File::Temp loaded ok (v0.20)CPAN.pm: Going to build D/DL/DLUX/Class-Date-1.1.9.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for Class::Date
Could not read '/Users/fu7mu4/.cpan/build/Class-Date-1.1.9-nLYzQU/META.yml'. Falling back to other methods to determine prerequisites
cp Date.pod blib/lib/Class/Date.pod
cp Date.pm blib/lib/Class/Date.pm
cp Date/Const.pm blib/lib/Class/Date/Const.pm
/opt/local/bin/perl /opt/local/lib/perl5/5.8.9/ExtUtils/xsubpp -typemap /opt/local/lib/perl5/5.8.9/ExtUtils/typemap Date.xs > Date.xsc && mv Date.xsc Date.c
Please specify prototyping behavior for Date.xs (see perlxs manual)
/usr/bin/gcc-4.2 -c -O2 -arch x86_64 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -O3 -DVERSION=\"1.1.9\" -DXS_VERSION=\"1.1.9\" "-I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE" Date.c
Running Mkbootstrap for Class::Date ()
chmod 644 Date.bs
rm -f blib/arch/auto/Class/Date/Date.bundle
env MACOSX_DEPLOYMENT_TARGET=10.3 /usr/bin/gcc-4.2 -L/opt/local/lib -bundle -undefined dynamic_lookup -L/usr/local/lib Date.o -o blib/arch/auto/Class/Date/Date.bundle \
\
chmod 755 blib/arch/auto/Class/Date/Date.bundle
cp Date.bs blib/arch/auto/Class/Date/Date.bs
chmod 644 blib/arch/auto/Class/Date/Date.bs
Manifying blib/man3/Class::Date.3pm
DLUX/Class-Date-1.1.9.tar.gz
/usr/bin/make -- OK
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Running make test
PERL_DL_NONLAZY=1 /opt/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00_base.........ok
t/10_fields.......ok
t/20_gmdate.......ok
t/30_localdate....ok
t/40_errors.......ok
All tests successful.
Files=5, Tests=175, 1 wallclock secs ( 0.18 cusr + 0.07 csys = 0.25 CPU)
DLUX/Class-Date-1.1.9.tar.gz
/usr/bin/make test -- OK
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Running make install
Prepending /Users/fu7mu4/.cpan/build/Class-Date-1.1.9-nLYzQU/blib/arch /Users/fu7mu4/.cpan/build/Class-Date-1.1.9-nLYzQU/blib/lib to PERL5LIB for 'install'
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /opt/local/lib/perl5/site_perl/5.8.9/darwin-2level/auto/Class/Date/Date.bs
Installing /opt/local/lib/perl5/site_perl/5.8.9/darwin-2level/auto/Class/Date/Date.bundle
Installing /opt/local/lib/perl5/site_perl/5.8.9/darwin-2level/Class/Date.pm
Installing /opt/local/lib/perl5/site_perl/5.8.9/darwin-2level/Class/Date.pod
Installing /opt/local/lib/perl5/site_perl/5.8.9/darwin-2level/Class/Date/Const.pm
Installing /opt/local/share/man/man3/Class::Date.3pm
Writing /opt/local/lib/perl5/site_perl/5.8.9/darwin-2level/auto/Class/Date/.packlist
Appending installation info to /opt/local/lib/perl5/5.8.9/darwin-2level/perllocal.pod
DLUX/Class-Date-1.1.9.tar.gz
/usr/bin/make install -- OK
Warning (usually harmless): 'YAML' not installed, will not store persistent statecpan[2]> q
Terminal does not support GetHistory.
Lockfile removed.