I have a fresh installation of ActivePerl 5.22.1 and Tk 804.033 on OS X ElCapitan. Running a simple Tk testing code I get the following error:

Can't load '/Users/xxx/Library/ActivePerl-5.22/lib/auto/Tk/Tk.bundle' +for module Tk: dlopen(/Users/xxx/Library/ActivePerl-5.22/lib/auto/Tk/ +Tk.bundle, 1): Library not loaded: /opt/X11/lib/libX11.6.dylib Referenced from: /Users/xxx/Library/ActivePerl-5.22/lib/auto/Tk/Tk.b +undle Reason: image not found at /usr/local/ActivePerl-5.22/lib/DynaLoader +.pm line 198. at halloworld.pl line 4. Compilation failed in require at halloworld.pl line 4.

PATH is set correctly. I already tried to reinstall Tk with ppm. The module Tk.bundle seems to be in place. Line 4 of the script is use Tk . I am very new to OS X. I used for years Tk on Windows/Linux and now I am trying to run it on Mac with no success. Any help? The Activestate Forum did not answered


In reply to OS X ElCaptain Activeperl Tk by Anonymous Monk

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.