Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Errors from Build.PL

by BillKSmith (Chaplain)
on Mar 06, 2014 at 16:02 UTC ( #1077249=perlquestion: print w/ replies, xml ) Need Help??
BillKSmith has asked for the wisdom of the Perl Monks concerning the following question:

I am reading the O'Reilly book "Intermediate Perl" and I am not able to complete the exercises for chapter 12 "Creating Your Own Perl Distribution". I am using ActiveState Perl v5.16.1 on Windows XP. In my early attempts, I was required to install several packages with ppm. (Unforunately, I did not keep records) All the instalations went smoothly and eliminated the messages that motivated them. The remaining errors do not appear to be due to missing modules.
C:\Documents and Settings\bill\Perl\ip\chap_12>module-starter --mb --m +odule=Anim al --author="Gilligan" --email=gilligan@island.example.com --verbose Created Animal Created Animal\lib Created Animal\lib\Animal.pm Created Animal\t Created Animal\t\pod-coverage.t Created Animal\t\pod.t Created Animal\t\manifest.t Created Animal\t\boilerplate.t Created Animal\t\00-load.t Created Animal\Build.PL Created Animal\Changes Created Animal\README Added to MANIFEST: Build.PL Added to MANIFEST: Changes Added to MANIFEST: lib/Animal.pm Added to MANIFEST: MANIFEST Added to MANIFEST: README Added to MANIFEST: t/00-load.t Added to MANIFEST: t/boilerplate.t Added to MANIFEST: t/manifest.t Added to MANIFEST: t/pod-coverage.t Added to MANIFEST: t/pod.t Created Animal\MANIFEST Created starter directories and files C:\Documents and Settings\bill\Perl\ip\chap_12>
This much runs without error and appears to create all required files.
C:\Documents and Settings\bill\Perl\ip\chap_12\Animal>perl Build.PL Set up gcc environment - 3.4.5 (mingw-vista special r3) Set up gcc environment - 3.4.5 (mingw-vista special r3) Could not get valid metadata. Error is: Invalid metadata structure. Er +rors: Lice nse 'Artistic_2_0' is invalid (license) [Validation: 1.4] at C:/Perl/lib/Module/Build/Base.pm line 4564. Could not create MYMETA files Creating new 'Build' script for 'Animal' version '0.01' C:\Documents and Settings\bill\Perl\ip\chap_12\Animal>
Please explain this message and how to fix it. Setting a --license for module-starter changes the message slightly, but does not really help.
Bill

Comment on Errors from Build.PL
Select or Download Code
Re: Errors from Build.PL
by fishmonger (Pilgrim) on Mar 06, 2014 at 17:12 UTC

    I have not used Module::Starter so I just installed it to test your issue and I had the same problem

    The solution is to install Software::License then do the build.

    I found that answer here om PM. Module::Build - could not create MYMETA files

    Update: I should note that changing 'Artistic_2_0' to 'Artistic_2' as first suggested in that thread did not work for me, but installing the Software::License module did resolve that error.

Re: Errors from Build.PL
by Leon Timmermans (Novice) on Mar 06, 2014 at 17:14 UTC
    This is a result of this bug. Upgrading Module::Build and Software::License should fix it.
Re: Errors from Build.PL
by BillKSmith (Chaplain) on Mar 07, 2014 at 12:01 UTC
    Thanks, it is now working perfectly. I should have thought to do FishMonger's search myself.
    Bill

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1077249]
Approved by davies
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (15)
As of 2014-08-28 15:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (263 votes), past polls