Skip Menu |

This queue is for tickets about the Module-Build-Tiny CPAN distribution.

Report information
The Basics
Id: 85139
Status: resolved
Priority: 0/
Queue: Module-Build-Tiny

People
Owner: Nobody in particular
Requestors: uncoolbob [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.019
Fixed in: (no value)



Subject: Module::Build::Tiny doesn't install into "local-lib"
I "use local-lib" - in particular I have this in my .cshrc setenv MODULEBUILDRC "/home/myname/perl5/.modulebuildrc" # contains: # install --install_base /home/myname/perl5 # setenv PERL_MM_OPT "INSTALL_BASE=/home/myname/perl5" setenv PERL5LIB "/home/myname/perl5/lib/perl5/x86_64-linux-thread-multi:/home/myname/perl5/lib/perl5" When I type "cpan Module::Build::Tiny" as myself (not root) it complains (see below) about not being able to write in /usr/lib Lots and lots of other modules have been fine in the past. Can you help please? All tests successful. Files=3, Tests=23, 1 wallclock secs ( 0.05 usr 0.02 sys + 0.47 cusr 0.10 csys = 0.64 CPU) Result: PASS LEONT/Module-Build-Tiny-0.019.tar.gz ./Build test -- OK Running Build install Prepending /home/myname/.cpan/build/Module-Build-Tiny-0.019-pVfvm9/blib/arch /home/myname/.cpan/build/Module-Build-Tiny-0.019-pVfvm9/blib/lib to PERL5LIB for 'install' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ERROR: Can't create '/usr/lib/perl5/site_perl/5.12.3/Module/Build' mkdir /usr/lib/perl5/site_perl/5.12.3/Module/Build: Permission denied at /usr/lib/perl5/5.12.3/ExtUtils/Install.pm line 494. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! at lib/Module/Build/Tiny.pm line 82. LEONT/Module-Build-Tiny-0.019.tar.gz ./Build install -- NOT OK
Subject: Re: [rt.cpan.org #85139] Module::Build::Tiny doesn't install into "local-lib"
Date: Wed, 8 May 2013 20:59:24 +0200
To: bug-Module-Build-Tiny [...] rt.cpan.org
From: Leon Timmermans <fawaka [...] gmail.com>
On Wed, May 8, 2013 at 7:29 PM, https://me.yahoo.com/a/ea8p8JwYnosfxSTV0Sl_xnjvkkLF#ea82b via RT <bug-Module-Build-Tiny@rt.cpan.org> wrote: Show quoted text
> I "use local-lib" - in particular I have this in my .cshrc > > setenv MODULEBUILDRC "/home/myname/perl5/.modulebuildrc" > # contains: > # install --install_base /home/myname/perl5 > # > setenv PERL_MM_OPT "INSTALL_BASE=/home/myname/perl5" > setenv PERL5LIB "/home/myname/perl5/lib/perl5/x86_64-linux-thread-multi:/home/myname/perl5/lib/perl5" > > > When I type "cpan Module::Build::Tiny" as myself (not root) it > complains (see below) about not being able to write in /usr/lib > Lots and lots of other modules have been fine in the past. > Can you help please?
You're using an outdated (and AFAIK deprecated) local::lib practice. Instead of that first line you want to do setenv PERL_MB_OPT "--install_base /home/myname/perl5" You may need to upgrade Module::Build if you have something older than 0.3600 (not very likely, given lots of dists require something newer). You also may want to add a PATH line. Best idea is to upgrade local::lib, and let it regenerate those lines. Leon
Subject: Re: [rt.cpan.org #85139] Module::Build::Tiny doesn't install into "local-lib"
Date: Thu, 9 May 2013 11:42:32 +0100
To: bug-Module-Build-Tiny [...] rt.cpan.org
From: Bob MacCallum <uncoolbob [...] gmail.com>
Thanks very much Leon. Updating local::lib and using the new shell variable setup worked fine (also for Starman which was also trying to install into /usr/bin) Although local::lib isn't very tcsh friendly but I can live with that (one day I will be all bash!) On Wed, May 8, 2013 at 8:00 PM, Leon Timmermans via RT <bug-Module-Build-Tiny@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=85139 > > > On Wed, May 8, 2013 at 7:29 PM, > https://me.yahoo.com/a/ea8p8JwYnosfxSTV0Sl_xnjvkkLF#ea82b via RT > <bug-Module-Build-Tiny@rt.cpan.org> wrote:
>> I "use local-lib" - in particular I have this in my .cshrc >> >> setenv MODULEBUILDRC "/home/myname/perl5/.modulebuildrc" >> # contains: >> # install --install_base /home/myname/perl5 >> # >> setenv PERL_MM_OPT "INSTALL_BASE=/home/myname/perl5" >> setenv PERL5LIB "/home/myname/perl5/lib/perl5/x86_64-linux-thread-multi:/home/myname/perl5/lib/perl5" >> >> >> When I type "cpan Module::Build::Tiny" as myself (not root) it >> complains (see below) about not being able to write in /usr/lib >> Lots and lots of other modules have been fine in the past. >> Can you help please?
> > You're using an outdated (and AFAIK deprecated) local::lib practice. > Instead of that first line you want to do > > setenv PERL_MB_OPT "--install_base /home/myname/perl5" > > You may need to upgrade Module::Build if you have something older than > 0.3600 (not very likely, given lots of dists require something newer). > > You also may want to add a PATH line. Best idea is to upgrade > local::lib, and let it regenerate those lines. > > Leon >