Make for Windows: nmake

Source: Internet
Author: User

Address: http://johnbokma.com/perl/make-for-windows.html
Just Translate the following for fun.

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.
If a Perl module cannot be found in ActivePerl of ActiveState, you may be able to download it from CPAN, compile (build) It, and install it on MS Windows.

A frequently asked question: "Where can I find make for windows? ". The answer is:" download and use nmake ".
A frequently-mentioned question: "Make in Windows (a compilation command/tool)". The answer is: "download and use 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 knowlebase, article 132084 page.
MS Windows does not include the make program for compiling the Perl module when it is installed by default. You must download nmakemicrosoft knowledge base, article 132084 from the following webpage.

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.
Run the downloaded file to release nmake. copy nmake. EXE and nmake. err to your Perl bin directory, usually C:/perl/bin. are you sure you copied nmake. err file.

Example of an nmake session

Normally building Perl modules and installing them consist of the following steps:
Follow these steps to compile and install the Perl module:

  1. Perl makefile. pl
  2. Make
  3. Make Test
  4. Make install

Just replace make with nmake, and in your cases this will result in a working module (or modules) installed in the proper location (s ).
Just replace make with nmake, and in most cases this will install an available module (or several available modules) to the appropriate place (s ).

The following is omitted and will not be translated.

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.