windows平台Perl模块离线安装

工具:

Perl windows工具:ActivePerl-5.24.0.2400-MSWin32-x86-64int-300560.exe

Dmake工具:https://cpan.metacpan.org/authors/id/S/SH/SHAY/dmake-4.12.2.2.zip

模块代码:http://search.cpan.org/    一般为tar.gz包

c编译器:gcc

c++编译器:dev c++

安装:

目录结构:

install脚本代码:

@echo on

echo "start..." 
set input=
set /p input=请输入perl模块文件夹名称:
set base_dir=%~dp0
cd %base_dir%\%input%
echo %~dp0
perl MakeFile.PL
D:\software\dmake\dmake.exe
D:\software\dmake\dmake.exe test
D:\software\dmake\dmake.exe install

echo "end..."

有些模块需要C编译器:

 

 

posted @ 2017-07-21 18:29  MigrantWorkers  阅读(2484)  评论(0编辑  收藏  举报