Project

General

Profile

Perl » History » Version 13

Greg Mathis, 06/02/2018 02:02 PM

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 1 Greg Mathis
Go to ActiveState.com to download 32 bit community edition of Perl for Windows
8 1 Greg Mathis
MUST USE 32 BIT VERSION!!!!
9 1 Greg Mathis
See below for notes on problems with 64 bit version.
10 1 Greg Mathis
Installed ActivePerl-5.22.1.2201-MSWin32-x86-64int-299574.msi
11 1 Greg Mathis
Use all default options
12 1 Greg Mathis
13 1 Greg Mathis
Some additional libraries (modules) are needed.
14 1 Greg Mathis
After Perl installed, run Perl Package Manager (PPM) in a DOS command shell, run “ppm”
15 1 Greg Mathis
select View All Packages
16 1 Greg Mathis
17 1 Greg Mathis
Highlight Win32-SerialPort version 0.22 (to use serial port features in serialPortLib.pm)
18 1 Greg Mathis
Go to Action menu, pull down to select it
19 1 Greg Mathis
20 1 Greg Mathis
Highlight IO-Tee (to use the script logging features in commonLib.pm)
21 1 Greg Mathis
Go to Action menu, pull down to select it
22 1 Greg Mathis
23 13 Greg Mathis
Highlight Tk (for TkLib.pm pop up messages)
24 13 Greg Mathis
Go to Action menu, pull down to select it
25 13 Greg Mathis
26 1 Greg Mathis
Highlight Email-MIME (to allow script to send emails)
27 1 Greg Mathis
Go to Action menu, pull down to select it
28 1 Greg Mathis
29 1 Greg Mathis
Highlight Email-Sender (to allow script to send emails)
30 1 Greg Mathis
Go to Action menu, pull down to select it
31 1 Greg Mathis
32 10 Anonymous
Highlight Authen-SASL (to allow script to send emails)
33 1 Greg Mathis
Go to Action menu, pull down to select it
34 1 Greg Mathis
35 1 Greg Mathis
Go to File and select Run Marked Actions to install the 5 packages
36 1 Greg Mathis
Exit PPM
37 1 Greg Mathis
38 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:
39 6 Greg Mathis
40 4 Greg Mathis
!{width:1000px}appPermissions.png!
41 7 Greg Mathis
42 7 Greg Mathis
43 8 Greg Mathis
*Problems with 64 bit Perl:*
44 7 Greg Mathis
DO NOT INSTALL 64 bit version of Active Perl such as:
45 7 Greg Mathis
ActivePerl-5.22.3.2204-MSWin32-x64-401627.exe
46 7 Greg Mathis
When you run PPM, Win32-SerialPort is no longer an option.
47 7 Greg Mathis
I did go to http://search.cpan.org/~bbirth/Win32-SerialPort-0.22/lib/Win32/SerialPort.pm
48 7 Greg Mathis
On right side of page, download Win32-SerialPort-0.22.tar.gz
49 7 Greg Mathis
Go to http://www.7-zip.org/ and download 7-Zip to gunzip and untar files
50 7 Greg Mathis
Copy Win32-SerialPort-0.22\lib\Win32 to C:\Perl64\site\lib
51 7 Greg Mathis
Copy Win32-SerialPort-0.22\lib\Win32API to C:\Perl64\site\lib
52 7 Greg Mathis
But this didn’t work, neither did trying to use the Makefile and make_install, which appeared to install OK,
53 7 Greg Mathis
but when running comPortTest.pl, it didn’t work (but didn’t show any errors either …)
54 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)