Hi Bill,

Re-install Bundle::CPAN as advised.

I answered most questions with <Enter>.  Installation
went on smoothly without warning and finally cpan>
prompted.

But for unknown reason the PC continued to run and I
was not allowed to type "quit" to exit.  Neither I was
allowed to switch to runlevel 2 or 3, memory being
exhausted.  Finally I have hit the "Reset" botton

Hereinunder is part of printout on terminal:

# perl -MCPAN -e 'shell'
Undefined value assigned to typeglob at (eval 16) line
15, <RC> line 11.
Warning [/etc/inputrc line 11]:
  Invalid variable `mark-symlinked-directories'

cpan shell -- CPAN exploration and modules
installation (v1.7601)
ReadLine support enabled

cpan> o conf init

/usr/lib/perl5/5.8.3/CPAN/Config.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]


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
    /root/.cpan
Shall we use it as the general CPAN build and cache
directory?

CPAN build and cache directory? [/root/.cpan] <Enter>


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]<Enter>

cpan> o conf inites/no)? [yes]<Enter>

Cache metadata (yes/no)? [yes]<Enter>

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

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

Number of lines to save? [100]<Enter>

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



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]<Enter>
Where is your tar program? [/bin/tar]<Enter>
Where is your unzip program? [/usr/bin/unzip]<Enter>
Where is your make program? [/usr/bin/make]<Enter>
Where is your links program? [/usr/bin/links]<Enter>
Where is your wget program? [/usr/bin/wget]<Enter>
Where is your ncftpget program?
[/usr/bin/ncftpget]<Enter>
Where is your ftp program? [/usr/bin/ftp]<Enter>
Where is your gpg program? [/usr/bin/gpg]<Enter>
What is your favorite pager program?
[/usr/bin/less]<Enter>
What is your favorite shell? [/bin/bash]<Enter>


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:  []<Enter>
Parameters for the 'make' command?
Typical frequently used setting:

    -j3              dual processor system

Your choice:  [-j3] -j3
Parameters for the 'make install' command?
Typical frequently used setting:

    UNINST=1         to always uninstall potentially
conflicting files

Your choice:  [-j3]<Enter>

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]<Enter>

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? [no]<Enter>
Your http_proxy? [no]<Enter>
Your no_proxy? [no]<Enter>


If your proxy is an authenticating proxy, you can
store your username
permanently. If you do not want that, just press
RETURN. You will then
be asked for your username in every future session.

Your proxy user id?<Enter>

>>>>> Data lost from here after resetting the PC <<<<<


# ls -al /root/.cpan/
total 5056
drwxr-xr-x   5 root root    4096 Nov 20 12:21 .
drwxr-x---  71 root root    4096 Nov 20 12:34 ..
drwxr-xr-x  10 root root    4096 Nov 20 12:21 build
drwxr-xr-x   2 root root    4096 Nov 20 12:21 Bundle
-rw-r--r--   1 root root 5143383 Nov 19 15:09 Metadata
drwxr-xr-x   4 root root    4096 Nov 20 12:17 sources

It seems to me "Bundle" having been installed.

# ls -al /root/.cpan/Bundle/
total 16
drwxr-xr-x  2 root root 4096 Nov 20 12:21 .
drwxr-xr-x  5 root root 4096 Nov 20 12:21 ..
-rw-r--r--  1 root root 1231 Nov 20 12:21 CPAN.pm
-rw-r--r--  1 root root  630 Nov 20 12:21 libnet.pm

# ls -al /root/.cpan/sources/
total 164
drwxr-xr-x  4 root root   4096 Nov 20 12:17 .
drwxr-xr-x  5 root root   4096 Nov 20 12:21 ..
drwxr-xr-x  3 root root   4096 Nov 19 15:09 authors
-rw-r--r--  1 root root 145453 Nov 20 12:17
MIRRORED.BY
drwxr-xr-x  2 root root   4096 Nov 19 15:09 modules


If I made anything wrong, please advise.  TIA

B.R.
Stephen


 --- Chasecreek Systemhouse
<[EMAIL PROTECTED]> wrote: 
> On Sat, 20 Nov 2004 01:10:32 +0800 (CST), Stephen
> Liu <[EMAIL PROTECTED]> wrote:
> 
> > > /root/.cpan/yes
> > 
> > the directory 'yes' is not empty.
> > 
> > # ls -al /root/.cpan/yes/
> > total 5060
> > drwxr-xr-x   5 root root    4096 Nov 20 00:52 .
> 
> 
> As root -- 
> rm -fR /root/.cpan/yes
> 
> > > As root -
> > > cd
> > > perl -MCPAN -e 'shell
> > > cpan> o conf init
> > 
> > Whether you suggest me re-run
> > # perl -MCPAN -e 'shell'
> > cpan> o conf init
> > as root
> 
> Yes, as root.  This will avoid issues created when
> dealing with
> packages as a non-root UserID.
> 
> -- 
> WC -Sx- Jones
> http://insecurity.org/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to