ppm install xxx failed

ppm install Win32-Serialport failed

C:\WINDOWS\system32>ppm install Win32-Serialport
Installing package 'Win32-Serialport'...
Error installing package 'Win32-Serialport': Could not locate a PPD file for package Win32-Serialport>

解决它

  1. 下载安装包:https://metacpan.org/pod/Win32::SerialPort
  2. 解压,CMD进入安装包
  3. 修改Makefile.PL为目标串口
  4. perl Makefile.PL
  5. dmake
  6. dmake test
  7. dmake install

你可能感兴趣的:(shell-编程)