Thread: [Module::Build] Data::FormValidator + Module::Build : local prefix install fails under linux
Status: Beta
Brought to you by:
kwilliams
|
From: Terrence B. <met...@ur...> - 2003-11-18 07:37:55
|
princepawn@perlmonk ~/.cpan/build/Data-FormValidator-3.14 : perl Makefile.PL PR\ EFIX=$PREFIX /usr/bin/perl Build.PL config=prefix=/home/princepawn/install Deleting _build Creating custom builder _build/lib/Data/FormValidator/Builder.pm in _build/lib/\ Data/FormValidator Checking whether your kit is complete... Looks good Deleting Build Removed previous script 'Build' Creating new 'Build' script for 'Data-FormValidator' version '3.14' princepawn@perlmonk ~/.cpan/build/Data-FormValidator-3.14 : echo $PREFIX /home/princepawn/install princepawn@perlmonk ~/.cpan/build/Data-FormValidator-3.14 : make install /usr/bin/perl Build install Warning: You do not have permissions to install into /usr/local/share/perl/5.8.\ 0 at /usr/share/perl/5.8.0/ExtUtils/Install.pm line 114. mkdir /usr/local/share/perl/5.8.0/Data: Permission denied at /usr/share/perl/5.\ 8.0/ExtUtils/Install.pm line 176 make: *** [install] Error 255 princepawn@perlmonk ~/.cpan/build/Data-FormValidator-3.14 : uname -a Linux perlmonk.org 2.4.18 #12 Fri Sep 13 17:49:41 EDT 2002 i686 GNU/Linux princepawn@perlmonk ~/.cpan/build/Data-FormValidator-3.14 : |
|
From: Randy W. S. <Ra...@Th...> - 2003-11-20 02:30:39
|
On 11/17/2003 8:12 PM, Terrence Brannon wrote: > princepawn@perlmonk ~/.cpan/build/Data-FormValidator-3.14 : perl > Makefile.PL PR\ > EFIX=$PREFIX > /usr/bin/perl Build.PL config=prefix=/home/princepawn/install > Deleting _build > Creating custom builder _build/lib/Data/FormValidator/Builder.pm in > _build/lib/\ > Data/FormValidator > Checking whether your kit is complete... > Looks good > Deleting Build > Removed previous script 'Build' > Creating new 'Build' script for 'Data-FormValidator' version '3.14' > princepawn@perlmonk ~/.cpan/build/Data-FormValidator-3.14 : echo $PREFIX > /home/princepawn/install > princepawn@perlmonk ~/.cpan/build/Data-FormValidator-3.14 : make install > /usr/bin/perl Build install > Warning: You do not have permissions to install into > /usr/local/share/perl/5.8.\ > 0 at /usr/share/perl/5.8.0/ExtUtils/Install.pm line 114. > mkdir /usr/local/share/perl/5.8.0/Data: Permission denied at > /usr/share/perl/5.\ > 8.0/ExtUtils/Install.pm line 176 > make: *** [install] Error 255 > princepawn@perlmonk ~/.cpan/build/Data-FormValidator-3.14 : uname -a > Linux perlmonk.org 2.4.18 #12 Fri Sep 13 17:49:41 EDT 2002 i686 GNU/Linux > princepawn@perlmonk ~/.cpan/build/Data-FormValidator-3.14 : > Is this a M::B issue or a security issue? I'm not that familiar with M::B's install code, so I honestly don't know what should happen here. I install software as root when on *nix so there is no problem. What does MakeMaker do? Can you install as root? Hopefully Ken will be back soon... ;) Randy. |
|
From: Terrence B. <met...@ur...> - 2003-11-20 16:17:47
|
Randy W. Sims wrote: > On 11/17/2003 8:12 PM, Terrence Brannon wrote: > >> princepawn@perlmonk ~/.cpan/build/Data-FormValidator-3.14 : perl >> Makefile.PL PR\ >> EFIX=$PREFIX >> /usr/bin/perl Build.PL config=prefix=/home/princepawn/install >> Deleting _build >> Creating custom builder _build/lib/Data/FormValidator/Builder.pm in >> _build/lib/\ >> Data/FormValidator >> Checking whether your kit is complete... >> Looks good >> Deleting Build >> Removed previous script 'Build' >> Creating new 'Build' script for 'Data-FormValidator' version '3.14' >> princepawn@perlmonk ~/.cpan/build/Data-FormValidator-3.14 : echo $PREFIX >> /home/princepawn/install >> princepawn@perlmonk ~/.cpan/build/Data-FormValidator-3.14 : make install >> /usr/bin/perl Build install >> Warning: You do not have permissions to install into >> /usr/local/share/perl/5.8.\ >> 0 at /usr/share/perl/5.8.0/ExtUtils/Install.pm line 114. >> mkdir /usr/local/share/perl/5.8.0/Data: Permission denied at >> /usr/share/perl/5.\ >> 8.0/ExtUtils/Install.pm line 176 >> make: *** [install] Error 255 >> princepawn@perlmonk ~/.cpan/build/Data-FormValidator-3.14 : uname -a >> Linux perlmonk.org 2.4.18 #12 Fri Sep 13 17:49:41 EDT 2002 i686 >> GNU/Linux >> princepawn@perlmonk ~/.cpan/build/Data-FormValidator-3.14 : >> > > Is this a M::B issue or a security issue? M::B issue --- > I'm not that familiar with M::B's install code, so I honestly don't > know what should happen here. I install software as root when on *nix > so there is no problem. What does MakeMaker do? when you type perl Makefile.PL PREFIX=$PREFIX, you can install wherever $PREFIX is set to, as long as you have write permissions. I have done so with MakeMaker-style makefiles plenty of times on this Linux machine. But no dice with M::B. > Can you install as root? no, this is at www.perlmonk.org --- the perlmonks user site. > Hopefully Ken will be back soon... ;) > > Randy. > |
|
From: Ken W. <ke...@ma...> - 2003-11-28 17:26:57
|
I think the first patch I'll make for this issue is below. It's too
confusing for the Makefile.PL to accept a PREFIX parameter but not
respect it.
This will just make it die when it encounters PREFIX.
===================================================================
RCS file:
/cvsroot/module-build/Module-Build/lib/Module/Build/Compat.pm,v
retrieving revision 1.31
diff -u -r1.31 Compat.pm
--- lib/Module/Build/Compat.pm 7 Sep 2003 23:05:07 -0000 1.31
+++ lib/Module/Build/Compat.pm 28 Nov 2003 17:24:52 -0000
@@ -13,7 +13,9 @@
VERBINST => 'verbose',
INC => sub { map "extra_compiler_flags=-I$_",
Module::Build->split_like_shell(shift) },
POLLUTE => sub { 'extra_compiler_flags=-DPERL_POLLUTE' },
- INSTALLDIRS => sub {local $_ = shift; 'installdirs=' . (/^perl$/ ?
'core' : $_) }
+ INSTALLDIRS => sub {local $_ = shift; 'installdirs=' . (/^perl$/ ?
'core' : $_) },
+ PREFIX => sub {die "Sorry, PREFIX is not supported. See the
Module::Build\n".
+ "documentation for 'destdir' or 'install_base' instead.\n"},
);
sub create_makefile_pl {
===================================================================
On Monday, November 17, 2003, at 07:12 PM, Terrence Brannon wrote:
> princepawn@perlmonk ~/.cpan/build/Data-FormValidator-3.14 : perl
> Makefile.PL PR\
> EFIX=$PREFIX
> /usr/bin/perl Build.PL config=prefix=/home/princepawn/install
> Deleting _build
> Creating custom builder _build/lib/Data/FormValidator/Builder.pm in
> _build/lib/\
> Data/FormValidator
> Checking whether your kit is complete...
> Looks good
> Deleting Build
> Removed previous script 'Build'
> Creating new 'Build' script for 'Data-FormValidator' version '3.14'
> princepawn@perlmonk ~/.cpan/build/Data-FormValidator-3.14 : echo
> $PREFIX
> /home/princepawn/install
> princepawn@perlmonk ~/.cpan/build/Data-FormValidator-3.14 : make
> install
> /usr/bin/perl Build install
> Warning: You do not have permissions to install into
> /usr/local/share/perl/5.8.\
> 0 at /usr/share/perl/5.8.0/ExtUtils/Install.pm line 114.
> mkdir /usr/local/share/perl/5.8.0/Data: Permission denied at
> /usr/share/perl/5.\
> 8.0/ExtUtils/Install.pm line 176
> make: *** [install] Error 255
> princepawn@perlmonk ~/.cpan/build/Data-FormValidator-3.14 : uname -a
> Linux perlmonk.org 2.4.18 #12 Fri Sep 13 17:49:41 EDT 2002 i686
> GNU/Linux
> princepawn@perlmonk ~/.cpan/build/Data-FormValidator-3.14 :
>
>
>
>
>
> -------------------------------------------------------
> This SF. Net email is sponsored by: GoToMyPC
> GoToMyPC is the fast, easy and secure way to access your computer from
> any Web browser or wireless device. Click here to Try it Free!
> https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/
> g22lp.tmpl
> _______________________________________________
> Module-build-general mailing list
> Mod...@li...
> https://lists.sourceforge.net/lists/listinfo/module-build-general
|