Perl » History » Version 14
« Previous -
Version 14/16
(diff) -
Next » -
Current version
Greg Mathis, 03/06/2020 07:31 AM
Perl¶
Last updated by Greg Mathis. Updated over 4 years ago
Go to ActiveState.com to download 32 bit community edition of Perl for Windows
MUST USE 32 BIT VERSION!!!!
See below for notes on problems with 64 bit version.
Installed ActivePerl-5.22.1.2201-MSWin32-x86-64int-299574.msi
Use all default options
Some additional libraries (modules) are needed.
After Perl installed, run Perl Package Manager (PPM) in a DOS command shell, run “ppm”
select View All Packages
Highlight Win32-SerialPort version 0.22 (to use serial port features in serialPortLib.pm)
Go to Action menu, pull down to select it
Highlight IO-Tee (to use the script logging features in commonLib.pm)
Go to Action menu, pull down to select it
Highlight IO-Callback (to use the script logging features in commonLib.pm)
Go to Action menu, pull down to select it
Highlight Tk (for TkLib.pm pop up messages)
Go to Action menu, pull down to select it
Highlight Email-MIME (to allow script to send emails)
Go to Action menu, pull down to select it
Highlight Email-Sender (to allow script to send emails)
Go to Action menu, pull down to select it
Highlight Authen-SASL (to allow script to send emails)
Go to Action menu, pull down to select it
Go to File and select Run Marked Actions to install the 5 packages
Exit PPM
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:
Problems with 64 bit Perl:
DO NOT INSTALL 64 bit version of Active Perl such as:
ActivePerl-5.22.3.2204-MSWin32-x64-401627.exe
When you run PPM, Win32-SerialPort is no longer an option.
I did go to http://search.cpan.org/~bbirth/Win32-SerialPort-0.22/lib/Win32/SerialPort.pm
On right side of page, download Win32-SerialPort-0.22.tar.gz
Go to http://www.7-zip.org/ and download 7-Zip to gunzip and untar files
Copy Win32-SerialPort-0.22\lib\Win32 to C:\Perl64\site\lib
Copy Win32-SerialPort-0.22\lib\Win32API to C:\Perl64\site\lib
But this didn’t work, neither did trying to use the Makefile and make_install, which appeared to install OK,
but when running comPortTest.pl, it didn’t work (but didn’t show any errors either …)
Bottom line: No reason not to use 32 bit version of Perl, so keep using it.