[bug-notifications] [perl 0002892]: Solaris 10 no global zone CPAN Module installation
Mantis Bug Tracker
noreply at opencsw.org
Sat Feb 21 23:31:38 CET 2009
The following issue has been ASSIGNED.
======================================================================
http://www.opencsw.org/mantis/view.php?id=2892
======================================================================
Reported By: merlin
Assigned To: bonivart
======================================================================
Project: perl
Issue ID: 2892
Category: other
Reproducibility: always
Severity: feature
Priority: normal
Status: assigned
======================================================================
Date Submitted: 2008-05-18 07:58 CEST
Last Modified: 2009-02-21 23:31 CET
======================================================================
Summary: Solaris 10 no global zone CPAN Module installation
Description:
I have, on my Solaris 10 x86, a no global zone (cswzone) and use CPAN (or
manuell install) to add additional Perl Modules. CPAN Modules will use
/usr/bin vor binary and scrits. But this is in the no global zone not
writable.
This is only in the no global zone a problem.
In the global Zone root have write access to /usr/bin, but is not the best
way.
- CSW Package (pm_*) go to INSTALLDIRS=vendor
correct to /opt/csw/lib/perl/csw /opt/csw/share/perl/csw and /opt/csw/bin
- CPAN use default INSTALLDIRS=site
this go to /opt/csw/lib/perl/site_perl /opt/csw/share/perl/site_perl and
/usr/bin
- If module is a Perl core module CPAN use also INSTALLDIRS=core
this go to /opt/csw/lib/perl/5.8.8 /opt/csw/share/perl/5.8.8 and
/opt/csw/bin
perl -V:install.*
installarchlib=\'/opt/csw/lib/perl/5.8.8\';
installbin=\'/opt/csw/bin\';
installhtml1dir=\'\';
installhtml3dir=\'\';
installman1dir=\'/opt/csw/share/man/man1\';
installman3dir=\'/opt/csw/share/man/man3\';
installprefix=\'/opt/csw\';
installprefixexp=\'/opt/csw\';
installprivlib=\'/opt/csw/share/perl/5.8.8\';
installscript=\'/opt/csw/bin\';
installsitearch=\'/opt/csw/lib/perl/site_perl\';
installsitebin=\'/usr/bin\';
installsitehtml1dir=\'\';
installsitehtml3dir=\'\';
installsitelib=\'/opt/csw/share/perl/site_perl\';
installsiteman1dir=\'/opt/csw/share/man/man1\';
installsiteman3dir=\'/opt/csw/share/man/man3\';
installsitescript=\'/usr/bin\';
installstyle=\'lib/perl5\';
installusrbinperl=\'undef\';
installvendorarch=\'/opt/csw/lib/perl/csw\';
installvendorbin=\'/opt/csw/bin\';
installvendorhtml1dir=\'\';
installvendorhtml3dir=\'\';
installvendorlib=\'/opt/csw/share/perl/csw\';
installvendorman1dir=\'/opt/csw/share/man/man1\';
installvendorman3dir=\'/opt/csw/share/man/man3\';
installvendorscript=\'/opt/csw/bin\';
For example:
-----------
cpan> install Bundle::CPAN
- Module:Build
All tests successful.
Files=26, Tests=772, 89 wallclock secs ( 0.77 usr 0.35 sys + 42.25 cusr
28.97 csys = 72.34 CPU)
Result: PASS
/usr/ccs/bin/make test -- OK
Running make install
/opt/csw/bin/perl Build --makefile_env_macros 1 install
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Cannot copy \'blib/script/config_data\' to
\'/usr/bin/config_data\': Read-only file system
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
at lib/Module/Build/Base.pm line 2788
Installing /opt/csw/share/man/man1/config_data.1
Installing /opt/csw/share/perl/site_perl/Module/Build.pm
Installing /opt/csw/share/perl/site_perl/Module/Build/Config.pm
Installing /opt/csw/share/perl/site_perl/Module/Build/Notes.pm
Installing /opt/csw/share/perl/site_perl/Module/Build/YAML.pm
Installing /opt/csw/share/perl/site_perl/Module/Build/ModuleInfo.pm
Installing /opt/csw/share/perl/site_perl/Module/Build/Cookbook.pm
Installing /opt/csw/share/perl/site_perl/Module/Build/PodParser.pm
Installing /opt/csw/share/perl/site_perl/Module/Build/API.pod
Installing /opt/csw/share/perl/site_perl/Module/Build/Base.pm
Installing /opt/csw/share/perl/site_perl/Module/Build/PPMMaker.pm
Installing /opt/csw/share/perl/site_perl/Module/Build/Version.pm
Installing /opt/csw/share/perl/site_perl/Module/Build/Compat.pm
Installing /opt/csw/share/perl/site_perl/Module/Build/Authoring.pod
Installing /opt/csw/share/perl/site_perl/Module/Build/ConfigData.pm
Installing /opt/csw/share/perl/site_perl/Module/Build/Platform/VMS.pm
Installing /opt/csw/share/perl/site_perl/Module/Build/Platform/Windows.pm
Installing /opt/csw/share/perl/site_perl/Module/Build/Platform/aix.pm
Installing /opt/csw/share/perl/site_perl/Module/Build/Platform/Unix.pm
Installing /opt/csw/share/perl/site_perl/Module/Build/Platform/darwin.pm
Installing /opt/csw/share/perl/site_perl/Module/Build/Platform/Default.pm
Installing /opt/csw/share/perl/site_perl/Module/Build/Platform/Amiga.pm
Installing /opt/csw/share/perl/site_perl/Module/Build/Platform/EBCDIC.pm
Installing /opt/csw/share/perl/site_perl/Module/Build/Platform/RiscOS.pm
Installing /opt/csw/share/perl/site_perl/Module/Build/Platform/VOS.pm
Installing /opt/csw/share/perl/site_perl/Module/Build/Platform/MacOS.pm
Installing /opt/csw/share/perl/site_perl/Module/Build/Platform/os2.pm
Installing /opt/csw/share/perl/site_perl/Module/Build/Platform/cygwin.pm
Installing /opt/csw/share/perl/site_perl/Module/Build/Platform/MPEiX.pm
Installing /opt/csw/share/man/man3/Module::Build::Platform::Default.3perl
Installing /opt/csw/share/man/man3/Module::Build::Platform::Windows.3perl
Installing /opt/csw/share/man/man3/Module::Build::Notes.3perl
Installing /opt/csw/share/man/man3/Module::Build::Platform::Amiga.3perl
Installing /opt/csw/share/man/man3/Module::Build::Platform::os2.3perl
Installing /opt/csw/share/man/man3/Module::Build::ConfigData.3perl
Installing /opt/csw/share/man/man3/Module::Build::PPMMaker.3perl
Installing /opt/csw/share/man/man3/Module::Build::Platform::MacOS.3perl
Installing /opt/csw/share/man/man3/Module::Build::Platform::RiscOS.3perl
Installing /opt/csw/share/man/man3/Module::Build::YAML.3perl
Installing /opt/csw/share/man/man3/Module::Build::Base.3perl
Installing /opt/csw/share/man/man3/Module::Build::Platform::MPEiX.3perl
Installing /opt/csw/share/man/man3/Module::Build::Compat.3perl
Installing /opt/csw/share/man/man3/Module::Build::Platform::Unix.3perl
Installing /opt/csw/share/man/man3/Module::Build::Platform::aix.3perl
Installing /opt/csw/share/man/man3/Module::Build::Platform::darwin.3perl
Installing /opt/csw/share/man/man3/Module::Build::Cookbook.3perl
Installing /opt/csw/share/man/man3/Module::Build::ModuleInfo.3perl
Installing /opt/csw/share/man/man3/Module::Build::Platform::cygwin.3perl
Installing /opt/csw/share/man/man3/Module::Build.3perl
Installing /opt/csw/share/man/man3/Module::Build::Authoring.3perl
Installing /opt/csw/share/man/man3/Module::Build::Platform::EBCDIC.3perl
Installing /opt/csw/share/man/man3/Module::Build::Platform::VOS.3perl
Installing /opt/csw/share/man/man3/Module::Build::API.3perl
Installing /opt/csw/share/man/man3/Module::Build::Platform::VMS.3perl
Installing /usr/bin/config_data
*** Error code 30
make: Fatal error: Command failed for target `install\'
/usr/ccs/bin/make install -- NOT OK
---
- Digest::SHA
All tests successful.
Files=21, Tests=120, 3 wallclock secs ( 0.24 usr 0.20 sys + 1.06 cusr
0.79 csys = 2.29 CPU)
Result: PASS
/usr/ccs/bin/make test -- OK
Running make install
Files found in blib/arch: installing files in blib/lib into architecture
dependent library tree
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Cannot copy \'blib/script/shasum\' to \'/usr/bin/shasum\':
Read-only file system
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
at -e line 1
Installing /opt/csw/lib/perl/site_perl/auto/Digest/SHA/SHA.bs
Installing /opt/csw/lib/perl/site_perl/auto/Digest/SHA/SHA.so
Installing /opt/csw/lib/perl/site_perl/Digest/SHA.pm
Installing /opt/csw/share/man/man1/shasum.1
Installing /opt/csw/share/man/man3/Digest::SHA.3perl
Installing /usr/bin/shasum
*** Error code 30
The following command caused the error:
/opt/csw/bin/perl -MExtUtils::Install -e \'install({@ARGV},
\'\\\'\'0\'\\\'\', 0, \'\\\'\'0\'\\\'\');\' -- \\
read /opt/csw/lib/perl/site_perl/auto/Digest/SHA/.packlist \\
write /opt/csw/lib/perl/site_perl/auto/Digest/SHA/.packlist \\
blib/lib /opt/csw/share/perl/site_perl \\
blib/arch /opt/csw/lib/perl/site_perl \\
blib/bin /usr/bin \\
blib/script /usr/bin \\
blib/man1 /opt/csw/share/man/man1 \\
blib/man3 /opt/csw/share/man/man3
make: Fatal error: Command failed for target `pure_site_install\'
/usr/ccs/bin/make install -- NOT OK
---
I work on a workaround
- Installing_in_the_same_location_as_ExtUtils::MakeMaker
http://search.cpan.org/~kwilliams/Module-Build-0.2808/lib/Module/Build/Cookbook.pm#Installing_in_the_same_location_as_ExtUtils::MakeMaker
- For modules that use Module::Build
perl Build.PL --installdirs=site --install_path bin=/opt/csw/bin
--install_path script=/opt/csw/bin
./Build.PL
./Build.PL install
---
- For modules that use ExtUtils::MakeMaker
perl Makefile.PL INSTALLDIRS=site INSTALLSITESBIN=/opt/csw/bin
INSTALLSITESCRIPT=/opt/csw/bin
make
make test
make install
---
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2009-02-21 23:31 bonivart Status new => assigned
2009-02-21 23:31 bonivart Assigned To => bonivart
======================================================================
More information about the bug-notifications
mailing list