Questions tagged [module-build]

23 questions
6
votes
2 answers

How can I ensure that files without extensions are installed using Module::Build?

I am converting an inherited software collection to a Module::Build based distribution. The lib directories contain, in addition to the .pm files, certain external files needed by the modules. It is easy to ensure that the ones that have extensions…
Sinan Ünür
  • 116,958
  • 15
  • 196
  • 339
5
votes
1 answer

Devel::Cover merging coverage data for Perl scripts and modules

I'm having issues merging data for coverage on Perl scripts and modules.. Running Devel::Cover individually works just fine, but when I try to combine the data I lose statistics for just the Perl script not the module.. Let me explain.. I have a…
4
votes
1 answer

How can I configure Module::Build to NOT install files as read-only?

I've encountered a scenario where I'm building a Perl module as part of another Build system on a Windows machine. I use the --install_base option of Module::Build to specify a temporary directory to put module files until the overall build system…
Robert P
  • 15,707
  • 10
  • 68
  • 112
4
votes
3 answers

How can I package up my Perl app's dependencies for deployment?

I'm working on a Perl app that's intended to be deployed using Module::Build. I've need to install a number of modules through CPAN because they weren't available through Ubuntu's package manager—or, more correctly, the internal apt-get mirror all…
DarkMorford
  • 505
  • 1
  • 4
  • 12
2
votes
2 answers

How to pass arguments to a Perl test when run using Module::Build

I am building a Perl package using Module::Build. The tests t/*.t for the package have to use a program residing in a directory that a user should supply during invoking tests: perl Build.PL ./Build ./Build test user-supplied-directory The…
mike_934
  • 31
  • 3
2
votes
1 answer

Custom Perl target location with Module::Build

I've customized a Module::Build script to install files from a perllib/ directory in my sandbox to perl/ in the target directory. # Install perllib $build->add_build_element("perllib"); $build->install_path(perllib => "$install_base/perl"); When I…
ajwood
  • 18,227
  • 15
  • 61
  • 104
2
votes
1 answer

How do I change the default Module::Build / Test::More directory from "lib" to something else?

Using the directory and file architecture in this Post on Perl Unit testing and Code Coverage (which btw was VERY helpful), I copied the files I'll be running unit tests and code coverage on into a new "lib" directory and it works like a…
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
3 answers

Module Build Failed - Error: Cannot find module (Babel & Rails 6)

Rails beginner here and first time poster! Running into this console error which is breaking my JS. Really grateful for any help!!: Console Error Uncaught Error: Module build failed (from ./node_modules/babel-loader/lib/index.js): Error: Cannot find…
1
vote
1 answer

How do I make Alien use an existing tarball instead of downloading?

My distro does not offer any gsl <2.6 any more. Given: Alien::GSL 1.01 /tmp/gsl-2.5.tar.gz How do I force it to compile that gsl instead of downloading from GNU FTP version 2.6, which I already have on the system anyway but is not delectable to…
daxim
  • 39,270
  • 4
  • 65
  • 132
1
vote
1 answer

File uploaded with Test::Mojo post is empty

I have implemented a Mojolicious Web Service as a module that accepts file uploads via POST. An example cURL command: curl -X POST http://localhost:3000/process -F inputFile=@file.txt This works as expected, the file is processed and the result is…
Carsten
  • 1,912
  • 1
  • 28
  • 55
1
vote
0 answers

Perl Module::Build test run cannot find dynamically loaded module

I am building a Perl module using Module::Build. The Build.PL file is below: use strict ; use warnings ; use Module::Build; my $build = Module::Build->new ( module_name => 'Company::LDAP::SyncAttr', license => 'perl', installdirs …
rlandster
  • 7,294
  • 14
  • 58
  • 96
1
vote
1 answer

How can I have Module::Build compile and link my small C program?

I have a simple C source file in a src directory in my project. My Build.PL contains the following lines: c_source => ['src'], extra_compiler_flags => ['-std=c99'] However, all this does is compile it to a .o file in the src directory corresponding…
Chris Cooper
  • 17,276
  • 9
  • 52
  • 70
1
vote
1 answer

Module::Build and value substitution in files

I'm starting to use Module::Build. During the build process I need to do value substitution in some files - changing paths based on installation location etc. Cannot find anything in Module::Build documentation. I understand that I can extend…
jira
  • 3,890
  • 3
  • 22
  • 32
0
votes
0 answers

Angular "module build failed"

i've been trying for a while now but nothing seems to work. The problem is as follow: After project creation with ng new and attempt to build or start it with npm run start or npm run build or ng serve - I get the following error This is…
Merho
  • 3
  • 1
  • 5
1
2