I have the following line in ~/.cpan/CPAN/MyConfig.pm. Will the
updated be installed in ~/site?
'makepl_arg' => q[INSTALLDIRS=site],
>perl -MCPAN -e shell
cpan>install Bundle::CPAN
cpan>q
I run
>perl -MCPAN -e shell
cpan>install Devel::REPL
It gave me a lot of output on the screen. But eventually the
installation failed. I only paste the last a few lines of the output
since the entire output is too long. Could you let me know how to fix
the problem?
BTW, ~/.cpan/CPAN/MyConfig.pm is pasted at the end.
# Failed test 'use Devel::REPL::Plugin::ReadLineHistory;'
# at t/load_core.t line 18.
# Tried to use 'Devel::REPL::Plugin::ReadLineHistory'.
# Error: Attempt to reload Devel/REPL/Plugin.pm aborted.
# Compilation failed in require at /home/pengy/.cpan/build/Devel-
REPL-1.003007-nEx9LW/blib/lib/Devel/REPL/Plugin/ReadLineHistory.pm
line 8.
# BEGIN failed--compilation aborted at /home/pengy/.cpan/build/Devel-
REPL-1.003007-nEx9LW/blib/lib/Devel/REPL/Plugin/ReadLineHistory.pm
line 8.
# Compilation failed in require at (eval 19) line 2.
# BEGIN failed--compilation aborted at (eval 19) line 2.
# Failed test 'use Devel::REPL::Plugin::ShowClass;'
# at t/load_core.t line 19.
# Tried to use 'Devel::REPL::Plugin::ShowClass'.
# Error: Attempt to reload Devel/REPL/Plugin.pm aborted.
# Compilation failed in require at /home/pengy/.cpan/build/Devel-
REPL-1.003007-nEx9LW/blib/lib/Devel/REPL/Plugin/ShowClass.pm line 2.
# BEGIN failed--compilation aborted at /home/pengy/.cpan/build/Devel-
REPL-1.003007-nEx9LW/blib/lib/Devel/REPL/Plugin/ShowClass.pm line 2.
# Compilation failed in require at (eval 20) line 2.
# BEGIN failed--compilation aborted at (eval 20) line 2.
# Failed test 'use Devel::REPL::Plugin::Timing;'
# at t/load_core.t line 20.
# Tried to use 'Devel::REPL::Plugin::Timing'.
# Error: Attempt to reload Devel/REPL/Plugin.pm aborted.
# Compilation failed in require at /home/pengy/.cpan/build/Devel-
REPL-1.003007-nEx9LW/blib/lib/Devel/REPL/Plugin/Timing.pm line 3.
# BEGIN failed--compilation aborted at /home/pengy/.cpan/build/Devel-
REPL-1.003007-nEx9LW/blib/lib/Devel/REPL/Plugin/Timing.pm line 3.
# Compilation failed in require at (eval 21) line 2.
# BEGIN failed--compilation aborted at (eval 21) line 2.
# Failed test 'use Devel::REPL::Plugin::Turtles;'
# at t/load_core.t line 21.
# Tried to use 'Devel::REPL::Plugin::Turtles'.
# Error: Attempt to reload Devel/REPL/Plugin.pm aborted.
# Compilation failed in require at /home/pengy/.cpan/build/Devel-
REPL-1.003007-nEx9LW/blib/lib/Devel/REPL/Plugin/Turtles.pm line 2.
# BEGIN failed--compilation aborted at /home/pengy/.cpan/build/Devel-
REPL-1.003007-nEx9LW/blib/lib/Devel/REPL/Plugin/Turtles.pm line 2.
# Compilation failed in require at (eval 22) line 2.
# BEGIN failed--compilation aborted at (eval 22) line 2.
# Looks like you failed 17 tests of 17.
t/load_core.t .. Dubious, test returned 17 (wstat 4352, 0x1100)
Failed 17/17 subtests
Test Summary Report
-------------------
t/load_core.t (Wstat: 4352 Tests: 17 Failed: 17)
Failed tests: 1-17
Non-zero exit status: 17
Files=1, Tests=17, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.02
cusr 0.02 csys = 0.07 CPU)
Result: FAIL
Failed 1/1 test programs. 17/17 subtests failed.
make: *** [test_dynamic] Error 17
MSTROUT/Devel-REPL-1.003007.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module,
try:
reports MSTROUT/Devel-REPL-1.003007.tar.gz
Running make install
make test had returned bad status, won't install without force
Failed during this command:
ADIE/Test-Exception-0.27.tar.gz : make_test NO
DROLSKY/Class-MOP-0.97.tar.gz : make_test NO
FLORA/Moose-0.93.tar.gz : make_test NO
GRODITI/MooseX-Object-Pluggable-0.0011.tar.gz: make_test NO
RJBS/Getopt-Long-Descriptive-0.083.tar.gz : make_test NO
BOBTFISH/MooseX-Getopt-0.26.tar.gz : make_test NO
CHORNY/Test-Warn-0.21.zip : make_test NO
PETDANCE/WWW-Mechanize-1.60.tar.gz : make_test NO one
dependency not OK (Test::Warn)
SARTAK/App-Nopaste-0.17.tar.gz : make_test NO
DROLSKY/MooseX-AttributeHelpers-0.22.tar.gz : make_test NO
MSTROUT/Devel-REPL-1.003007.tar.gz : make_test NO
=================================
$CPAN::Config = {
'applypatch' => q[],
'auto_commit' => q[1],
'build_cache' => q[100],
'build_dir' => q[/home/pengy/.cpan/build],
'build_dir_reuse' => q[0],
'build_requires_install_policy' => q[yes],
'bzip2' => q[/bin/bzip2],
'cache_metadata' => q[1],
'check_sigs' => q[0],
'colorize_output' => q[0],
'commandnumber_in_prompt' => q[1],
'connect_to_internet_ok' => q[1],
'cpan_home' => q[/home/pengy/.cpan],
'curl' => q[/usr/bin/curl],
'dontload_hash' => { },
'ftp' => q[/usr/bin/ftp],
'ftp_passive' => q[1],
'ftp_proxy' => q[],
'getcwd' => q[cwd],
'gpg' => q[/usr/bin/gpg],
'gzip' => q[/bin/gzip],
'halt_on_failure' => q[0],
'histfile' => q[/home/pengy/.cpan/histfile],
'histsize' => q[10000],
'http_proxy' => q[],
'inactivity_timeout' => q[0],
'index_expire' => q[1],
'inhibit_startup_message' => q[0],
'keep_source_where' => q[/home/pengy/.cpan/sources],
'load_module_verbosity' => q[v],
'lynx' => q[],
'make' => q[/usr/bin/make],
'make_arg' => q[],
'make_install_arg' => q[],
'make_install_make_command' => q[/usr/bin/make],
'makepl_arg' => q[PREFIX=/home/pengy/utility/linux/opt/perl-5.10.1],
'mbuild_arg' => q[--extra_linker_flags
-L/home/pengy/utility/linux/opt/perl-5.10.1/lib],
'mbuild_install_arg' => q[],
'mbuild_install_build_command' => q[./Build],
'mbuildpl_arg' => q[--install_base /home/pengy/utility/linux/opt/perl-5.10.1],
'ncftp' => q[],
'ncftpget' => q[],
'no_proxy' => q[],
'pager' => q[/usr/bin/less],
'patch' => q[/usr/bin/patch],
'perl5lib_verbosity' => q[v],
'prefer_installer' => q[MB],
'prefs_dir' => q[/home/pengy/.cpan/prefs],
'prerequisites_policy' => q[follow],
'scan_cache' => q[atstart],
'shell' => q[/bin/bash],
'show_unparsable_versions' => q[0],
'show_upload_date' => q[0],
'show_zero_versions' => q[0],
'tar' => q[/bin/tar],
'tar_verbosity' => q[v],
'term_is_latin' => q[1],
'term_ornaments' => q[1],
'test_report' => q[0],
'trust_test_report_history' => q[0],
'unzip' => q[/usr/bin/unzip],
'urllist' => [q[ftp://ftp.osuosl.org/pub/CPAN/],
q[ftp://ftp.ncsu.edu/pub/mirror/CPAN/]],
'use_sqlite' => q[0],
'wget' => q[/usr/bin/wget],
'yaml_load_code' => q[0],
'yaml_module' => q[YAML],
};
1;
__END__
> I'm trying to update CPAN, but I don't have root permission. I'm
> wondering where the update is installed.
In general without root or sudo access you'll not be able to install perl modules - you can install them in directories where you have write access to though.
You may want to look at the local::lib perl module for installing without root permissions.
>
> I have the following line in ~/.cpan/CPAN/MyConfig.pm. Will the
> updated be installed in ~/site?
No.
In general perl modules get install in three locations: Vendor, Site, or Core. Core is where perl installs stuff, Vendor is where your package manager installs stuff, and Site is where you install stuff. But they all are different directories on your system and to make it more confusing, they differ depending on operating system.
What your cpan configuration is telling you is that cpan is installing perl modules in the "Site" directories on your computer. On my computer that directory is /usr/local/share/perl/5.10.0. You'll have to find out where that is on your machine.
More on this issue here: http://use.perl.org/~schwern/journal/39246
Jeremiah
Unfortunately, you didn't paste anything that I can see is problematic for installation. Yes, I can see that all the tests fail, but I can't see why though I suspect you need to have permission to build and install software in the directories at issue. You arguments to 'make_install_arg' might have to be filled in. Read cpan's help information on that by doing
$ cpan
cpan[1]> h
Jeremiah