Questions tagged [makemaker]

42 questions
2
votes
1 answer

How do I get a MakeMaker target for code coverage?

In my ExtUtils::MakeMaker based project, I want to generate a code coverage report from my tests. I use Devel::Cover for that, but I have to run it manually: HARNESS_PERL_SWITCHES=-MDevel::Cover make test && cover That's too much to type (and…
Robert
  • 7,394
  • 40
  • 45
  • 64
2
votes
5 answers

How to fix Perl CPAN module error: version 0.82 required, this is only version 0.78?

Whether I use CPAN or install manually, every time I try to run "perl Makefile.PL" to build a makefile for a Perl module, I get the following error: ERROR from evaluation of Makefile.PL: Can't locate object method "new" via package "CPAN::Meta" at…
Ben
  • 133
  • 1
  • 5
2
votes
0 answers

How can I configure rpmbuild to use lib64/perl5 as an install path?

I am running CentOS7 (RHEL7) and I am trying to build a Perl module with rpmbuild. I have generated the SPEC file and it builds all the way until it installs, which fails. error: File not found by glob:…
Urchin
  • 395
  • 3
  • 9
2
votes
2 answers

Resolving circular dependency between ExtUtils::MakeMaker and Test::Harness

I'm trying to compile git 2.5.2 on RHEL6 into my home directory and it requires a perl module ExtUtils::MakeMaker. ExtUtils::MakeMaker isn't installed in the standard locations and installing packages (via yum) is impossible due to organizational…
Paul Johnson
  • 1,329
  • 1
  • 12
  • 25
2
votes
1 answer

How do I disable a make target with the perl MakeMaker module?

I'm using ExtUtils::MakeMaker to package my perl module but I don't want the makefile to copy files anywhere on the system. I need to disable the "install" target and instead tell the user that this makefile only supports "make dist" when he types…
Michal T
  • 601
  • 5
  • 14
2
votes
0 answers

Is there a MakeMaker-like Perl library for cmake projects?

I have been fiddling for a while with a Perl project that uses MySQL's C++ code as a library. It uses a Perl library called MakeMaker to generate a G++ compatible Makefile which is dependent on the MySQL source. The following code is the Perl code…
Bruno Pérel
  • 575
  • 6
  • 21
2
votes
2 answers

How do I define new make tasks, using `Makefile.PL`?

I would like my generated Makefile to have these new tasks for linting: perl: -for f in **/*.pl; do perl -MO=Lint -cw $$f 2>&1 | grep -v "syntax OK"; done -for f in **/*.pm; do perl -MO=Lint -cw $$f 2>&1 | grep -v "syntax OK";…
mcandre
  • 22,868
  • 20
  • 88
  • 147
2
votes
0 answers

Invoking gcc -pthread under ExtUtils::MakeMaker

What's the right way to specify compilation and linking with -pthread (not -lpthread) in a Makefile.PL? It's my understanding that gcc ought to be invoked with -pthread when building against pthreads, as this flag expands to the correct…
pilcrow
  • 56,591
  • 13
  • 94
  • 135
2
votes
2 answers

Statically Linking DBD::Pg (against libpq.so) but Dynamically Against Perl?

I'm trying to build DBD::Pg on a linux host via the Makefile.PL; my requirements are such that I must be able to dynamically link against perl, but statically link against libpq.so (since it may not be available on all boxes). Is there an easy way…
Blaskovicz
  • 6,122
  • 7
  • 41
  • 50
2
votes
1 answer

Install scripts in alternate directory using ExtUtils::MakeMaker

I have an ExtUtils::MakeMaker makefile that installs two scripts script1 and script2. I do this using the line EXE_FILES => ['usr/sbin/script1', 'usr/sbin/script2', ], in Makefile.PL. However, when make install is run the two scripts…
rlandster
  • 7,294
  • 14
  • 58
  • 96
1
vote
1 answer

Cannot Install ExtUtils::MakeMaker in Strawberry Perl

I am trying to install GD and Chart to Strawberry Perl in a Windows 10 Pro PC (using CPANM). Both GD and Chart requires a dependency called ExtUtils::MakeMaker. Unfortunately MakeMaker fails to be install and I cannot tell what the error is. I hope…
Jay C
  • 141
  • 1
  • 12
1
vote
1 answer

What is the Module::Build equivalent to ExtUils::MakeMaker INST_SCRIPT?

I want to convert a project from use of ExtUtils::MakeMaker to Module::Build. As the Makefile.PL is mostly default and Module::Build::Convert did not work for me (see below) I want to convert it manually but did not find the equivalent of…
matthias krull
  • 4,389
  • 3
  • 34
  • 54
1
vote
2 answers

MakeMaker: make test vs make dist

Let's say I've created a directory using module-starter, and written several additional modules and tests since. make test would then run all tests in t/ on all modules in lib/, however make dist will only pack files mentioned in MANIFEST into…
Dallaylaen
  • 5,268
  • 20
  • 34
1
vote
1 answer

Installing additional files at install time with ExtUtils::MakeMaker/Dist::Zilla (dzil)

tl;dr I want to ship a package.json with my Perl library, run yarn install (or npm install during the installation) and install the downloaded JavaScript dependencies with the Perl modules. I have the following dist.ini: name = Foobar version =…
Guido Flohr
  • 1,871
  • 15
  • 28
1
vote
1 answer

ExtUtils::MakeMaker doesn't generate make target to install dependencies for development

I'm building a Perl module. Makefile.PL has WriteMakefile( PREREQ_PM => { 'DBI' => '>= 1.641, < 2', # etc, ... }, TEST_REQUIRES => { 'Test::More' => 0, }, # more stuff ... ); Recently, my ~/perl5 tree…
Lawrence I. Siden
  • 9,191
  • 10
  • 43
  • 56