Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3627316
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:52:23+00:00 2026-05-18T23:52:23+00:00

If a Perl module I create has something like a Makefile.PL or Build.PL to

  • 0

If a Perl module I create has something like a “Makefile.PL” or “Build.PL” to build a Perl module, and, for example, the module requires a particular operating system or a particular library to be installed in the system, how should I write “Makefile.PL” so that the build process halts correctly? I’m particularly interested in what method is required by the CPAN testers in order that the module is not given a “fail” result on http://www.cpantesters.org/.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T23:52:23+00:00Added an answer on May 18, 2026 at 11:52 pm

    To quote http://wiki.cpantesters.org/wiki/CPANAuthorNotes:

    “How can I indicate that my distribution only works on a particular operating system?”

    While it isn’t a very elegant solution, the recommend approach is to either die in the Makefile.PL or Build.PL (or BAIL_OUT in a test file) with one of the following messages:

    No support for OS
    OS unsupported
    

    CPAN Testers tools will look for one of those phrases and will send an NA (Not Available) report for that platform.

    “How can I stop getting FAIL reports for missing libraries or other non-Perl dependencies?”

    If you have some special dependencies and don’t want to get CPAN Testers reports if a dependency is not available, just exit from the Makefile.PL or Build.PL normally (with an exit code of 0) before the Makefile or Build file is created.

    exit 0 unless some_dependency_is_met();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Perl module that I would like to use from Java. Is
Has anyone come across a Perl module that will parse (and write) kerberos configuration
in Perl, when I do use <module name> <ver>; , the system finds the
I use h2xs and Module::Starter to create templates for my Perl modules. All these
I am writing a Perl module, and I am using carp to throw a
I am working on a little Perl module and for some reason I had
I have been trying to use the Perl utility/module "prove" as a test harness
Can someone suggest a good module in perl which can be used to store
How do I connect to a MSSQL database using Perl's DBI module in Windows?
I've wrapped Perl's Net::SSH::Expect with a small module to reduce the boilerplate code needed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.