Make for Windows: NMake
来源:互联网 发布:网站首页源码 编辑:程序博客网 时间:2024/05/21 17:58
原文地址: http://johnbokma.com/perl/make-for-windows.html
心血来潮,就随便翻译以下,仅供自娱自乐.
If a Perl module is not available for the ActiveState version of Perl (ActivePerl), you might be able to download it from the Comprehensive Perl Archive Network (CPAN), and try to build and install it on Microsoft Windows.
如果一个Perl模块在ActiveState版本的Perl(ActivePerl)中找不到,你也许可以从CPAN上下载它,然后试着编译(构建)并安装到MS Windows.
A frequently asked question: "Where can I find make for Windows?". The answer is: "Download and use NMake".
一个经常被提及的问题:"从那里能找到Windows下的make(一种编译命令/工具)". 答案是:"下载并使用NMake".
Downloading NMake
Since Microsoft Windows hasn't in it's default install a make program needed to build the Perl modules, you have to download NMake 1.5 from the Microsoft Knowledge Base, article 132084 page.
因为MS Windows在默认安装时没有自带用于编译Perl模块的make程序,你必须从下面这个网页上下载NMakeMicrosoft Knowledge Base, article 132084.
Installing NMake
Run the downloaded file (exe) to extract it. Copy both the NMAKE.EXE and the NMAKE.ERR file to your Perl bin directory, normally C:/Perl/bin. Make sure that you copy the NMAKE.ERR file as well.
运行下载下来的文件来释放nmake.复制NMAKE.EXE 和NMAKE.ERR到你的Perl bin目录,通常C:/Perl/bin. 确定你同时拷贝了NMAKE.ERR文件.
Example of an NMake session
Normally building Perl modules and installing them consist of the following steps:
通常编译Perl模块并安装他们由以下几个步骤:
- perl Makefile.pl
- make
- make test
- make install
Just replace make with nmake, and in many cases this will result in a working module (or modules) installed in the proper location(s).
只要把make替换成nmake,并且在大多数情况下这将把一个可用模块(或几个可用模块)安装到适当的地方(s).
下面的就省略不翻译了.
Below follows an example of building the Net-Google Perl module, and installing it. See Net-Google with ActiveState Perl for more information.
perl Makefile.PLChecking if your kit is complete...Looks goodWriting Makefile for Net::GooglenmakeMicrosoft (R) Program Maintenance Utility Version 1.50Copyright (c) Microsoft Corp 1988-94. All rights reserved.cp lib/Net/Google/Search.pm blib/lib/Net/Google/Search.pmcp lib/Net/Google.pm blib/lib/Net/Google.pmcp lib/Net/Google/tool.pm blib/lib/Net/Google/tool.pmcp lib/Net/Google/Spelling.pm blib/lib/Net/Google/Spelling.pmcp lib/Net/Google/Cache.pm blib/lib/Net/Google/Cache.pmcp lib/Net/Google/Services/GoogleSearch.wsdl blib/lib/Net/Google/Services/GoogleSearch.wsdlcp lib/Net/Google/Service.pm blib/lib/Net/Google/Service.pmcp lib/Net/Google/Response.pm blib/lib/Net/Google/Response.pmnmake testMicrosoft (R) Program Maintenance Utility Version 1.50Copyright (c) Microsoft Corp 1988-94. All rights reserved. C:/Perl/bin/perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/000-key.t t/001-search.t t/002-spelling.t t/003-cache.t t/000-key.........## The Google API web service requires that you provide create aGoogle Account and obtain a license key# This key is then passed with each request you make to the Google servers.# If you do not already have a Google Account, you can sign up for one here:# http://www.google.com/apis/## Please enter your Google API key:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXt/000-key.........okt/001-search......okt/002-spelling....okt/003-cache.......okAll tests successful.Files=4, Tests=18, 103 wallclock secs ( 0.00 cusr + 0.00 csys =0.00 CPU)nmake installMicrosoft (R) Program Maintenance Utility Version 1.50Copyright (c) Microsoft Corp 1988-94. All rights reserved.Installing C:/Perl/site/lib/Net/Google.pmInstalling C:/Perl/site/lib/Net/Google/Cache.pmInstalling C:/Perl/site/lib/Net/Google/Response.pmInstalling C:/Perl/site/lib/Net/Google/Search.pmInstalling C:/Perl/site/lib/Net/Google/Service.pmInstalling C:/Perl/site/lib/Net/Google/Spelling.pmInstalling C:/Perl/site/lib/Net/Google/tool.pmInstalling C:/Perl/site/lib/Net/Google/Services/GoogleSearch.wsdlAppending installation info to C:/Perl/lib/perllocal.pod
- Make for Windows: NMake
- Gnu make与Windows Nmake的异同点
- Make Application Installer for Windows.
- cmake,make,nmake的用法
- gmake和make、nmake、Dmake
- [Windows]使用nmake命令
- makefile,make,nmake……是什么?
- windows下使用nmake编译
- NMAKE
- NMAKE
- nmake
- nmake
- Building ArduPilot for Pixhawk/PX4 on Windows with Make
- manual make usb installer for windows in ubuntu15.04
- NMAKE : U1073: don't know how to make 'TargetCompilePass'
- GNU make、NMake、Autotools 、waf、cmake、premake 等构建工具
- 编译工具make、gmake、cmake、nmake和Dmake的区别
- windows下makefile文件:nmake用法
- linux系列(一)C语言编写Socket程序
- 英特尔25亿美元大连建设300毫米晶圆工厂
- linux系列2
- 正则表达式
- 最新决议!
- Make for Windows: NMake
- 你必须知道的税务规划—个人所得税,报,还是不报?这个问题
- Flex Data Services 2 - Notes
- 水晶报表 - 安装&部署
- Friends.-.1x03.-.The.Thumb
- 学习杂想
- jaxb 简介
- Struts2.0的应用
- 写好c程序的10大要求