Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Build.PL of Astro::Catalog module has near the end ...
etc_files => { 'etc/skycat.cfg' => 'etc/skycat.cfg', 'etc/sss.cfg' => 'etc/sss.cfg', }, install_path => { 'etc' => File::Spec->catdir($Config{installprefix}, 'etc'), },
That $Config{installprefix} is /usr here, which a non-superuser cannot modify. As I am trying to build as non-superuser, that results in ...
... All tests successful. Files=27, Tests=3453, 15 wallclock secs ( 0.19 usr 0.05 sys + 11.09 c +usr 1.56 csys = 12.89 CPU) Result: PASS GSB/Astro-Catalog-4.37.tar.gz ./Build test -- OK Running Build install for GSB/Astro-Catalog-4.37.tar.gz Building Astro-Catalog !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! ERROR: Can't create '/usr/etc' mkdir /usr/etc: Permission denied at /usr/share/perl5/vendor_perl/ExtU +tils/Install.pm line 489. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! at /some/dir/perl/lib/perl5/Module/Build/Base.pm line 3576. GSB/Astro-Catalog-4.37.tar.gz ./Build install -- NOT OK Stopping: 'install' failed for 'Astro::Catalog'.
Setting {install_base,prefix,installprefix} had not help yet. What could I be missing?
# Environment. # Setting *prefix here only because of the "$Config{installprefix}". PERL_MB_OPT=--install_base '/some/dir/perl' --config installprefix='/s +ome/dir/perl' --config prefix='/some/dir/perl' PERL_MM_OPT=INSTALL_BASE='/some/dir/perl' PREFIX='/some/dir/perl' # In the .cpan/build directory. grep -C 1 -r 'install|prefix' _build | grep -v orig _build/build_params- { _build/build_params: 'prefix' => '/some/dir/perl' _build/build_params- }, -- _build/build_params- 'include_dirs' => [], _build/build_params: 'install_base' => '/some/dir/perl', _build/build_params: 'install_base_relpaths' => {}, ## "/usr" did not change. _build/build_params: 'install_path' => { _build/build_params- 'etc' => '/usr/etc' _build/build_params- }, _build/build_params: 'install_sets' => {}, _build/build_params: 'installdirs' => 'site', _build/build_params- 'libdoc_dirs' => [ -- _build/build_params- 'perl' => '/usr/bin/perl', -- _build/build_params- 'pollute' => undef, _build/build_params: 'prefix' => undef, _build/build_params: 'prefix_relpaths' => {}, _build/build_params- 'prereq_action_types' => [ -- _build/runtime_params- 'config' => { _build/runtime_params: 'prefix' => '/some/dir/perl +' _build/runtime_params- }, _build/runtime_params: 'install_base' => '/some/dir/perl', _build/runtime_params- 'verbose' => '1'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Module::Build- Overriding default $Config{installprefix}
by karlgoethebier (Abbot) on Jul 29, 2023 at 16:53 UTC | |
by Anonymous Monk on Aug 01, 2023 at 06:56 UTC | |
by karlgoethebier (Abbot) on Aug 01, 2023 at 11:31 UTC | |
|
Re: Module::Build- Overriding default $Config{installprefix} (cpan Distroprefs )
by Anonymous Monk on Jul 29, 2023 at 10:45 UTC | |
by Anonymous Monk on Aug 01, 2023 at 07:16 UTC | |
by Anonymous Monk on Aug 01, 2023 at 07:54 UTC | |
by eyepopslikeamosquito (Archbishop) on Aug 01, 2023 at 08:48 UTC |