1 Replies - 5796 Views - Last Post: 08 March 2014 - 10:35 AM

#1 toasterburn  Icon User is offline

  • New D.I.C Head

Reputation: 4
  • View blog
  • Posts: 45
  • Joined: 08-March 10

Trouble installing Perl Module

Posted 08 March 2014 - 09:27 AM

Tried using cpan to install the module Device::SerialPort and it failed to install.

I'll post the log file below. This is a windows 7 computer running 32bit Perl 5. Any help is appreciated.

---------

cpanm (App::cpanminus) 1.7001 on perl 5.016003 built for
MSWin32-x86-multi-thread Work directory is
C:\Users\PHOTON~1/.cpanm/work/1394295189.4528 You have make
C:\Perl\site\bin\dmake.exe You have LWP 6.04 Falling back to
Archive::Tar 1.90 Searching Device::SerialPort on cpanmetadb ...
--> Working on Device::SerialPort Fetching
http://www.cpan.org/...ort-1.04.tar.gz
-> OK Unpacking Device-SerialPort-1.04.tar.gz Entering Device-SerialPort-1.04 Checking
configure dependencies from META.yml
Configuring Device-SerialPort-1.04 Running Makefile.PL Set up gcc
environment - 3.4.5 (mingw-vista special r3) To enable serial port
tests, use: perl Makefile.PL TESTPORT= where is a
specific port or 'auto' to autodetect. Running ./configure ... '.' is
not recognized as an internal or external command, operable program or
batch file. The 'configure' script didn't like something. It should
have told you what went wrong, but you can check 'config.log' for more
details.
-> N/A
-> FAIL Configure failed for Device-SerialPort-1.04. See
C:\Users\PHOTON~1.cpanm\work\1394295189.4528\build.log for details.

Is This A Good Question/Topic? 0
  • +

Replies To: Trouble installing Perl Module

#2 toasterburn  Icon User is offline

  • New D.I.C Head

Reputation: 4
  • View blog
  • Posts: 45
  • Joined: 08-March 10

Re: Trouble installing Perl Module

Posted 08 March 2014 - 10:35 AM

I just realized my mistake. I thought Device::SerialPort was a windows module, but it's linux only. Trying to install Win32::SerialPort instead, but that is failing too (see log file below). Going to try force installing it now and see what happens.

______________

cpanm (App::cpanminus) 1.7001 on perl 5.016003 built for MSWin32-x86-multi-thread
Work directory is C:\Users\PHOTON~1/.cpanm/work/1394299549.6528
You have make C:\Perl\site\bin\dmake.exe
You have LWP 6.04
Falling back to Archive::Tar 1.90
Searching Win32::SerialPort on cpanmetadb ...
--> Working on Win32::SerialPort
Fetching http://www.cpan.org/...ort-0.22.tar.gz
-> OK
Unpacking Win32-SerialPort-0.22.tar.gz
Entering Win32-SerialPort-0.22
Checking configure dependencies from META.yml
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.63_02)
Configuring Win32-SerialPort-0.22
Running Makefile.PL
Set up gcc environment - 3.4.5 (mingw-vista special r3)
found result=0, file=COM1
Win32::SerialPort and Win32API::CommPort
VERSION 0.22

A 'Makefile' created for those with 'make' or CPAN.pm users.
It will test using PORT = COM1. To test using a different PORT,
run again specifying: 'perl Makefile.PL TESTPORT=<PORT>'
The normal 'Mantra' would then apply:
make
make test
make install

For those without 'make' or an equivalent like 'nmake' or 'dmake' there
are perl-only scripts which do the same things:
Test with: perl nomake_test
Install with: perl nomake_install

Test with nothing connected to COM1.
PORT is not verified present and accessible until tests run.
Timeout tests can take up to 30 seconds per test.

Creating new t/DefaultPort.pm
Creating new nomake_test
Creating new nomake_install
Checking if your kit is complete...
Looks good
Writing Makefile for Win32::SerialPort
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Test::More 0 ... Yes (0.98)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.63_02)
Checking if you have Win32 0 ... Yes (0.47)
Checking if you have Win32::API 0 ... Yes (0.75)
Building and testing Win32-SerialPort-0.22
cp lib/Win32/SerialPort.pm blib\lib\Win32\SerialPort.pm
cp lib/Win32API/CommPort.pm blib\lib\Win32API\CommPort.pm
C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t
t/test1.t .. ok
t/test2.t .. ok
t/test3.t .. ok
t/test4.t .. ok
t/test5.t .. ok
SetCommState failed at t/test6.t line 306.
t/test6.t .. ok

# Failed test 'confirm no error'
# at t/test7.t line 160.
# got: '6'
# expected: '0'
# Looks like you failed 1 test of 90.
t/test7.t ..
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/90 subtests

Test Summary Report
-------------------
t/test7.t (Wstat: 256 Tests: 90 Failed: 1)
Failed test: 37
Non-zero exit status: 1
Files=7, Tests=1808, 61 wallclock secs ( 0.38 usr + 0.08 sys = 0.45 CPU)
Result: FAIL
Failed 1/7 test programs. 1/1808 subtests failed.
dmake.exe: Error code 129, while making 'test_dynamic'
-> FAIL Installing Win32::SerialPort failed. See C:\Users\PHOTON~1\.cpanm\work\1394299549.6528\build.log for details. Retry with --force to force install it.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1