There's always a way...
After much Googling and much frustration trying to get it to work, it did!
I am using ActiveState ActivePerl 5.8.8 Build 822 on my Windows XP systems. I read much about PAR & perlcc, etc. but nothing seemed to magically turn my paltry Perl scripts into mighty Windows Executable files. Finally I found the answer hidden away in a little URL tucked away on some message board.
Here's the short sweet version: You can add Perl module repositories with ActiveState's included Perl Package Manager. You add the repository and install PAR-Packer (not just any PAR-Packer, see below for the particulars).
- Open the Package Manager
- Click Edit Preferences (or the little gear icon on the left)
- Select the Repositories tab
- Enter a name in the Name field (I chose theoryx5 for obvious reasons following)
- Enter the following URL in the Location field:
- http://theoryx5.uwinnipeg.ca/ppms/
- http://theoryx5.uwinnipeg.ca/ppms/
- Click Add
- Click OK
- Click File --> Refresh All Data if the app doesn't do it automagically
- Click View --> All Packages
- In the Search field (you know, the field with the little magnifying glass in it) Enter Packer
- You will see a few listings (or maybe more then a few, depending). Two in particular you will find: PAR-Packer 0.976 & PAR-Packer-588 0.973. Select the first (the one without the -588 this is important!).
- Either right-click on it and choose Install... or click the little package icon that has the green + on it.
- Click the little play arrow icon or choose Action Install... at the top
- Once it's installed with all it's dependencies, close the Package Manager
- Add the following to your path (if Perl is found at C:\Perl): C:\Perl\site\bin;
- In Windows XP you can do this by right-clicking My Computer
- Click Properties
- Select the Advanced tab
- Click Environment Variables
- Scroll down in System variables & select Path
- Click Edit
- Add C:\Perl\site\bin; to your path
- Click OK & exit Evironmental variables, etc.
- You may need to log off and back on for the change to take effect
- In Windows XP you can do this by right-clicking My Computer
Well, it should anyway. Remember, use this at your own risk, your millage may vary, etc. etc.
It worked for me and I was very happy.
Note: You can review all of the available packages for the aforementioned repository at the same URL: http://theoryx5.uwinnipeg.ca/ppms/
No comments:
Post a Comment