http://qs321.pair.com?node_id=11129449


in reply to Re^4: Cannot install Config::Augeas on Mac, Big Sur
in thread Cannot install Config::Augeas on Mac, Big Sur

it looks like https://metacpan.org/source/RAPHINK/Config-Augeas-1.000/lib%2FConfig%2FAugeas.pm#L142 calls https://metacpan.org/source/RAPHINK/Config-Augeas-1.000/lib%2FConfig%2FAugeas.xs#L86. It looks like it fails to init but none-the-less that undef return value is stored in the $self, and when get() is called it is on an undef ref. But I have no idea what's going on further down inside XS. If you manage to insert here https://metacpan.org/source/RAPHINK/Config-Augeas-1.000/lib%2FConfig%2FAugeas.pm#L141 a debug message showing $root and $loadpath you may be able to get a hint at least where does it look for libraries. That means something like: 1) run the cpanm command which will fail, 2) chdir to the cpanm work dir mentioned in the error message, 3) edit Config::Augeaus within this path with diag messages, 4) Somehow try to initiate the build process again MANUALLY (not via cpanm), usually with a make, or perl Makefile.PL or ./Build but beware what I mentioned earlier on how to force it to create a Build file.

FWIW I managed to macport install augeas and then cpanm Config::Augeas with no problems, on OSX 10.13

  • Comment on Re^5: Cannot install Config::Augeas on Mac, Big Sur

Replies are listed 'Best First'.
Re^6: Cannot install Config::Augeas on Mac, Big Sur
by nysus (Parson) on Mar 11, 2021 at 14:08 UTC

    I dusted off and fired up the older mac with Catalina 10.15.6 on it. Installed with no issues at all. What are my options at this point? I'm sure others must be having issues with other perl modules on Big Sur. I'll break out the google machine.

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
    $nysus = $PM . ' ' . $MCF;
    Click here if you love Perl Monks

      Ok, but that can mean also that the perl in the older machine is not as broken as the big slur *may* be. Your problem in its latest incarnation sounds like perl can not load the compiled (object,binary) XS file. May be it can't be found, maybe it's not compatible, maybe it's loading another version in different path. I guess you need to clarify all these. Was the $loadpath value what you expected?

Re^6: Cannot install Config::Augeas on Mac, Big Sur
by nysus (Parson) on Mar 11, 2021 at 13:48 UTC

    I got the loadpath and root values printed but they didn't produce anything revealing. I tried installing with macports but the module's tests still fail. This is likely something to do with Big Sur, I'm guessing.

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
    $nysus = $PM . ' ' . $MCF;
    Click here if you love Perl Monks