in reply to OS X ElCaptain Activeperl Tk

Can you show us the actual 4 lines of code that fails? Make the failure code as simple as possible.
#!usr/bin/perl use strict; use warnings; use Tk;
should work because Tk comes with AS Perl 5.22. update: what is dlopen?

Replies are listed 'Best First'.
Re^2: OS X ElCaptain Activeperl Tk
by Anonymous Monk on Jun 15, 2016 at 18:22 UTC

    I get the same Error with your code (good point to keep it so simple). My code was:

    #!/usr/bin/perl -w # Display Hello World program use Tk; use strict; my $mw = MainWindow->new; $mw->geometry("200x100"); $mw->title("Hello World!!!"); $mw->Label(-text => 'Hello World')->pack(); $mw->Button(-text => "Close", -command =>sub{exit})->pack(); MainLoop;

    Tk was installed with ppm so I really thought I was on the safe side... but no. Do I have to install codeX to make it run? I do not think is the case. I also tried a mini script with Tkx (which comes with Activestate already installed) and it works fine. What can I try?

      I am running a "clean install" of Active State 5.20 for Windows on a laptop - no additional ppm installs. The result is that your script works just fine - no problem. I do not have a Mac, but I've given Tk code before to folks who do and it works fine (although that was before 5.22).

      I confess to being flummoxed at this point.

      Update: Oh, since latest Mac OS'es are linux like, there may be a path problem between this new latest AS installation and the system's idea of Perl? What does Perl -V show?

        On Windows I have no problem at all with the combo ActiveState a Tk. perl -v confirms I am using the right perl installation (ActivePerl) and not the default one (coming with the OS X). In this case I have to say, I have less problems on Windows

        Just out of curiosity, as I am working on a Mac to port a Windows Perl/Tk software to OS X. The code written with Perl/Tk on a Windows PC was running fine on a Mac, have I understood you correctly? That would help me to keep on trying... as I am about to give up!

Re^2: OS X ElCaptain Activeperl Tk
by Anonymous Monk on Jun 15, 2016 at 18:44 UTC

    dopen: no idea at all!