I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2008-02-12 11:29:04-08 by mond
Installing into a user directory

Hi

After running setup I do:

$ perl bin/cpanp-boxed -s selfupdate dependencies

When it's testing 'Params::Check' it can't find 'Locale/Maketext/Simple.pm' because it's not in @INC. The previous step did install it but hasn't put the path on @INC. Adding that path to the 'lib' variable in the config file doesn't work as it doesn't add to @INC. Setting $PERL5LIB to this path before hand solves this.

I also had to remove the 'sudo' config variable, can this be configured in setup for a user install?

Even though I've set LIB and INSTALLMAN{1,3}DIR to locations within my home directory, it still wants to install in a dir I don't have permission for. E.g.

Installing /home/dergra01/tools/perl/cpanplus/0.84/common/man3/TAP::Parser::YAMLish::Reader.3 Cannot forceunlink /arm/tools/perl/perl/5.8.8/rhe3-ia32/bin/prove: Permission denied at arm/tools/perl/perl/5.8.8/rhe3-ia32/lib/5.8.8/File/Find.pm line 886 make: *** [pure_perl_install] Error 13 [ERROR] MAKE INSTALL failed: Illegal seek Warning: You do not have permissions to install into /arm/tools/perl/perl/5.8.8/rhe3-ia32/bin at /arm/tools/perl/perl/5.8.8/rhe3-ia32/lib/5.8.8/ExtUtils/Install.pm line 114. . . . Warning: You do not have permissions to install into /arm/tools/perl/perl/5.8.8/rhe3-ia32/man/man3 at /arm/tools/perl/perl/5.8.8/rhe3-ia32/lib/5.8.8/ExtUtils/Install.pm line 114. . . . etc

And then it fails when installing zlib:

Test Summary Report ------------------- t/uncomp1.t (Wstat: 0 Tests: 10 Failed: 1) Failed test: 5 t/uncomp2.t (Wstat: 0 Tests: 10 Failed: 1) Failed test: 5 Files=9, Tests=122, 1 wallclock secs ( 0.04 usr 0.07 sys + 0.21 cusr 0.11 csys = 0.43 CPU) Result: FAIL Failed 2/9 test programs. 2/122 subtests failed. make: *** [test_dynamic] Error 255 [ERROR] MAKE TEST failed: Illegal seek PERL_DL_NONLAZY=1 /arm/tools/perl/perl/5.8.8/rhe3-ia32/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t

Test 5:

ok(1, $file = IO::Zlib->new()); ok(2, $file->open($name, "rb")); ok(3, !$file->eof()); ok(4, $file->read($uncomp, 1024) == length($hello)); ok(5, $file->eof());

Any ideas?

Thanks in advance,

Derek



Boxed config file
--------------------------------------------------
package CPANPLUS::Config::Boxed; use strict; sub setup { my $conf = shift; ### conf section $conf->set_conf( allow_build_interactivity => 1 ); $conf->set_conf( base => '/home/dergra01/dl/CPANPLUS-0.84/bin/../.cpanplus/dergra01' ); $conf->set_conf( buildflags => '' ); $conf->set_conf( cpantest => 0 ); $conf->set_conf( cpantest_mx => '' ); $conf->set_conf( debug => 0 ); $conf->set_conf( dist_type => '' ); $conf->set_conf( email => 'cpanplus@example.com' ); $conf->set_conf( extractdir => '' ); $conf->set_conf( fetchdir => '' ); $conf->set_conf( flush => 1 ); $conf->set_conf( force => 0 ); $conf->set_conf( hosts => [ { 'scheme' => 'ftp', 'path' => '/pub/CPAN/', 'host' => 'ftp.cpan.org' }, { 'scheme' => 'http', 'path' => '/', 'host' => 'www.cpan.org' }, { 'scheme' => 'ftp', 'path' => '/pub/CPAN/', 'host' => 'ftp.nl.uu.net' }, { 'scheme' => 'ftp', 'path' => '/pub/CPAN/', 'host' => 'cpan.valueclick.com' }, { 'scheme' => 'ftp', 'path' => '/pub/languages/perl/CPAN/', 'host' => 'ftp.funet.fi' } ] ); $conf->set_conf( lib => ['/home/dergra01/tools/perl/cpanplus/0.84/rhe3-ia32/lib'] ); $conf->set_conf( makeflags => '' ); $conf->set_conf( makemakerflags => 'LIB=/home/dergra01/tools/perl/cpanplus/0.84/rhe3-ia32/lib I +NSTALLMAN1DIR=/home/dergra01/tools/perl/cpanplus/0.84/common/man1 INSTALLMAN3DIR=/home/dergra01/to +ols/perl/cpanplus/0.84/common/man3' ); $conf->set_conf( md5 => 1 ); $conf->set_conf( no_update => 0 ); $conf->set_conf( passive => 1 ); $conf->set_conf( prefer_bin => 0 ); $conf->set_conf( prefer_makefile => 1 ); $conf->set_conf( prereqs => 1 ); $conf->set_conf( shell => 'CPANPLUS::Shell::Default' ); $conf->set_conf( show_startup_tip => 1 ); $conf->set_conf( signature => 0 ); $conf->set_conf( skiptest => 0 ); $conf->set_conf( storable => 1 ); $conf->set_conf( timeout => 300 ); $conf->set_conf( verbose => 1 ); $conf->set_conf( write_install_logs => 1 ); ### program section $conf->set_program( editor => '/usr/bin/nano' ); $conf->set_program( make => '/usr/bin/make' ); $conf->set_program( pager => '/usr/bin/less' ); $conf->set_program( perlwrapper => '/home/dergra01/dl/CPANPLUS-0.84/lib/../bin/cpanp-run-perl' +); $conf->set_program( shell => '/bin/tcsh' ); $conf->set_program( sudo => '' ); return 1; }
Direct Responses: 7090 | Write a response