Project

General

Profile

Perl » History » Version 15

Greg Mathis, 04/11/2020 07:24 AM

1 1 Greg Mathis
h1. Perl
2 1 Greg Mathis
3 12 Greg Mathis
Last updated by {{lastupdated_by}}.
4 12 Greg Mathis
{{lastupdated_at}} 
5 12 Greg Mathis
6 11 Greg Mathis
7 15 Greg Mathis
In years past we could go to ActiveState.com to download 32 bit community edition of Perl for Windows.
8 15 Greg Mathis
That appears to be over now. From their website:
9 15 Greg Mathis
10 15 Greg Mathis
"If you need 32-bit or other older/legacy versions, they are available through our new ActiveState Platform by subscribing to at least Team Tier. See pricing here."
11 15 Greg Mathis
12 15 Greg Mathis
I have been saying for a few years now you must use the 32 bit version of Perl. But that was only because the serial port package was only supported for 32 bit Perl. As it turns out for both EMIRS and LTES, we never had to control a serial port in a shell application, so we could probably use the 64 bit version.
13 15 Greg Mathis
14 15 Greg Mathis
Anyhow, in Files section below, you can download the 32 bit version of Perl I did use, 5.22.1 for EMIRS and LTES.
15 15 Greg Mathis
16 1 Greg Mathis
MUST USE 32 BIT VERSION!!!!
17 1 Greg Mathis
See below for notes on problems with 64 bit version.
18 1 Greg Mathis
Installed ActivePerl-5.22.1.2201-MSWin32-x86-64int-299574.msi
19 1 Greg Mathis
Use all default options
20 1 Greg Mathis
21 1 Greg Mathis
Some additional libraries (modules) are needed.
22 1 Greg Mathis
After Perl installed, run Perl Package Manager (PPM) in a DOS command shell, run “ppm”
23 1 Greg Mathis
select View All Packages
24 1 Greg Mathis
25 1 Greg Mathis
Highlight Win32-SerialPort version 0.22 (to use serial port features in serialPortLib.pm)
26 1 Greg Mathis
Go to Action menu, pull down to select it
27 1 Greg Mathis
28 1 Greg Mathis
Highlight IO-Tee (to use the script logging features in commonLib.pm)
29 1 Greg Mathis
Go to Action menu, pull down to select it
30 1 Greg Mathis
31 14 Greg Mathis
Highlight IO-Callback (to use the script logging features in commonLib.pm)
32 14 Greg Mathis
Go to Action menu, pull down to select it
33 14 Greg Mathis
34 13 Greg Mathis
Highlight Tk (for TkLib.pm pop up messages)
35 13 Greg Mathis
Go to Action menu, pull down to select it
36 13 Greg Mathis
37 1 Greg Mathis
Highlight Email-MIME (to allow script to send emails)
38 1 Greg Mathis
Go to Action menu, pull down to select it
39 1 Greg Mathis
40 1 Greg Mathis
Highlight Email-Sender (to allow script to send emails)
41 1 Greg Mathis
Go to Action menu, pull down to select it
42 1 Greg Mathis
43 10 Anonymous
Highlight Authen-SASL (to allow script to send emails)
44 1 Greg Mathis
Go to Action menu, pull down to select it
45 1 Greg Mathis
46 1 Greg Mathis
Go to File and select Run Marked Actions to install the 5 packages
47 1 Greg Mathis
Exit PPM
48 1 Greg Mathis
49 5 Greg Mathis
Created emirs.egse@gmail.com account with password "Emirs2468" to use to send emails from Perl scripts (using our emailLib.pm) Note the gmail security settings that have to be changed, as shown below:
50 6 Greg Mathis
51 4 Greg Mathis
!{width:1000px}appPermissions.png!
52 7 Greg Mathis
53 7 Greg Mathis
54 8 Greg Mathis
*Problems with 64 bit Perl:*
55 7 Greg Mathis
DO NOT INSTALL 64 bit version of Active Perl such as:
56 7 Greg Mathis
ActivePerl-5.22.3.2204-MSWin32-x64-401627.exe
57 7 Greg Mathis
When you run PPM, Win32-SerialPort is no longer an option.
58 7 Greg Mathis
I did go to http://search.cpan.org/~bbirth/Win32-SerialPort-0.22/lib/Win32/SerialPort.pm
59 7 Greg Mathis
On right side of page, download Win32-SerialPort-0.22.tar.gz
60 7 Greg Mathis
Go to http://www.7-zip.org/ and download 7-Zip to gunzip and untar files
61 7 Greg Mathis
Copy Win32-SerialPort-0.22\lib\Win32 to C:\Perl64\site\lib
62 7 Greg Mathis
Copy Win32-SerialPort-0.22\lib\Win32API to C:\Perl64\site\lib
63 7 Greg Mathis
But this didn’t work, neither did trying to use the Makefile and make_install, which appeared to install OK,
64 7 Greg Mathis
but when running comPortTest.pl, it didn’t work (but didn’t show any errors either …)
65 9 Greg Mathis
Bottom line: No reason not to use 32 bit version of Perl, so keep using it.
Add picture from clipboard (Maximum size: 97.7 MB)