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 6924427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:39:42+00:00 2026-05-27T10:39:42+00:00

Given that I’m using Module::Build to build my perl module, I’d like to test

  • 0

Given that I’m using Module::Build to build my perl module, I’d like to test for specific system library prerequisites in my Build.PL and exit with an error if they are not found. This seems like the best way to ensure that the necessary prerequisites will be met when the compiler is called. I could just let the compilation fail when it links, but I think detecting prior to building is better. It’s probably a matter of just searching the same lib directories that the build system will use when compiling, but I’m hoping there is some functionality in Module::Build that could help figure this out.

To be specific, in my case I want to verify that libicu is installed and available in the libpath used by the compiler.

  • 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-27T10:39:42+00:00Added an answer on May 27, 2026 at 10:39 am

    It sounds like you’re looking for Devel::CheckLib. (There’s also ExtUtils::PkgConfig for libraries that use pkg-config to report configuration details.)

    BTW, the standard way for Build.PL to report that a non-Perl-module prerequisite is not available is for it to print a message explaining what’s missing and then exit 0 without calling create_build_script. Devel::CheckLib provides a check_lib_or_exit function for doing that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given that a function a_method has been defined like def a_method(arg1, arg2): pass Starting
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
Given that my class looks like this: class Methods{ function a(){ return 'a'; }
Given that I have article.created_at value, I'd like to allow user to edit the
Given that Perl 5 does not conform to BNF, I'm at a loss as
Given that we are using GIT with more or less the branching workflow of
Given that I do something like this: void glOrtho( GLdouble left, GLdouble right, GLdouble
Given that indexing is so important as your data set increases in size, can
Given that Chrome and Safari use webkit has anyone yet found anything that renders
Given that I only have one monitor, what's the best way to debug a

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.