Hi David,
I do not consider this a bug. The issue is that serial ports are
hardware devices and the configurations can vary widely. When the tests
were originally written(1999-2000), most systems had at least one and
assigned it as COM1 - hence that is used as the default. But I have a
netbook whose only serial port is a USB connection which is assigned to
COM3. To accommodate this sort of variation, Makefile.PL accepts an
optional parameter TESTPORT. From README.txt:
Run 'perl Makefile.PL' first with nothing connected to "COM1". You can
specify a diferent port to test with 'perl Makefile.PL TESTPORT=PORT'.
I recommend you use a "traditional" hard-wired port for testing if
available. Several tests are skipped for USB and other specialized
ports.
For those with make (e.g. Strawberry Perl), the normal mantra applies:
perl Makefile.PL TESTPORT=port
make
make test
make install
Unfortunately, the fully automatic install via CPAN.pm does not (or did
not the last time I looked) provide for optional parameters like this
one (and auto-detecting what those settings should be). But I often run
with Strawberry and the above instructions work fine. I just install
from a command line.
-bill
On 10/29/2013 04:42 AM, David Tulloh via RT wrote:
Show quoted text> Tue Oct 29 04:42:18 2013: Request 89837 was acted upon.
> Transaction: Ticket created by david@tulloh.id.au
> Queue: Win32-SerialPort
> Subject: Install fails when Com1 is not present
> Broken in: (no value)
> Severity: (no value)
> Owner: Nobody
> Requestors: david@tulloh.id.au
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=89837 >
>
>
> Attempting to install Win32::SerialPort or Win32API::CommPort on a fresh
> Strawberry Perl install using > cpan install Win32::SerialPort
>
> My system did not have a Com1
>
> The install process fails with the message :
> "Device COM1 does not appear to exist. Testing impossible"
>
> Attempting to install with the force flag (-f) or disabling testing (-T)
> also does not work.
>
> Remapping another Com port to have the address Com1 allowed me to force the
> install.
>