http://www.perlmonks.org?node_id=799762

DreamT has asked for the wisdom of the Perl Monks concerning the following question:

Hi! I've managed to create a GUI application with tkx that I now want to create an exe from. So, I installed PAR-Packer-0.991, followed by running 'pp htaccess_grafisk.pl'. It ran without error messages, but when I tried to run my new a.exe, I cot the following error message:
Could not access registry "HKLM\Software\ActiveState\ActiveTcl" Could not access registry "HKCU\Software\ActiveState\ActiveTcl" Failed to load Tcl dll! at C:/Perl/lib/DynaLoader.pm line 225. Unable to initialize Tcl at C:/Perl/lib/DynaLoader.pm line 225. Compilation failed in require at Tkx.pm line 206. BEGIN failed--compilation aborted at Tkx.pm line 206. Compilation failed in require at script/htaccess_grafisk.pl line 8. BEGIN failed--compilation aborted at script/htaccess_grafisk.pl line 8 +.
I've been searching for a solution based on the error output above, but I haven't found a good solution. Any ideas?

Replies are listed 'Best First'.
Re: PAR-Packer/PP -> tkx
by Anonymous Monk on Oct 08, 2009 at 00:56 UTC
    I've been searching for a solution based on the error output above, but I haven't found a good solution. Any ideas?

    Failed to load Tcl dll means you need to pack/add Tcl dll

      I used your answer to Google for a new answer and found this:
      http://stackoverflow.com/questions/1285087/trying-to-create-a-standalone-app-from-a-perl-script-that-uses-tkx-tcl-tk
      Worked like a charm:-) Thank you!
Re: PAR-Packer/PP -> tkx
by SilasTheMonk (Chaplain) on Oct 07, 2009 at 18:52 UTC
    I have two suggestions for other places you can look. Firstly try looking on the ActiveState website. This is clearly an active state version of perl and they are much more Windows oriented. Secondly I would try rereading all the documentation relating to PAR. I found quite a lot, tutorials, FAQs etc on CPAN. I scanned it quickly for information about registry but found nothing, but you might find links to other resources. There is also the possibility that someone who actually knows this module will read your post.