In the original post, you can see that I call the correct cpan using the perlbrew cpan full path name, which was built using the perlbrew perl, so I expected that all to work correctly.

However, running which perl; which cpan from my command line shows me the system commands being found first. I will try fixing this so that perlbrew commands are in my environment first and see if that helps.

Also, checking where the modules were installed shows the following:

/opt/homebrew/Cellar/perl/5.36.0/bin/perl -e 'print "@INC"' /opt/homebrew/opt/perl/lib/perl5/site_perl/5.36/darwin-thread-multi-2l +evel /opt/homebrew/opt/perl/lib/perl5/site_perl/5.36 /opt/homebrew/op +t/perl/lib/perl5/5.36/darwin-thread-multi-2level /opt/homebrew/opt/pe +rl/lib/perl5/5.36 /opt/homebrew/lib/perl5/site_perl/5.36/darwin-threa +d-multi-2level /opt/homebrew/lib/perl5/site_perl/5.36

There are no environment variables in my shell for LD_LIBRARY_PATH or DYLD_LIBRARY_PATH but maybe cpan adds them somehow?

I will try using strace and see if the output indicates if the old system tcl-tk libraries are being used and post the results here.


In reply to Re^2: Problem Installing Perl-Tk on macOS Monterey (12.6) with Apple M1 chip by cmv
in thread Problem Installing Perl-Tk on macOS Monterey (12.6) with Apple M1 chip by cmv

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.