Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

PAR-Packer/PP -> tkx

by DreamT (Pilgrim)
on Oct 07, 2009 at 17:05 UTC ( #799762=perlquestion: print w/replies, xml ) Need Help??
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://799762]
Approved by SilasTheMonk
help
Chatterbox?
[stevieb]: I really dislike how perlbrew doesn't list your version of perl if a newer minor version bump has happened. eg: I use 5.24.1, but 5.24.2 is available, hiding my 5.24.1. I may look at this, as I made it display correctly in berrybrew in cases like this
[stevieb]: choroba just gleaned your post about Module::Starter. I use it too, pretty much for every dist I write
[LanX]: I remeber M::S (it was dialog driven?) to be buggy
[stevieb]: As far as Dist::Zilla goes, I don't like installing that other than on systems my test platorm runs on. I find it too heavy. I prefer being able to glean a Makefile.PL
[LanX]: what's frustrating me is that a distribution has lots of dupplicated info
[stevieb]: LanX I don't know if it's dialog driven; I just use it in the simplest of terms (just run module-starter at the CLI, and the very last couple of lines are how I use it.

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2017-08-18 20:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (310 votes). Check out past polls.

    Notices?