[MacPorts] #67830: perl5 @5.34 +perl5_36: cannot install perl modules

MacPorts noreply at macports.org
Wed Jul 26 20:00:04 UTC 2023


#67830: perl5 @5.34 +perl5_36: cannot install perl modules
-----------------------------+--------------------
 Reporter:  NorthboundTrain  |      Owner:  (none)
     Type:  defect           |     Status:  new
 Priority:  Normal           |  Milestone:
Component:  ports            |    Version:
 Keywords:                   |       Port:  perl5
-----------------------------+--------------------
 I don't understand why 5.036 is a variant instead of a real release, but
 it makes it very difficult to install Perl modules via MacPorts. For
 example, I had File::Copy::Recursive installed under 5.34.1 (p5-file-copy-
 recursive), but after "installing" 5.036 it no longer finds it. And re-
 installing it after activating 5.036 does not fix the issue.

 re: 5.036 -- I could not figure out how to get the 5.036 variant to
 install until I found a decade-old StackOverflow article that essentially
 had me do the following:

 {{{
 sudo /opt/local/bin/port deactivate perl5 && sudo /opt/local/bin/port
 install perl5 +perl5_36
 }}}

 After doing that, {{{perl -v}}} reports 5.36.0 -- maybe that's not the
 right way to get 5.036 installed/activated? Anyhow, I tried all of the
 following and none of it made a difference:


 {{{
 sudo /opt/local/bin/port selfupdate && sudo /opt/local/bin/port upgrade
 outdated
 sudo /opt/local/bin/port install p5-file-copy-recursive
 sudo /opt/local/bin/port install p5-file-copy-recursive +perl5_36
 }}}

 Here's some other info that might be helpful:


 {{{
 $ perl -MFile::Copy::Recursive -eexit
 Can't locate File/Copy/Recursive.pm in @INC (you may need to install the
 File::Copy::Recursive module) (@INC contains:
 /opt/local/lib/perl5/site_perl/5.34/darwin-thread-multi-2level
 /opt/local/lib/perl5/site_perl/5.34 /opt/local/lib/perl5/site_perl/5.36
 /darwin-thread-multi-2level /opt/local/lib/perl5/site_perl/5.36
 /opt/local/lib/perl5/vendor_perl/5.36/darwin-thread-multi-2level
 /opt/local/lib/perl5/vendor_perl/5.36 /opt/local/lib/perl5/5.36/darwin-
 thread-multi-2level /opt/local/lib/perl5/5.36).
 BEGIN failed--compilation aborted.

 $ pwd
 /opt/local/lib/perl5/vendor_perl

 $ find . -name Recursive.pm
 ./5.34/File/Copy/Recursive.pm

 $ sudo ln -s 5.34 5.36

 $ perl -MFile::Copy::Recursive -eexit
 HiRes.c: loadable library and perl binaries are mismatched (got first
 handshake key 0xfb80080, needed 0xfc00080)

 $ sudo rm 5.36

 $
 }}}

 Any help is greatly appreciated -- thanks!

-- 
Ticket URL: <https://trac.macports.org/ticket/67830>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list