Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by bliako (Monsignor)
on Mar 11, 2021 at 12:48 UTC ( #11129449=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11129449]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2021-12-01 01:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?